ANIMA  4.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
anima::BlockMatchingInitializer< PixelType, NDimensions > Class Template Reference

#include <animaBlockMatchInitializer.h>

+ Inheritance diagram for anima::BlockMatchingInitializer< PixelType, NDimensions >:
+ Collaboration diagram for anima::BlockMatchingInitializer< PixelType, NDimensions >:

Classes

struct  BlockGeneratorThreadStruct
 
struct  pair_comparator
 

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef ScalarImageType::RegionType ImageRegionType
 
typedef ScalarImageType::IndexType IndexType
 
typedef MaskImageType::Pointer MaskImagePointer
 
typedef itk::Image< unsigned char, NDimensions > MaskImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ScalarImageType::PointType PointType
 
typedef ScalarImageType::Pointer ScalarImagePointer
 
typedef itk::Image< PixelType, NDimensions > ScalarImageType
 
typedef BlockMatchingInitializer< PixelType, NDimensions > Self
 
typedef itk::Object Superclass
 
typedef VectorImageType::Pointer VectorImagePointer
 
typedef itk::VectorImage< PixelType, NDimensions > VectorImageType
 
typedef WeightImageType::Pointer WeightImagePointer
 
typedef itk::Image< double, NDimensions > WeightImageType
 

Public Member Functions

void AddGenerationMask (MaskImageType *mask)
 
virtual void AddReferenceImage (itk::ImageBase< NDimensions > *refImage)
 
void clearGenerationMasks ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual unsigned int GetBlockSize ()
 
virtual unsigned int GetBlockSpacing ()
 
itk::ImageBase< NDimensions > * GetFirstReferenceImage ()
 
std::vector< unsigned int > & GetMaskStartingIndexes ()
 
virtual const char * GetNameOfClass () const
 
virtual unsigned int GetNumberOfThreads ()
 
virtual double GetOrientedModelVarianceThreshold ()
 
std::vector< ImageRegionType > & GetOutput ()
 
std::vector< PointType > & GetOutputPositions ()
 
virtual double GetPercentageKept ()
 
ScalarImageTypeGetReferenceScalarImage (unsigned int i)
 
VectorImageTypeGetReferenceVectorImage (unsigned int i)
 
virtual ImageRegionType GetRequestedRegion ()
 
virtual double GetScalarVarianceThreshold ()
 
void RegionBlockGenerator (BlockGeneratorThreadStruct *workStr, unsigned int threadId)
 
void SetBlockSize (unsigned int val)
 
void SetBlockSpacing (unsigned int val)
 
virtual void SetNumberOfThreads (unsigned int _arg)
 
void SetOrientedModelVarianceThreshold (double val)
 
void SetPercentageKept (double val)
 
void SetRequestedRegion (const ImageRegionType &val)
 
void SetScalarVarianceThreshold (double val)
 
void Update ()
 

Static Public Member Functions

static Pointer New ()
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreadBlockGenerator (void *arg)
 

Protected Member Functions

 BlockMatchingInitializer ()
 
bool CheckBlockConditions (ImageRegionType &region, double &blockVariance, BlockGeneratorThreadStruct *workStr, unsigned int threadId)
 
virtual bool CheckOrientedModelVariance (unsigned int imageIndex, ImageRegionType &region, double &blockVariance, BlockGeneratorThreadStruct *workStr, unsigned int threadId)
 
bool CheckScalarVariance (ScalarImageType *refImage, ImageRegionType &region, double &blockVariance)
 
void ComputeBlocksOnGenerationMask (unsigned int maskIndex)
 
virtual void InitializeThreading (unsigned int maskIndex, BlockGeneratorThreadStruct *&workStr)
 
bool ProgressCounter (std::vector< unsigned int > &counter, std::vector< unsigned int > &bounds)
 
virtual ~BlockMatchingInitializer ()
 

Detailed Description

template<class PixelType, unsigned int NDimensions = 3>
class anima::BlockMatchingInitializer< PixelType, NDimensions >

