ANIMA
4.0
|
Class allowing the decimation of the images if necessary (if 3D graph size causes memory problems). This class just launchs NLinksFilter with appropriate image sizes. More...
#include <animaGraph3DFilter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::VariableSizeMatrix< NumericType > | doubleVariableSizeMatrixType |
typedef Graph< double, double, double > | GraphType |
typedef itk::ImageRegionIterator< TSeedProba > | ImageIteratorTypeProba |
typedef TSeedProba::Pointer | ImagePointerProba |
typedef TInput::ConstPointer | InputImageConstPointer |
typedef TInput::Pointer | InputImagePointer |
typedef TInput::PixelType | InputPixelType |
typedef itk::ImageRegionConstIterator< TInput > | InRegionConstIteratorType |
typedef itk::ImageRegionIterator< TInput > | InRegionIteratorType |
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 double | PixelTypeD |
typedef unsigned char | PixelTypeUC |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::ResampleImageFilter< TSeedProba, TSeedProba > | ResampleImageFilterdoubleType |
typedef itk::ResampleImageFilter< TMask, TMask > | ResampleImageFilterMaskType |
typedef itk::ResampleImageFilter< TInput, TInput > | ResampleImageFilterType |
typedef TSeedProba::PixelType | SeedProbaPixelType |
typedef Graph3DFilter | Self |
typedef itk::ImageToImageFilter< TInput, TOutput > | Superclass |
typedef itk::Image< PixelTypeUC, 3 > | TMask |
typedef TMask::Pointer | TMaskPointer |
typedef itk::IdentityTransform< double, 3 > | TransformType |
typedef itk::Image< PixelTypeD, 3 > | TSeedProba |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
TMask::Pointer | Dilate (const TMask *input, const TMask *mask) |
virtual const char * | GetNameOfClass () const |
OutputImagePointer | GetOutput () |
OutputImagePointer | GetOutputBackground () |
virtual double | GetSigma () |
virtual bool | GetUseSpectralGradient () |
virtual bool | GetVerbose () |
void | SetInputImage (unsigned int i, 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 | SetSigma (double _arg) |
void | SetTol (const double tol) |
virtual void | SetUseSpectralGradient (bool _arg) |
virtual void | SetVerbose (bool _arg) |
TMask::Pointer | Upsample (const TMask *input, TMask::SizeType upSize, TMask::DirectionType outputDirection, TMask::PointType outputOrigin) |
Static Public Member Functions | |
static Pointer | New () |
Protected Types | |
typedef NLinksFilter< TInput, TMask > | NLinksFilterType |
Protected Member Functions | |
bool | CheckMemory () |
void | FindDownsampleFactor () |
void | GenerateData () ITK_OVERRIDE |
TInput::ConstPointer | GetInputImage1 () |
TInput::ConstPointer | GetInputImage2 () |
TInput::ConstPointer | GetInputImage3 () |
TInput::ConstPointer | GetInputImage4 () |
TInput::ConstPointer | GetInputImage5 () |
TSeedProba::ConstPointer | GetInputSeedProbaSinks () |
TSeedProba::ConstPointer | GetInputSeedProbaSources () |
TMask::ConstPointer | GetMask () |
std::string | GetMatFilename (void) |
doubleVariableSizeMatrixType | GetMatrix (void) |
Graph3DFilter () | |
void | InitResampleFilters () |
itk::DataObject::Pointer | MakeOutput (unsigned int idx) |
void | ProcessDownsampledGraphCut (int current_count) |
void | ProcessGraphCut () |
virtual | ~Graph3DFilter () |
Protected Attributes | |
NLinksFilterType::Pointer | m_NLinksFilter |
NLinksFilterType::Pointer | m_NLinksFilterDecim |
ResampleImageFilterType::Pointer | m_Resample1 |
ResampleImageFilterType::Pointer | m_Resample2 |
ResampleImageFilterType::Pointer | m_Resample3 |
ResampleImageFilterType::Pointer | m_Resample4 |
ResampleImageFilterType::Pointer | m_Resample5 |
ResampleImageFilterMaskType::Pointer | m_ResampleMask |
ResampleImageFilterdoubleType::Pointer | m_ResampleSinks |
ResampleImageFilterdoubleType::Pointer | m_ResampleSources |
Class allowing the decimation of the images if necessary (if 3D graph size causes memory problems). This class just launchs NLinksFilter with appropriate image sizes.
Definition at line 23 of file animaGraph3DFilter.h.
typedef itk::SmartPointer<const Self> anima::Graph3DFilter< TInput, TOutput >::ConstPointer |
Definition at line 31 of file animaGraph3DFilter.h.
typedef itk::VariableSizeMatrix<NumericType> anima::Graph3DFilter< TInput, TOutput >::doubleVariableSizeMatrixType |
Definition at line 65 of file animaGraph3DFilter.h.
typedef Graph<double,double,double> anima::Graph3DFilter< TInput, TOutput >::GraphType |
Definition at line 62 of file animaGraph3DFilter.h.
typedef itk::ImageRegionIterator<TSeedProba> anima::Graph3DFilter< TInput, TOutput >::ImageIteratorTypeProba |
Definition at line 49 of file animaGraph3DFilter.h.
typedef TSeedProba::Pointer anima::Graph3DFilter< TInput, TOutput >::ImagePointerProba |
Definition at line 48 of file animaGraph3DFilter.h.
typedef TInput::ConstPointer anima::Graph3DFilter< TInput, TOutput >::InputImageConstPointer |
Definition at line 41 of file animaGraph3DFilter.h.
typedef TInput::Pointer anima::Graph3DFilter< TInput, TOutput >::InputImagePointer |
Image typedef support
Definition at line 40 of file animaGraph3DFilter.h.
typedef TInput::PixelType anima::Graph3DFilter< TInput, TOutput >::InputPixelType |
Definition at line 44 of file animaGraph3DFilter.h.
typedef itk::ImageRegionConstIterator< TInput > anima::Graph3DFilter< TInput, TOutput >::InRegionConstIteratorType |
Definition at line 42 of file animaGraph3DFilter.h.
typedef itk::ImageRegionIterator< TInput > anima::Graph3DFilter< TInput, TOutput >::InRegionIteratorType |
Definition at line 43 of file animaGraph3DFilter.h.
typedef itk::ImageRegionConstIterator< TMask > anima::Graph3DFilter< TInput, TOutput >::MaskRegionConstIteratorType |
Definition at line 60 of file animaGraph3DFilter.h.
typedef itk::ImageRegionIterator< TMask > anima::Graph3DFilter< TInput, TOutput >::MaskRegionIteratorType |
Definition at line 59 of file animaGraph3DFilter.h.
|
protected |
Definition at line 114 of file animaGraph3DFilter.h.
typedef double anima::Graph3DFilter< TInput, TOutput >::NumericType |
Definition at line 64 of file animaGraph3DFilter.h.
typedef TOutput::Pointer anima::Graph3DFilter< TInput, TOutput >::OutputImagePointer |
Definition at line 52 of file animaGraph3DFilter.h.
typedef Superclass::OutputImageRegionType anima::Graph3DFilter< TInput, TOutput >::OutputImageRegionType |
Superclass typedefs.
Definition at line 94 of file animaGraph3DFilter.h.
typedef itk::ImageRegionIterator< TOutput > anima::Graph3DFilter< TInput, TOutput >::OutputIteratorType |
Definition at line 54 of file animaGraph3DFilter.h.
typedef TOutput::PixelType anima::Graph3DFilter< TInput, TOutput >::OutputPixelType |
Definition at line 53 of file animaGraph3DFilter.h.
typedef double anima::Graph3DFilter< TInput, TOutput >::PixelTypeD |
Definition at line 46 of file animaGraph3DFilter.h.
typedef unsigned char anima::Graph3DFilter< TInput, TOutput >::PixelTypeUC |
Definition at line 56 of file animaGraph3DFilter.h.
typedef itk::SmartPointer<Self> anima::Graph3DFilter< TInput, TOutput >::Pointer |
Definition at line 30 of file animaGraph3DFilter.h.
typedef itk::ResampleImageFilter<TSeedProba, TSeedProba> anima::Graph3DFilter< TInput, TOutput >::ResampleImageFilterdoubleType |
Definition at line 70 of file animaGraph3DFilter.h.
typedef itk::ResampleImageFilter<TMask, TMask> anima::Graph3DFilter< TInput, TOutput >::ResampleImageFilterMaskType |
Definition at line 69 of file animaGraph3DFilter.h.
typedef itk::ResampleImageFilter<TInput, TInput> anima::Graph3DFilter< TInput, TOutput >::ResampleImageFilterType |
Definition at line 68 of file animaGraph3DFilter.h.
typedef TSeedProba::PixelType anima::Graph3DFilter< TInput, TOutput >::SeedProbaPixelType |
Definition at line 50 of file animaGraph3DFilter.h.
typedef Graph3DFilter anima::Graph3DFilter< TInput, TOutput >::Self |
Standard class typedefs.
Definition at line 28 of file animaGraph3DFilter.h.
typedef itk::ImageToImageFilter< TInput , TOutput> anima::Graph3DFilter< TInput, TOutput >::Superclass |
Definition at line 29 of file animaGraph3DFilter.h.
typedef itk::Image<PixelTypeUC,3> anima::Graph3DFilter< TInput, TOutput >::TMask |
Definition at line 57 of file animaGraph3DFilter.h.
typedef TMask::Pointer anima::Graph3DFilter< TInput, TOutput >::TMaskPointer |
Definition at line 58 of file animaGraph3DFilter.h.
typedef itk::IdentityTransform<double, 3> anima::Graph3DFilter< TInput, TOutput >::TransformType |
Definition at line 67 of file animaGraph3DFilter.h.
typedef itk::Image<PixelTypeD,3> anima::Graph3DFilter< TInput, TOutput >::TSeedProba |
Definition at line 47 of file animaGraph3DFilter.h.
|
inlineprotected |
Definition at line 126 of file animaGraph3DFilter.h.
References anima::Graph3DFilter< TInput, TOutput >::MakeOutput(), and anima::NLinksFilter< TInput, TOutput >::New().
|
inlineprotectedvirtual |
Definition at line 146 of file animaGraph3DFilter.h.
References anima::Graph3DFilter< TInput, TOutput >::GetInputImage1(), anima::Graph3DFilter< TInput, TOutput >::GetInputImage2(), anima::Graph3DFilter< TInput, TOutput >::GetInputImage3(), anima::Graph3DFilter< TInput, TOutput >::GetInputImage4(), anima::Graph3DFilter< TInput, TOutput >::GetInputImage5(), anima::Graph3DFilter< TInput, TOutput >::GetInputSeedProbaSinks(), anima::Graph3DFilter< TInput, TOutput >::GetInputSeedProbaSources(), anima::Graph3DFilter< TInput, TOutput >::GetMask(), and anima::Graph3DFilter< TInput, TOutput >::MakeOutput().
|
protected |
Definition at line 254 of file animaGraph3DFilter.hxx.
References anima::Graph3DFilter< TInput, TOutput >::ProcessGraphCut().
Referenced by anima::Graph3DFilter< TInput, TOutput >::GenerateData(), and anima::Graph3DFilter< TInput, TOutput >::GetMatFilename().
virtual::itk::LightObject::Pointer anima::Graph3DFilter< TInput, TOutput >::CreateAnother | ( | void | ) | const |
itk::Image< unsigned char, 3 >::Pointer anima::Graph3DFilter< TInput, TOutput >::Dilate | ( | const TMask * | input, |
const TMask * | mask | ||
) |
Definition at line 529 of file animaGraph3DFilter.hxx.
References anima::Graph3DFilter< TInput, TOutput >::Upsample().
Referenced by anima::Graph3DFilter< TInput, TOutput >::ProcessDownsampledGraphCut(), and anima::Graph3DFilter< TInput, TOutput >::SetMatrix().
|
protected |
Definition at line 330 of file animaGraph3DFilter.hxx.
References anima::Graph3DFilter< TInput, TOutput >::InitResampleFilters().
Referenced by anima::Graph3DFilter< TInput, TOutput >::GetMatFilename().
|
protected |
Definition at line 154 of file animaGraph3DFilter.hxx.
References anima::Graph3DFilter< TInput, TOutput >::CheckMemory().
Referenced by anima::Graph3DFilter< TInput, TOutput >::GetMatFilename(), and anima::Graph3DFilter< TInput, TOutput >::GetOutputBackground().
|
protected |
Definition at line 63 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::~Graph3DFilter().
|
protected |
Definition at line 91 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::~Graph3DFilter().
|
protected |
Definition at line 98 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::~Graph3DFilter().
|
protected |
Definition at line 105 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::~Graph3DFilter().
|
protected |
Definition at line 112 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::~Graph3DFilter().
|
protected |
Definition at line 77 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::~Graph3DFilter().
|
protected |
Definition at line 70 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::~Graph3DFilter().
|
protected |
Definition at line 84 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::~Graph3DFilter().
|
inlineprotected |
Definition at line 165 of file animaGraph3DFilter.h.
References anima::Graph3DFilter< TInput, TOutput >::CheckMemory(), anima::Graph3DFilter< TInput, TOutput >::FindDownsampleFactor(), anima::Graph3DFilter< TInput, TOutput >::GenerateData(), anima::Graph3DFilter< TInput, TOutput >::InitResampleFilters(), anima::Graph3DFilter< TInput, TOutput >::ProcessDownsampledGraphCut(), and anima::Graph3DFilter< TInput, TOutput >::ProcessGraphCut().
|
inlineprotected |
Definition at line 164 of file animaGraph3DFilter.h.
|
virtual |
Run-time type information (and related methods)
TOutput::Pointer anima::Graph3DFilter< TInputImage, TOutput >::GetOutput | ( | ) |
Definition at line 140 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::SetMatrix().
TOutput::Pointer anima::Graph3DFilter< TInputImage, TOutput >::GetOutputBackground | ( | ) |
Definition at line 145 of file animaGraph3DFilter.hxx.
References anima::Graph3DFilter< TInput, TOutput >::GenerateData().
Referenced by anima::Graph3DFilter< TInput, TOutput >::SetMatrix().
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 400 of file animaGraph3DFilter.hxx.
References anima::Graph3DFilter< TInput, TOutput >::ProcessDownsampledGraphCut().
Referenced by anima::Graph3DFilter< TInput, TOutput >::FindDownsampleFactor(), and anima::Graph3DFilter< TInput, TOutput >::GetMatFilename().
|
protected |
Create the Output
Definition at line 119 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::Graph3DFilter(), and anima::Graph3DFilter< TInput, TOutput >::~Graph3DFilter().
|
static |
Method for creation through the object factory.
Referenced by anima::GraphCutFilter< TInput, TOutput >::GraphCutFilter().
|
protected |
Definition at line 482 of file animaGraph3DFilter.hxx.
References anima::Graph3DFilter< TInput, TOutput >::Dilate().
Referenced by anima::Graph3DFilter< TInput, TOutput >::GetMatFilename(), and anima::Graph3DFilter< TInput, TOutput >::InitResampleFilters().
|
protected |
Definition at line 291 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::CheckMemory(), and anima::Graph3DFilter< TInput, TOutput >::GetMatFilename().
void anima::Graph3DFilter< TInput, TOutput >::SetInputImage | ( | unsigned int | i, |
const TInput * | image | ||
) |
The mri images.
Definition at line 9 of file animaGraph3DFilter.hxx.
void anima::Graph3DFilter< TInput, TOutput >::SetInputSeedProbaSinks | ( | const TSeedProba * | mask | ) |
Definition at line 51 of file animaGraph3DFilter.hxx.
void anima::Graph3DFilter< TInput, TOutput >::SetInputSeedProbaSources | ( | const TSeedProba * | mask | ) |
probabilities of the object and the background, respectively
Definition at line 45 of file animaGraph3DFilter.hxx.
void anima::Graph3DFilter< TInput, TOutput >::SetMask | ( | const TMask * | mask | ) |
mask in which the segmentation will be performed
Definition at line 57 of file animaGraph3DFilter.hxx.
|
inline |
Definition at line 84 of file animaGraph3DFilter.h.
|
inline |
|
virtual |
|
inline |
Definition at line 96 of file animaGraph3DFilter.h.
|
virtual |
|
virtual |
itk::Image< unsigned char, 3 >::Pointer anima::Graph3DFilter< TInput, TOutput >::Upsample | ( | const TMask * | input, |
TMask::SizeType | upSize, | ||
TMask::DirectionType | outputDirection, | ||
TMask::PointType | outputOrigin | ||
) |
Definition at line 558 of file animaGraph3DFilter.hxx.
Referenced by anima::Graph3DFilter< TInput, TOutput >::Dilate(), and anima::Graph3DFilter< TInput, TOutput >::SetMatrix().
|
protected |
Definition at line 115 of file animaGraph3DFilter.h.
|
protected |
Definition at line 116 of file animaGraph3DFilter.h.
|
protected |
Definition at line 117 of file animaGraph3DFilter.h.
|
protected |
Definition at line 118 of file animaGraph3DFilter.h.
|
protected |
Definition at line 119 of file animaGraph3DFilter.h.
|
protected |
Definition at line 120 of file animaGraph3DFilter.h.
|
protected |
Definition at line 121 of file animaGraph3DFilter.h.
|
protected |
Definition at line 122 of file animaGraph3DFilter.h.
|
protected |
Definition at line 124 of file animaGraph3DFilter.h.
|
protected |
Definition at line 123 of file animaGraph3DFilter.h.