3 #include <itkImageToImageFilter.h> 4 #include <itkImageRegionIterator.h> 5 #include <itkImageRegionConstIterator.h> 6 #include <itkVariableSizeMatrix.h> 7 #include <itkCSVArray2DFileReader.h> 22 template <
typename TInput,
typename TOutput>
24 public itk::ImageToImageFilter< TInput , TOutput >
29 typedef itk::ImageToImageFilter< TInput , TOutput>
Superclass;
61 typedef itk::Image <PixelTypeUC,3>
TMask;
80 void SetMask(const TMask* mask);
98 this->SetCoordinateTolerance(tol);
99 this->SetDirectionTolerance(tol);
103 itkSetMacro(Sigma,
double)
104 itkGetMacro(Sigma,
double)
106 itkSetMacro(UseSpectralGradient,
bool)
107 itkGetMacro(UseSpectralGradient,
bool)
109 itkSetMacro(NbModalities,
unsigned int)
110 itkGetMacro(NbModalities,
unsigned int)
112 itkSetMacro(Verbose,
bool)
113 itkGetMacro(Verbose,
bool)
122 m_UseSpectralGradient=
true;
127 m_IndexImage1=m_NbMaxImage,m_IndexImage2=m_NbMaxImage,m_IndexImage3=m_NbMaxImage, m_IndexImage4=m_NbMaxImage,m_IndexImage5=m_NbMaxImage;
131 this->SetNumberOfRequiredOutputs(2);
132 this->SetNumberOfRequiredInputs(4);
140 itk::DataObject::Pointer
MakeOutput(
unsigned int idx);
162 bool isInside (
unsigned int x,
unsigned int y,
unsigned int z )
const;
164 double computeNLink(
int i1,
int j1,
int k1,
int i2,
int j2,
int k2);
171 bool m_UseSpectralGradient;
183 std::string m_MatFilename;
186 typename TOutput::SizeType m_size;
190 std::vector<InputImageConstPointer > m_ListImages;
194 ImageTypeInt::Pointer pix;
198 TSeedProba::Pointer m_e1, m_e2;
199 unsigned int m_NbModalities;
200 unsigned int m_NbInputs, m_NbMaxImage;
201 unsigned int m_IndexImage1, m_IndexImage2, m_IndexImage3, m_IndexImage4,m_IndexImage5;
TInput::ConstPointer GetInputImage2()
Class creating a 3D graph in a graph cut framework.
doubleVariableSizeMatrixType GetMatrix(void)
itk::ImageRegionIterator< TSeedProba > ImageIteratorTypeProba
TInput::ConstPointer GetInputImage1()
itk::VariableSizeMatrix< NumericType > doubleVariableSizeMatrixType
itk::Image< PixelTypeD, 3 > TSeedProba
TMask::Pointer TMaskPointer
void SetMatrix(doubleVariableSizeMatrixType mat)
TOutput::PixelType OutputPixelType
unsigned char PixelTypeUC
void CheckSpectralGradient(void)
OutputImagePointer GetOutput()
TOutput::Pointer OutputImagePointer
TSeedProba::ConstPointer GetInputSeedProbaSinks()
itk::SmartPointer< const Self > ConstPointer
itk::ImageRegionIterator< TMask > MaskRegionIteratorType
void SetInputImage4(const TInput *image)
ImageTypeInt::IndexType pixelIndexInt
void GenerateData() ITK_OVERRIDE
void SetTol(const double tol)
TInput::ConstPointer GetInputImage6()
void SetMatFilename(std::string mat)
void SetMask(const TMask *mask)
TInput::Pointer InputImagePointer
itk::Image< PixelTypeInt, 3 > ImageTypeInt
TMask::ConstPointer GetMask()
itk::ImageRegionConstIterator< TInput > InRegionConstIteratorType
void SetInputSeedProbaSinks(const TSeedProba *mask)
TInput::ConstPointer GetInputImage5()
TInput::ConstPointer InputImageConstPointer
TSeedProba::ConstPointer GetInputSeedProbaSources()
TInput::ConstPointer GetInputImage3()
void SetInputImage5(const TInput *image)
itk::ImageRegionIterator< TOutput > OutputIteratorType
void SetInputImage2(const TInput *image)
itk::ImageRegionIterator< ImageTypeInt > ImageIteratorTypeInt
double computeNLink(int i1, int j1, int k1, int i2, int j2, int k2)
itk::ImageRegionConstIterator< TMask > MaskRegionConstIteratorType
itk::Image< PixelTypeUC, 3 > TMask
itk::ImageToImageFilter< TInput, TOutput > Superclass
std::string GetMatFilename(void)
itk::SmartPointer< Self > Pointer
TInput::ConstPointer GetInputImage4()
TSeedProba::PixelType SeedProbaPixelType
Superclass::OutputImageRegionType OutputImageRegionType
void SetInputImage1(const TInput *image)
bool isInside(unsigned int x, unsigned int y, unsigned int z) const
itk::DataObject::Pointer MakeOutput(unsigned int idx)
TSeedProba::Pointer ImagePointerProba
OutputImagePointer GetOutputBackground()
void SetInputSeedProbaSources(const TSeedProba *mask)
TInput::PixelType InputPixelType
void SetInputImage3(const TInput *image)