Definition at line 14 of file animaBlockMatchInitializer.h.

Member Typedef Documentation

◆ ConstPointer

template<class PixelType , unsigned int NDimensions = 3>
typedef itk::SmartPointer<const Self> anima::BlockMatchingInitializer< PixelType, NDimensions >::ConstPointer

Definition at line 21 of file animaBlockMatchInitializer.h.

◆ ImageRegionType

template<class PixelType , unsigned int NDimensions = 3>
typedef ScalarImageType::RegionType anima::BlockMatchingInitializer< PixelType, NDimensions >::ImageRegionType

Definition at line 37 of file animaBlockMatchInitializer.h.

◆ IndexType

template<class PixelType , unsigned int NDimensions = 3>
typedef ScalarImageType::IndexType anima::BlockMatchingInitializer< PixelType, NDimensions >::IndexType

Definition at line 26 of file animaBlockMatchInitializer.h.

◆ MaskImagePointer

template<class PixelType , unsigned int NDimensions = 3>
typedef MaskImageType::Pointer anima::BlockMatchingInitializer< PixelType, NDimensions >::MaskImagePointer

Definition at line 41 of file animaBlockMatchInitializer.h.

◆ MaskImageType

template<class PixelType , unsigned int NDimensions = 3>
typedef itk::Image<unsigned char, NDimensions> anima::BlockMatchingInitializer< PixelType, NDimensions >::MaskImageType

Definition at line 29 of file animaBlockMatchInitializer.h.

◆ Pointer

template<class PixelType , unsigned int NDimensions = 3>
typedef itk::SmartPointer<Self> anima::BlockMatchingInitializer< PixelType, NDimensions >::Pointer

Definition at line 20 of file animaBlockMatchInitializer.h.

◆ PointType

template<class PixelType , unsigned int NDimensions = 3>
typedef ScalarImageType::PointType anima::BlockMatchingInitializer< PixelType, NDimensions >::PointType

Definition at line 27 of file animaBlockMatchInitializer.h.

◆ ScalarImagePointer

template<class PixelType , unsigned int NDimensions = 3>
typedef ScalarImageType::Pointer anima::BlockMatchingInitializer< PixelType, NDimensions >::ScalarImagePointer

Definition at line 39 of file animaBlockMatchInitializer.h.

◆ ScalarImageType

template<class PixelType , unsigned int NDimensions = 3>
typedef itk::Image<PixelType, NDimensions> anima::BlockMatchingInitializer< PixelType, NDimensions >::ScalarImageType

Definition at line 23 of file animaBlockMatchInitializer.h.

◆ Self

template<class PixelType , unsigned int NDimensions = 3>
typedef BlockMatchingInitializer<PixelType,NDimensions> anima::BlockMatchingInitializer< PixelType, NDimensions >::Self

Definition at line 19 of file animaBlockMatchInitializer.h.

◆ Superclass

template<class PixelType , unsigned int NDimensions = 3>
typedef itk::Object anima::BlockMatchingInitializer< PixelType, NDimensions >::Superclass

Definition at line 18 of file animaBlockMatchInitializer.h.

◆ VectorImagePointer

template<class PixelType , unsigned int NDimensions = 3>
typedef VectorImageType::Pointer anima::BlockMatchingInitializer< PixelType, NDimensions >::VectorImagePointer

Definition at line 40 of file animaBlockMatchInitializer.h.

◆ VectorImageType

template<class PixelType , unsigned int NDimensions = 3>
typedef itk::VectorImage<PixelType, NDimensions> anima::BlockMatchingInitializer< PixelType, NDimensions >::VectorImageType

Definition at line 28 of file animaBlockMatchInitializer.h.

◆ WeightImagePointer

template<class PixelType , unsigned int NDimensions = 3>
typedef WeightImageType::Pointer anima::BlockMatchingInitializer< PixelType, NDimensions >::WeightImagePointer

Definition at line 25 of file animaBlockMatchInitializer.h.

◆ WeightImageType

