ANIMA
4.0
|
Class creating a 3D graph in a graph cut framework. More...
#include <animaNLinksFilter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::VariableSizeMatrix< NumericType > | doubleVariableSizeMatrixType |
typedef Graph< double, double, double > | GraphType |
typedef itk::ImageRegionIterator< ImageTypeInt > | ImageIteratorTypeInt |
typedef itk::ImageRegionIterator< TSeedProba > | ImageIteratorTypeProba |
typedef TSeedProba::Pointer | ImagePointerProba |
typedef itk::Image< PixelTypeInt, 3 > | ImageTypeInt |
typedef TInput::ConstPointer | InputImageConstPointer |
typedef TInput::Pointer | InputImagePointer |
typedef TInput::PixelType | InputPixelType |
typedef itk::ImageRegionConstIterator< TInput > | InRegionConstIteratorType |
typedef itk::ImageRegionConstIterator< TMask > | MaskRegionConstIteratorType |
typedef itk::ImageRegionIterator< TMask > | MaskRegionIteratorType |
typedef double | NumericType |
typedef TOutput::Pointer | OutputImagePointer |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef itk::ImageRegionIterator< TOutput > | OutputIteratorType |
typedef TOutput::PixelType | OutputPixelType |
typedef ImageTypeInt::IndexType | pixelIndexInt |
typedef double | PixelTypeD |
typedef int | PixelTypeInt |
typedef unsigned char | PixelTypeUC |
typedef itk::SmartPointer< Self > | Pointer |
typedef TSeedProba::PixelType | SeedProbaPixelType |
typedef NLinksFilter | Self |
typedef itk::ImageToImageFilter< TInput, TOutput > | Superclass |
typedef itk::Image< PixelTypeUC, 3 > | TMask |
typedef TMask::Pointer | TMaskPointer |
typedef itk::Image< PixelTypeD, 3 > | TSeedProba |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
virtual unsigned int | GetNbModalities () |
OutputImagePointer | GetOutput () |
OutputImagePointer | GetOutputBackground () |
virtual double | GetSigma () |
virtual bool | GetUseSpectralGradient () |
virtual bool | GetVerbose () |
void | SetInputImage1 (const TInput *image) |
void | SetInputImage2 (const TInput *image) |
void | SetInputImage3 (const TInput *image) |
void | SetInputImage4 (const TInput *image) |
void | SetInputImage5 (const TInput *image) |
void | SetInputSeedProbaSinks (const TSeedProba *mask) |
void | SetInputSeedProbaSources (const TSeedProba *mask) |
void | SetMask (const TMask *mask) |
void | SetMatFilename (std::string mat) |
void | SetMatrix (doubleVariableSizeMatrixType mat) |
virtual void | SetNbModalities (unsigned int _arg) |
virtual void | SetSigma (double _arg) |
void | SetTol (const double tol) |
virtual void | SetUseSpectralGradient (bool _arg) |
virtual void | SetVerbose (bool _arg) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | CheckSpectralGradient (void) |
double | computeNLink (int i1, int j1, int k1, int i2, int j2, int k2) |
void | CreateGraph () |
void | GenerateData () ITK_OVERRIDE |
TInput::ConstPointer | GetInputImage1 () |
TInput::ConstPointer | GetInputImage2 () |
TInput::ConstPointer | GetInputImage3 () |
TInput::ConstPointer | GetInputImage4 () |
TInput::ConstPointer | GetInputImage5 () |
TInput::ConstPointer | GetInputImage6 () |
TSeedProba::ConstPointer | GetInputSeedProbaSinks () |
TSeedProba::ConstPointer | GetInputSeedProbaSources () |
TMask::ConstPointer | GetMask () |
std::string | GetMatFilename (void) |
doubleVariableSizeMatrixType | GetMatrix (void) |
bool | isInside (unsigned int x, unsigned int y, unsigned int z) const |
itk::DataObject::Pointer | MakeOutput (unsigned int idx) |
NLinksFilter () | |
bool | readMatrixFile () |
void | SetGraph () |
virtual | ~NLinksFilter () |
Class creating a 3D graph in a graph cut framework.
The nodes correspond to the voxels of the image to segment. Two additional nodes represent the object (SOURCE) and the background (SINK). N-links represent edges between neighboring nodes/voxels. T-links that bind each classical node to both the SOURCE and the SINK represent the probability for the corresponding voxel to belong respectively to the object and to the background.
Definition at line 23 of file animaNLinksFilter.h.
typedef itk::SmartPointer<const Self> anima::NLinksFilter< TInput, TOutput >::ConstPointer |
Definition at line 31 of file animaNLinksFilter.h.
typedef itk::VariableSizeMatrix<NumericType> anima::NLinksFilter< TInput, TOutput >::doubleVariableSizeMatrixType |
Definition at line 69 of file animaNLinksFilter.h.
typedef Graph<double,double,double> anima::NLinksFilter< TInput, TOutput >::GraphType |
Definition at line 66 of file animaNLinksFilter.h.
typedef itk::ImageRegionIterator<ImageTypeInt> anima::NLinksFilter< TInput, TOutput >::ImageIteratorTypeInt |
Definition at line 58 of file animaNLinksFilter.h.
typedef itk::ImageRegionIterator<TSeedProba> anima::NLinksFilter< TInput, TOutput >::ImageIteratorTypeProba |
Definition at line 52 of file animaNLinksFilter.h.
typedef TSeedProba::Pointer anima::NLinksFilter< TInput, TOutput >::ImagePointerProba |
Definition at line 51 of file animaNLinksFilter.h.
typedef itk::Image<PixelTypeInt,3> anima::NLinksFilter< TInput, TOutput >::ImageTypeInt |
Definition at line 56 of file animaNLinksFilter.h.
typedef TInput::ConstPointer anima::NLinksFilter< TInput, TOutput >::InputImageConstPointer |
Definition at line 41 of file animaNLinksFilter.h.
typedef TInput::Pointer anima::NLinksFilter< TInput, TOutput >::InputImagePointer |
Image typedef support
Definition at line 40 of file animaNLinksFilter.h.
typedef TInput::PixelType anima::NLinksFilter< TInput, TOutput >::InputPixelType |
Definition at line 43 of file animaNLinksFilter.h.
typedef itk::ImageRegionConstIterator< TInput > anima::NLinksFilter< TInput, TOutput >::InRegionConstIteratorType |
Definition at line 42 of file animaNLinksFilter.h.
typedef itk::ImageRegionConstIterator< TMask > anima::NLinksFilter< TInput, TOutput >::MaskRegionConstIteratorType |
Definition at line 64 of file animaNLinksFilter.h.
typedef itk::ImageRegionIterator< TMask > anima::NLinksFilter< TInput, TOutput >::MaskRegionIteratorType |
Definition at line 63 of file animaNLinksFilter.h.
typedef double anima::NLinksFilter< TInput, TOutput >::NumericType |
Definition at line 68 of file animaNLinksFilter.h.
typedef TOutput::Pointer anima::NLinksFilter< TInput, TOutput >::OutputImagePointer |
Definition at line 45 of file animaNLinksFilter.h.
typedef Superclass::OutputImageRegionType anima::NLinksFilter< TInput, TOutput >::OutputImageRegionType |
Superclass typedefs.
Definition at line 94 of file animaNLinksFilter.h.
typedef itk::ImageRegionIterator< TOutput > anima::NLinksFilter< TInput, TOutput >::OutputIteratorType |
Definition at line 47 of file animaNLinksFilter.h.
typedef TOutput::PixelType anima::NLinksFilter< TInput, TOutput >::OutputPixelType |
Definition at line 46 of file animaNLinksFilter.h.
typedef ImageTypeInt::IndexType anima::NLinksFilter< TInput, TOutput >::pixelIndexInt |
Definition at line 57 of file animaNLinksFilter.h.
typedef double anima::NLinksFilter< TInput, TOutput >::PixelTypeD |
Definition at line 49 of file animaNLinksFilter.h.
typedef int anima::NLinksFilter< TInput, TOutput >::PixelTypeInt |
Definition at line 55 of file animaNLinksFilter.h.
typedef unsigned char anima::NLinksFilter< TInput, TOutput >::PixelTypeUC |
Definition at line 60 of file animaNLinksFilter.h.
typedef itk::SmartPointer<Self> anima::NLinksFilter< TInput, TOutput >::Pointer |
Definition at line 30 of file animaNLinksFilter.h.
typedef TSeedProba::PixelType anima::NLinksFilter< TInput, TOutput >::SeedProbaPixelType |
Definition at line 53 of file animaNLinksFilter.h.
typedef NLinksFilter anima::NLinksFilter< TInput, TOutput >::Self |
Standard class typedefs.
Definition at line 28 of file animaNLinksFilter.h.
typedef itk::ImageToImageFilter< TInput , TOutput> anima::NLinksFilter< TInput, TOutput >::Superclass |
Definition at line 29 of file animaNLinksFilter.h.
typedef itk::Image<PixelTypeUC,3> anima::NLinksFilter< TInput, TOutput >::TMask |
Definition at line 61 of file animaNLinksFilter.h.
typedef TMask::Pointer anima::NLinksFilter< TInput, TOutput >::TMaskPointer |
Definition at line 62 of file animaNLinksFilter.h.
typedef itk::Image<PixelTypeD,3> anima::NLinksFilter< TInput, TOutput >::TSeedProba |
Definition at line 50 of file animaNLinksFilter.h.
|
inlineprotected |
Definition at line 116 of file animaNLinksFilter.h.
References anima::NLinksFilter< TInput, TOutput >::MakeOutput().
|
inlineprotectedvirtual |
Definition at line 135 of file animaNLinksFilter.h.
References anima::NLinksFilter< TInput, TOutput >::GetInputImage1(), anima::NLinksFilter< TInput, TOutput >::GetInputImage2(), anima::NLinksFilter< TInput, TOutput >::GetInputImage3(), anima::NLinksFilter< TInput, TOutput >::GetInputImage4(), anima::NLinksFilter< TInput, TOutput >::GetInputImage5(), anima::NLinksFilter< TInput, TOutput >::GetInputImage6(), anima::NLinksFilter< TInput, TOutput >::GetInputSeedProbaSinks(), anima::NLinksFilter< TInput, TOutput >::GetInputSeedProbaSources(), anima::NLinksFilter< TInput, TOutput >::GetMask(), and anima::NLinksFilter< TInput, TOutput >::MakeOutput().
|
protected |
Definition at line 201 of file animaNLinksFilter.hxx.
References anima::NLinksFilter< TInput, TOutput >::GenerateData().
Referenced by anima::NLinksFilter< TInput, TOutput >::GetMatFilename(), and anima::NLinksFilter< TInput, TOutput >::readMatrixFile().
|
protected |
Definition at line 326 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::GetMatFilename().
virtual::itk::LightObject::Pointer anima::NLinksFilter< TInput, TOutput >::CreateAnother | ( | void | ) | const |
|
protected |
Definition at line 358 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::GetMatFilename().
|
protected |
Definition at line 274 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::CheckSpectralGradient(), and anima::NLinksFilter< TInput, TOutput >::GetMatFilename().
|
protected |
Definition at line 76 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
protected |
Definition at line 104 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
protected |
Definition at line 111 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
protected |
Definition at line 118 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
protected |
Definition at line 125 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
protected |
Referenced by anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
protected |
Definition at line 90 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
protected |
Definition at line 83 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
protected |
Definition at line 97 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
inlineprotected |
Definition at line 155 of file animaNLinksFilter.h.
References anima::NLinksFilter< TInput, TOutput >::CheckSpectralGradient(), anima::NLinksFilter< TInput, TOutput >::computeNLink(), anima::NLinksFilter< TInput, TOutput >::CreateGraph(), anima::NLinksFilter< TInput, TOutput >::GenerateData(), anima::NLinksFilter< TInput, TOutput >::isInside(), anima::NLinksFilter< TInput, TOutput >::readMatrixFile(), and anima::NLinksFilter< TInput, TOutput >::SetGraph().
|
inlineprotected |
Definition at line 154 of file animaNLinksFilter.h.
|
virtual |
Run-time type information (and related methods)
|
virtual |
TOutput::Pointer anima::NLinksFilter< TInputImage, TOutput >::GetOutput | ( | ) |
Definition at line 154 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::SetMatrix().
TOutput::Pointer anima::NLinksFilter< TInputImage, TOutput >::GetOutputBackground | ( | ) |
Definition at line 159 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::SetMatrix().
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 414 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::GetMatFilename().
|
protected |
Create the Output
Definition at line 133 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::NLinksFilter(), and anima::NLinksFilter< TInput, TOutput >::~NLinksFilter().
|
static |
Method for creation through the object factory.
Referenced by anima::Graph3DFilter< TInput, TOutput >::Graph3DFilter().
|
protected |
Definition at line 165 of file animaNLinksFilter.hxx.
References anima::NLinksFilter< TInput, TOutput >::CheckSpectralGradient().
Referenced by anima::NLinksFilter< TInput, TOutput >::GetMatFilename().
|
protected |
Definition at line 420 of file animaNLinksFilter.hxx.
Referenced by anima::NLinksFilter< TInput, TOutput >::GetMatFilename().
void anima::NLinksFilter< TInput, TOutput >::SetInputImage1 | ( | const TInput * | image | ) |
The mri images.
Definition at line 9 of file animaNLinksFilter.hxx.
void anima::NLinksFilter< TInput, TOutput >::SetInputImage2 | ( | const TInput * | image | ) |
Definition at line 35 of file animaNLinksFilter.hxx.
void anima::NLinksFilter< TInput, TOutput >::SetInputImage3 | ( | const TInput * | image | ) |
Definition at line 45 of file animaNLinksFilter.hxx.
void anima::NLinksFilter< TInput, TOutput >::SetInputImage4 | ( | const TInput * | image | ) |
Definition at line 55 of file animaNLinksFilter.hxx.
void anima::NLinksFilter< TInput, TOutput >::SetInputImage5 | ( | const TInput * | image | ) |
Definition at line 65 of file animaNLinksFilter.hxx.
void anima::NLinksFilter< TInput, TOutput >::SetInputSeedProbaSinks | ( | const TSeedProba * | mask | ) |
Definition at line 23 of file animaNLinksFilter.hxx.
void anima::NLinksFilter< TInput, TOutput >::SetInputSeedProbaSources | ( | const TSeedProba * | mask | ) |
probabilities of the object and the background, respectively
Definition at line 17 of file animaNLinksFilter.hxx.
void anima::NLinksFilter< TInput, TOutput >::SetMask | ( | const TMask * | mask | ) |
mask in which the segmentation will be performed
Definition at line 29 of file animaNLinksFilter.hxx.
|
inline |
Definition at line 87 of file animaNLinksFilter.h.
|
inline |
Definition at line 88 of file animaNLinksFilter.h.
References anima::NLinksFilter< TInput, TOutput >::GetOutput(), and anima::NLinksFilter< TInput, TOutput >::GetOutputBackground().
|
virtual |
|
virtual |
|
inline |
Definition at line 96 of file animaNLinksFilter.h.
|
virtual |
|
virtual |