NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
itk::ScaleVectorFieldFilter< TScalarType, NDimensions > Class Template Reference

This class takes two inputs, the first is a vector field, such as the output from a registration force generator. The second is another vector field, such as the gradient of an image. The images must have the same size, and same vector dimensionality (enforced via template parameters). The output is the first field, scaled by the second. If ScaleByComponents is true, the vectors are simply multiplied componentwise. If ScaleByComponents is false, the vectors are simply multiplied by the individual magnitude of the second vector field. More...

Inheritance diagram for itk::ScaleVectorFieldFilter< TScalarType, NDimensions >:
Inheritance graph
[legend]
Collaboration diagram for itk::ScaleVectorFieldFilter< TScalarType, NDimensions >:
Collaboration graph
[legend]

Public Types

typedef ScaleVectorFieldFilter Self
 
typedef ImageToImageFilter
< Image< Vector< TScalarType,
NDimensions >, NDimensions >
, Image< Vector< TScalarType,
NDimensions >, NDimensions > > 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef Vector< TScalarType,
itkGetStaticConstMacro(Dimension) > 
OutputPixelType
 
typedef Image< OutputPixelType,
itkGetStaticConstMacro(Dimension) > 
OutputImageType
 
typedef Superclass::InputImageType InputImageType
 
typedef
Superclass::InputImagePointer 
InputImagePointer
 
typedef
Superclass::InputImageRegionType 
InputImageRegionType
 
typedef InputImageType::PixelType InputImagePixelType
 

Public Member Functions

virtual const char * GetClassName () const
 
 itkStaticConstMacro (Dimension, unsigned int, NDimensions)
 
virtual void SetImageThatWillBeScaled (const InputImageType *image)
 
virtual void SetImageThatDeterminesTheAmountOfScaling (const InputImageType *image)
 
virtual void SetNthInput (unsigned int idx, const InputImageType *)
 
virtual void SetScaleByComponents (bool _arg)
 
virtual bool GetScaleByComponents ()
 
void WriteVectorImage (std::string filename)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ScaleVectorFieldFilter ()
 
 ~ScaleVectorFieldFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual void BeforeThreadedGenerateData ()
 
virtual void ThreadedGenerateData (const InputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 

Protected Attributes

bool m_ScaleByComponents
 

Detailed Description

template<class TScalarType = double, unsigned int NDimensions = 3>
class itk::ScaleVectorFieldFilter< TScalarType, NDimensions >

This class takes two inputs, the first is a vector field, such as the output from a registration force generator. The second is another vector field, such as the gradient of an image. The images must have the same size, and same vector dimensionality (enforced via template parameters). The output is the first field, scaled by the second. If ScaleByComponents is true, the vectors are simply multiplied componentwise. If ScaleByComponents is false, the vectors are simply multiplied by the individual magnitude of the second vector field.

Member Typedef Documentation

template<class TScalarType = double, unsigned int NDimensions = 3>
typedef SmartPointer<const Self> itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::ConstPointer
template<class TScalarType = double, unsigned int NDimensions = 3>
typedef InputImageType::PixelType itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::InputImagePixelType
template<class TScalarType = double, unsigned int NDimensions = 3>
typedef Superclass::InputImagePointer itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::InputImagePointer
template<class TScalarType = double, unsigned int NDimensions = 3>
typedef Superclass::InputImageRegionType itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::InputImageRegionType
template<class TScalarType = double, unsigned int NDimensions = 3>
typedef Superclass::InputImageType itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::InputImageType
template<class TScalarType = double, unsigned int NDimensions = 3>
typedef Image< OutputPixelType, itkGetStaticConstMacro(Dimension) > itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::OutputImageType
template<class TScalarType = double, unsigned int NDimensions = 3>
typedef Vector< TScalarType, itkGetStaticConstMacro(Dimension) > itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::OutputPixelType

Standard typedefs.

template<class TScalarType = double, unsigned int NDimensions = 3>
typedef SmartPointer<Self> itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::Pointer
template<class TScalarType = double, unsigned int NDimensions = 3>
typedef ScaleVectorFieldFilter itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::Self

Standard "Self" typedef.

template<class TScalarType = double, unsigned int NDimensions = 3>
typedef ImageToImageFilter< Image< Vector<TScalarType, NDimensions>, NDimensions>, Image< Vector<TScalarType, NDimensions>, NDimensions> > itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::Superclass

Constructor & Destructor Documentation

template<class TScalarType = double, unsigned int NDimensions = 3>
itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::ScaleVectorFieldFilter ( )
protected
template<class TScalarType = double, unsigned int NDimensions = 3>
itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::~ScaleVectorFieldFilter ( )
inlineprotected

Member Function Documentation

template<class TScalarType = double, unsigned int NDimensions = 3>
virtual void itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::BeforeThreadedGenerateData ( )
protectedvirtual
template<class TScalarType = double, unsigned int NDimensions = 3>
virtual const char* itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

template<class TScalarType = double, unsigned int NDimensions = 3>
virtual bool itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::GetScaleByComponents ( )
virtual
template<class TScalarType = double, unsigned int NDimensions = 3>
itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::itkStaticConstMacro ( Dimension  ,
unsigned  int,
NDimensions   
)

Get the number of dimensions we are working in.

template<class TScalarType = double, unsigned int NDimensions = 3>
static Pointer itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::New ( )
static

Method for creation through the object factory.

template<class TScalarType = double, unsigned int NDimensions = 3>
void itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected
template<class TScalarType = double, unsigned int NDimensions = 3>
virtual void itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::SetImageThatDeterminesTheAmountOfScaling ( const InputImageType image)
inlinevirtual

Set the image that determines the amount of scaling at position 1.

template<class TScalarType = double, unsigned int NDimensions = 3>
virtual void itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::SetImageThatWillBeScaled ( const InputImageType image)
inlinevirtual

Set the image that gets scaled at position 0.

template<class TScalarType = double, unsigned int NDimensions = 3>
virtual void itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::SetNthInput ( unsigned int  idx,
const InputImageType  
)
virtual

We set the input images by number.

template<class TScalarType = double, unsigned int NDimensions = 3>
virtual void itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::SetScaleByComponents ( bool  _arg)
virtual

If true, we scale componentwise, if false, we scale first image by magnitude of second image.

template<class TScalarType = double, unsigned int NDimensions = 3>
virtual void itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::ThreadedGenerateData ( const InputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
)
protectedvirtual
template<class TScalarType = double, unsigned int NDimensions = 3>
void itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::WriteVectorImage ( std::string  filename)

Writes image to log file.

Member Data Documentation

template<class TScalarType = double, unsigned int NDimensions = 3>
bool itk::ScaleVectorFieldFilter< TScalarType, NDimensions >::m_ScaleByComponents
protected

Scale by components. Defaults to true.


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