template<class PixelType , unsigned int NDimensions = 3>
typedef itk::Image<double, NDimensions> anima::BlockMatchingInitializer< PixelType, NDimensions >::WeightImageType

Definition at line 24 of file animaBlockMatchInitializer.h.

Constructor & Destructor Documentation

◆ BlockMatchingInitializer()

template<class PixelType , unsigned int NDimensions = 3>
anima::BlockMatchingInitializer< PixelType, NDimensions >::BlockMatchingInitializer ( )
inlineprotected

◆ ~BlockMatchingInitializer()

template<class PixelType , unsigned int NDimensions = 3>
virtual anima::BlockMatchingInitializer< PixelType, NDimensions >::~BlockMatchingInitializer ( )
inlineprotectedvirtual

Member Function Documentation

◆ AddGenerationMask()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::AddGenerationMask ( MaskImageType mask)

◆ AddReferenceImage()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::AddReferenceImage ( itk::ImageBase< NDimensions > *  refImage)
virtual

◆ CheckBlockConditions()

template<class PixelType , unsigned int NDimensions>
bool anima::BlockMatchingInitializer< PixelType, NDimensions >::CheckBlockConditions ( ImageRegionType region,
double &  blockVariance,
BlockGeneratorThreadStruct workStr,
unsigned int  threadId 
)
protected

◆ CheckOrientedModelVariance()

template<class PixelType , unsigned int NDimensions>
bool anima::BlockMatchingInitializer< PixelType, NDimensions >::CheckOrientedModelVariance ( unsigned int  imageIndex,
ImageRegionType region,
double &  blockVariance,
BlockGeneratorThreadStruct workStr,
unsigned int  threadId 
)
protectedvirtual

◆ CheckScalarVariance()

template<class PixelType , unsigned int NDimensions>
bool anima::BlockMatchingInitializer< PixelType, NDimensions >::CheckScalarVariance ( ScalarImageType refImage,
ImageRegionType region,
double &  blockVariance 
)
protected

◆ clearGenerationMasks()

template<class PixelType , unsigned int NDimensions = 3>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::clearGenerationMasks ( )
inline

◆ ComputeBlocksOnGenerationMask()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::ComputeBlocksOnGenerationMask ( unsigned int  maskIndex)
protected

◆ CreateAnother()

template<class PixelType , unsigned int NDimensions = 3>
virtual::itk::LightObject::Pointer anima::BlockMatchingInitializer< PixelType, NDimensions >::CreateAnother ( void  ) const

◆ GetBlockSize()

template<class PixelType , unsigned int NDimensions = 3>
virtual unsigned int anima::BlockMatchingInitializer< PixelType, NDimensions >::GetBlockSize ( )
virtual

◆ GetBlockSpacing()

template<class PixelType , unsigned int NDimensions = 3>
virtual unsigned int anima::BlockMatchingInitializer< PixelType, NDimensions >::GetBlockSpacing ( )
virtual

◆ GetFirstReferenceImage()

template<class PixelType , unsigned int NDimensions>
itk::ImageBase< NDimensions > * anima::BlockMatchingInitializer< PixelType, NDimensions >::GetFirstReferenceImage ( )

◆ GetMaskStartingIndexes()

template<class PixelType , unsigned int NDimensions>
std::vector< unsigned int > & anima::BlockMatchingInitializer< PixelType, NDimensions >::GetMaskStartingIndexes ( )

◆ GetNameOfClass()

template<class PixelType , unsigned int NDimensions = 3>
virtual const char* anima::BlockMatchingInitializer< PixelType, NDimensions >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods)

Reimplemented in anima::MCMBlockMatchingInitializer< PixelType, NDimensions >.

◆ GetNumberOfThreads()

template<class PixelType , unsigned int NDimensions = 3>
virtual unsigned int anima::BlockMatchingInitializer< PixelType, NDimensions >::GetNumberOfThreads ( )
virtual

◆ GetOrientedModelVarianceThreshold()

