Slicer
5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Toggle main menu visibility
Main Page
Related Pages
Classes
Class Index
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
Enumerations
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
e
f
i
m
o
p
r
s
w
Namespaces
Namespace List
Namespace Members
All
_
a
c
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
v
Functions
Variables
a
c
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
v
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
c
e
i
l
n
p
q
r
s
t
v
Variables
Typedefs
a
d
g
i
l
m
n
p
q
r
s
t
v
Enumerations
Enumerator
Macros
b
c
d
e
f
g
i
m
o
p
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
Libs
vtkITK
vtkITKImageToImageFilterSS.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
4
5
See COPYRIGHT.txt
6
or http://www.slicer.org/copyright/copyright.txt for details.
7
8
Program: vtkITK
9
Module: $HeadURL$
10
Date: $Date$
11
Version: $Revision$
12
13
==========================================================================*/
14
15
#ifndef __vtkITKImageToImageFilterSS_h
16
#define __vtkITKImageToImageFilterSS_h
17
18
#include "
vtkITKImageToImageFilter.h
"
19
#include "vtkImageAlgorithm.h"
20
#include "itkImageToImageFilter.h"
21
#include "itkVTKImageExport.h"
22
#include "itkVTKImageImport.h"
23
#include "
vtkITKUtility.h
"
24
25
class
VTK_ITK_EXPORT
vtkITKImageToImageFilterSS
:
public
vtkITKImageToImageFilter
26
{
27
public
:
28
vtkTypeMacro(
vtkITKImageToImageFilterSS
,
vtkITKImageToImageFilter
);
29
static
vtkITKImageToImageFilterSS
*
New
() {
return
nullptr
; }
30
void
PrintSelf
(ostream& os, vtkIndent indent)
override
31
{
32
Superclass::PrintSelf
( os, indent );
33
os <<
m_Filter
;
34
}
30
void
PrintSelf
(ostream& os, vtkIndent indent)
override
{
…
}
35
39
void
SetReleaseDataFlag
(
int
f)
override
40
{
41
Superclass::SetReleaseDataFlag(f);
42
m_Filter
->SetReleaseDataFlag(f);
43
}
39
void
SetReleaseDataFlag
(
int
f)
override
{
…
}
44
45
protected
:
46
48
typedef
short
InputImagePixelType
;
49
typedef
short
OutputImagePixelType
;
50
typedef
itk::Image<InputImagePixelType, 3>
InputImageType
;
51
typedef
itk::Image<OutputImagePixelType, 3>
OutputImageType
;
52
53
typedef
itk::VTKImageImport<InputImageType>
ImageImportType
;
54
typedef
itk::VTKImageExport<OutputImageType>
ImageExportType
;
55
ImageImportType::Pointer
itkImporter
;
56
ImageExportType::Pointer
itkExporter
;
57
58
typedef
itk::ImageToImageFilter<InputImageType,OutputImageType>
GenericFilterType
;
59
GenericFilterType::Pointer
m_Filter
;
60
61
vtkITKImageToImageFilterSS
(
GenericFilterType
* filter )
62
{
64
m_Filter
= filter;
65
this->itkImporter = ImageImportType::New();
66
this->itkExporter = ImageExportType::New();
67
ConnectPipelines
(this->
vtkExporter
, this->itkImporter);
68
ConnectPipelines
(this->itkExporter, this->
vtkImporter
);
69
this->
LinkITKProgressToVTKProgress
( m_Filter );
70
72
m_Filter
->SetInput ( this->itkImporter->GetOutput() );
73
this->itkExporter->SetInput (
m_Filter
->GetOutput() );
74
this->
vtkCast
->SetOutputScalarTypeToShort();
75
};
61
vtkITKImageToImageFilterSS
(
GenericFilterType
* filter ) {
…
}
76
77
~vtkITKImageToImageFilterSS
()
override
=
default
;
78
79
private
:
80
vtkITKImageToImageFilterSS
(
const
vtkITKImageToImageFilterSS
&) =
delete
;
81
void
operator=(
const
vtkITKImageToImageFilterSS
&) =
delete
;
82
};
25
class
VTK_ITK_EXPORT
vtkITKImageToImageFilterSS
:
public
vtkITKImageToImageFilter
{
…
};
83
84
#endif
vtkITKImageToImageFilterSS::~vtkITKImageToImageFilterSS
~vtkITKImageToImageFilterSS() override=default
vtkITKImageToImageFilterSS::SetReleaseDataFlag
void SetReleaseDataFlag(int f) override
Definition
vtkITKImageToImageFilterSS.h:39
vtkITKImageToImageFilterSS::ImageExportType
itk::VTKImageExport< OutputImageType > ImageExportType
Definition
vtkITKImageToImageFilterSS.h:54
vtkITKImageToImageFilterSS::OutputImagePixelType
short OutputImagePixelType
Definition
vtkITKImageToImageFilterSS.h:49
vtkITKImageToImageFilterSS::vtkITKImageToImageFilterSS
vtkITKImageToImageFilterSS(GenericFilterType *filter)
Definition
vtkITKImageToImageFilterSS.h:61
vtkITKImageToImageFilterSS::m_Filter
GenericFilterType::Pointer m_Filter
Definition
vtkITKImageToImageFilterSS.h:59
vtkITKImageToImageFilterSS::GenericFilterType
itk::ImageToImageFilter< InputImageType, OutputImageType > GenericFilterType
Definition
vtkITKImageToImageFilterSS.h:58
vtkITKImageToImageFilterSS::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Definition
vtkITKImageToImageFilterSS.h:30
vtkITKImageToImageFilterSS::OutputImageType
itk::Image< OutputImagePixelType, 3 > OutputImageType
Definition
vtkITKImageToImageFilterSS.h:51
vtkITKImageToImageFilterSS::InputImagePixelType
short InputImagePixelType
To/from ITK.
Definition
vtkITKImageToImageFilterSS.h:48
vtkITKImageToImageFilterSS::New
static vtkITKImageToImageFilterSS * New()
Definition
vtkITKImageToImageFilterSS.h:29
vtkITKImageToImageFilterSS::ImageImportType
itk::VTKImageImport< InputImageType > ImageImportType
Definition
vtkITKImageToImageFilterSS.h:53
vtkITKImageToImageFilterSS::InputImageType
itk::Image< InputImagePixelType, 3 > InputImageType
Definition
vtkITKImageToImageFilterSS.h:50
vtkITKImageToImageFilterSS::itkExporter
ImageExportType::Pointer itkExporter
Definition
vtkITKImageToImageFilterSS.h:56
vtkITKImageToImageFilterSS::itkImporter
ImageImportType::Pointer itkImporter
Definition
vtkITKImageToImageFilterSS.h:55
vtkITKImageToImageFilter::vtkITKImageToImageFilter
vtkITKImageToImageFilter()
ETX.
Definition
vtkITKImageToImageFilter.h:209
vtkITKImageToImageFilter::vtkCast
vtkImageCast * vtkCast
Definition
vtkITKImageToImageFilter.h:254
vtkITKImageToImageFilter::vtkExporter
vtkImageExport * vtkExporter
Definition
vtkITKImageToImageFilter.h:256
vtkITKImageToImageFilter::LinkITKProgressToVTKProgress
void LinkITKProgressToVTKProgress(itk::ProcessObject *process)
BTX.
Definition
vtkITKImageToImageFilter.h:233
vtkITKImageToImageFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Definition
vtkITKImageToImageFilter.h:68
vtkITKImageToImageFilter::vtkImporter
vtkImageImport * vtkImporter
Definition
vtkITKImageToImageFilter.h:255
vtkITKImageToImageFilter.h
vtkITKUtility.h
ConnectPipelines
void ConnectPipelines(ITK_Exporter exporter, VTK_Importer *importer)
Definition
vtkITKUtility.h:26
Generated on Sun Mar 16 2025 03:15:11 for Slicer by
1.13.0