template<class PixelType , unsigned int NDimensions = 3>
virtual double anima::BlockMatchingInitializer< PixelType, NDimensions >::GetOrientedModelVarianceThreshold ( )
virtual

◆ GetOutput()

template<class PixelType , unsigned int NDimensions>
std::vector< typename BlockMatchingInitializer< PixelType, NDimensions >::ImageRegionType > & anima::BlockMatchingInitializer< PixelType, NDimensions >::GetOutput ( )

◆ GetOutputPositions()

template<class PixelType , unsigned int NDimensions>
std::vector< typename BlockMatchingInitializer< PixelType, NDimensions >::PointType > & anima::BlockMatchingInitializer< PixelType, NDimensions >::GetOutputPositions ( )

◆ GetPercentageKept()

template<class PixelType , unsigned int NDimensions = 3>
virtual double anima::BlockMatchingInitializer< PixelType, NDimensions >::GetPercentageKept ( )
virtual

◆ GetReferenceScalarImage()

template<class PixelType , unsigned int NDimensions = 3>
ScalarImageType* anima::BlockMatchingInitializer< PixelType, NDimensions >::GetReferenceScalarImage ( unsigned int  i)
inline

Definition at line 70 of file animaBlockMatchInitializer.h.

◆ GetReferenceVectorImage()

template<class PixelType , unsigned int NDimensions = 3>
VectorImageType* anima::BlockMatchingInitializer< PixelType, NDimensions >::GetReferenceVectorImage ( unsigned int  i)
inline

◆ GetRequestedRegion()

template<class PixelType , unsigned int NDimensions = 3>
virtual ImageRegionType anima::BlockMatchingInitializer< PixelType, NDimensions >::GetRequestedRegion ( )
virtual

◆ GetScalarVarianceThreshold()

template<class PixelType , unsigned int NDimensions = 3>
virtual double anima::BlockMatchingInitializer< PixelType, NDimensions >::GetScalarVarianceThreshold ( )
virtual

◆ InitializeThreading()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::InitializeThreading ( unsigned int  maskIndex,
BlockGeneratorThreadStruct *&  workStr 
)
protectedvirtual

◆ New()

template<class PixelType , unsigned int NDimensions = 3>
static Pointer anima::BlockMatchingInitializer< PixelType, NDimensions >::New ( )
static

Method for creation through the object factory.

◆ ProgressCounter()

template<class PixelType , unsigned int NDimensions>
bool anima::BlockMatchingInitializer< PixelType, NDimensions >::ProgressCounter ( std::vector< unsigned int > &  counter,
std::vector< unsigned int > &  bounds 
)
protected

◆ RegionBlockGenerator()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::RegionBlockGenerator ( BlockGeneratorThreadStruct workStr,
unsigned int  threadId 
)

◆ SetBlockSize()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::SetBlockSize ( unsigned int  val)

◆ SetBlockSpacing()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::SetBlockSpacing ( unsigned int  val)

◆ SetNumberOfThreads()

template<class PixelType , unsigned int NDimensions = 3>
virtual void anima::BlockMatchingInitializer< PixelType, NDimensions >::SetNumberOfThreads ( unsigned int  _arg)
virtual

◆ SetOrientedModelVarianceThreshold()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::SetOrientedModelVarianceThreshold ( double  val)

◆ SetPercentageKept()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::SetPercentageKept ( double  val)

◆ SetRequestedRegion()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::SetRequestedRegion ( const ImageRegionType val)

◆ SetScalarVarianceThreshold()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::SetScalarVarianceThreshold ( double  val)

◆ ThreadBlockGenerator()

template<class PixelType , unsigned int NDimensions>
ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION anima::BlockMatchingInitializer< PixelType, NDimensions >::ThreadBlockGenerator ( void *  arg)
static

◆ Update()

template<class PixelType , unsigned int NDimensions>
void anima::BlockMatchingInitializer< PixelType, NDimensions >::Update ( )

The documentation for this class was generated from the following files: