DMRITool
v0.1.1-139-g860d86b4
Diffusion MRI Tool
|
#include <itkMaskedImageToImageFilter.h>
ImageToImageFilter with mask and threaded logger support.
Definition at line 37 of file itkMaskedImageToImageFilter.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::IndexType | InputImageIndexType |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef InputImageType::SizeType | InputImageSizeType |
typedef InputImageType::SpacingType | InputImageSpacingType |
typedef TInputImage | InputImageType |
typedef LoggerType::Pointer | LoggerPointer |
typedef ThreadLogger | LoggerType |
typedef utl_shared_ptr< LoggerVectorType > | LoggerVectorPointer |
typedef std::vector< LoggerPointer > | LoggerVectorType |
typedef MaskImageType::Pointer | MaskImagePointer |
typedef TMaskImage | MaskImageType |
typedef OutputImageType::IndexType | OutputImageIndexType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef OutputImageType::SizeType | OutputImageSizeType |
typedef OutputImageType::SpacingType | OutputImageSpacingType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef MaskedImageToImageFilter | Self |
typedef ImageToImageFilter< TInputImage, TOutputImage > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const LoggerType * | GetLogger () const |
virtual const MaskImageType * | GetMaskImage () const |
virtual const char * | GetNameOfClass () const |
bool | IsMaskUsed () |
itkGetObjectMacro (MaskImage, MaskImageType) | |
itkGetObjectMacro (Logger, LoggerType) | |
itkSetGetMacro (LogLevel, int) | |
virtual void | SetLogger (LoggerType *_arg) |
virtual void | SetMaskImage (MaskImageType *_arg) |
void | SetMaskImage (const std::string &file) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Member Functions | |
void | CreateLoggerVector () |
virtual void | InitializeThreadedLibraries () |
LightObject::Pointer | InternalClone () const ITK_OVERRIDE |
MaskedImageToImageFilter () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE |
std::string | ThreadIDToString () const |
virtual void | VerifyInputParameters () const |
virtual void | VerifyMaskInformation () const |
void | WriteLogger (const std::string &str, const LoggerBase::PriorityLevelType level=LoggerBase::DEBUG) const |
virtual | ~MaskedImageToImageFilter () |
Protected Attributes | |
LoggerPointer | m_Logger |
LoggerVectorPointer | m_LoggerVector |
int | m_LogLevel |
MaskImagePointer | m_MaskImage |
int | m_ThreadID |
Private Member Functions | |
MaskedImageToImageFilter (const Self &) | |
void | operator= (const Self &) |
typedef SmartPointer< const Self > itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::ConstPointer |
Definition at line 45 of file itkMaskedImageToImageFilter.h.
typedef InputImageType::ConstPointer itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageConstPointer |
Definition at line 55 of file itkMaskedImageToImageFilter.h.
typedef InputImageType::IndexType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageIndexType |
Definition at line 56 of file itkMaskedImageToImageFilter.h.
typedef InputImageType::PixelType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImagePixelType |
Definition at line 59 of file itkMaskedImageToImageFilter.h.
typedef InputImageType::Pointer itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImagePointer |
Definition at line 54 of file itkMaskedImageToImageFilter.h.
typedef InputImageType::RegionType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageRegionType |
Definition at line 60 of file itkMaskedImageToImageFilter.h.
typedef InputImageType::SizeType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageSizeType |
Definition at line 57 of file itkMaskedImageToImageFilter.h.
typedef InputImageType::SpacingType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageSpacingType |
Definition at line 58 of file itkMaskedImageToImageFilter.h.
typedef TInputImage itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageType |
Definition at line 51 of file itkMaskedImageToImageFilter.h.
typedef LoggerType::Pointer itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::LoggerPointer |
Definition at line 78 of file itkMaskedImageToImageFilter.h.
typedef ThreadLogger itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::LoggerType |
Definition at line 77 of file itkMaskedImageToImageFilter.h.
typedef utl_shared_ptr<LoggerVectorType> itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::LoggerVectorPointer |
Definition at line 80 of file itkMaskedImageToImageFilter.h.
typedef std::vector<LoggerPointer> itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::LoggerVectorType |
Definition at line 79 of file itkMaskedImageToImageFilter.h.
typedef MaskImageType::Pointer itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::MaskImagePointer |
Definition at line 71 of file itkMaskedImageToImageFilter.h.
typedef TMaskImage itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::MaskImageType |
Definition at line 70 of file itkMaskedImageToImageFilter.h.
typedef OutputImageType::IndexType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImageIndexType |
Definition at line 64 of file itkMaskedImageToImageFilter.h.
typedef OutputImageType::PixelType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImagePixelType |
Definition at line 67 of file itkMaskedImageToImageFilter.h.
typedef OutputImageType::Pointer itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImagePointer |
Definition at line 63 of file itkMaskedImageToImageFilter.h.
typedef OutputImageType::RegionType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImageRegionType |
Definition at line 68 of file itkMaskedImageToImageFilter.h.
typedef OutputImageType::SizeType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImageSizeType |
Definition at line 65 of file itkMaskedImageToImageFilter.h.
typedef OutputImageType::SpacingType itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImageSpacingType |
Definition at line 66 of file itkMaskedImageToImageFilter.h.
typedef TOutputImage itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImageType |
Definition at line 62 of file itkMaskedImageToImageFilter.h.
typedef SmartPointer< Self > itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::Pointer |
Definition at line 44 of file itkMaskedImageToImageFilter.h.
typedef MaskedImageToImageFilter itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::Self |
Standard class typedefs.
Definition at line 42 of file itkMaskedImageToImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::Superclass |
Definition at line 43 of file itkMaskedImageToImageFilter.h.
|
protected |
Definition at line 32 of file itkMaskedImageToImageFilter.hxx.
References LOG_NORMAL, and itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::~MaskedImageToImageFilter().
|
protectedvirtual |
Definition at line 48 of file itkMaskedImageToImageFilter.hxx.
References itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::SetMaskImage().
Referenced by itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::MaskedImageToImageFilter().
|
private |
virtual::itk::LightObject::Pointer itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::CreateAnother | ( | void | ) | const |
|
protected |
create m_LoggerVector only when m_Debug is true and multiple threads are used
Definition at line 98 of file itkMaskedImageToImageFilter.hxx.
References utlException, and itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::WriteLogger().
Referenced by itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InternalClone().
|
virtual |
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented in itk::MeshFromImageImageFilter< TInputImage, TOutputMesh >, itk::MeshFromPeaksImageFilter< TInputImage, TOutputMesh >, itk::DiffusionModelEstimationImageFilter< TInputImage, TOutputImage >, itk::MeshFromContinuousSphericalFunctionImageFilter< TInputImage, TOutputMesh >, itk::FeaturesFromSPFImageFilter< TInputImage, TOutputImage >, itk::SphericalPolarFourierEstimationImageFilter< TInputImage, TOutputImage >, itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >, itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, utl::Functor::VectorMultiVariableFunctionWrapper<>, TMaskImage >, itk::FunctorFromStringImageFilter< TInputImage, TOutputImage, TMaskImage >, itk::DiffusionModelEstimationInSphericalCoordinateImageFilter< TInputImage, TOutputImage >, itk::SphericalPolarFourierImageFilter< TInputImage, TOutputImage >, itk::MeshFromDiscreteFiberODFImageFilter< TInputImage, TOutputMesh >, itk::GeneralizedHighOrderTensorImageFilter< TInputImage, TOutputImage >, itk::ProfileFromSPFImageFilter< TInputImage, TOutputImage >, itk::MeshFromSphericalFunctionImageFilter< TInputImage, TOutputMesh >, itk::MeshFromSphericalFunctionTessellatedSamplesImageFilter< TInputImage, TOutputMesh >, itk::ODFFromSPFImageFilter< TInputImage, TOutputImage >, itk::MeshFromTensorImageFilter< TInputImage, TOutputMesh >, itk::MultiVariableFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >, itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >, itk::MeshFromSHCoefficientsImageFilter< TInputImage, TOutputMesh >, and itk::ScalarMapFromSPFImageFilter< TInputImage, TOutputImage >.
|
protectedvirtual |
Use single thread for MKL or openmp to avoid confliction with itk threader. Otherwise it has worse performance due to thread conflication (but correct solution).
Reimplemented in itk::SphericalPolarFourierEstimationImageFilter< TInputImage, TOutputImage >.
Definition at line 151 of file itkMaskedImageToImageFilter.hxx.
References utl::InitializeThreadedLibraries(), and itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::PrintSelf().
Referenced by itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::ThreadIDToString().
|
protected |
Definition at line 76 of file itkMaskedImageToImageFilter.hxx.
References itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::CreateLoggerVector().
Referenced by itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::VerifyMaskInformation().
|
inline |
Definition at line 95 of file itkMaskedImageToImageFilter.h.
itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::itkGetObjectMacro | ( | MaskImage | , |
MaskImageType | |||
) |
itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::itkGetObjectMacro | ( | Logger | , |
LoggerType | |||
) |
itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::itkSetGetMacro | ( | LogLevel | , |
int | |||
) |
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
Reimplemented in itk::MeshFromImageImageFilter< TInputImage, TOutputMesh >, itk::SphericalPolarFourierEstimationImageFilter< TInputImage, TOutputImage >, itk::MeshFromTensorImageFilter< TInputImage, TOutputMesh >, itk::MeshFromDiscreteFiberODFImageFilter< TInputImage, TOutputMesh >, itk::MeshFromSphericalFunctionTessellatedSamplesImageFilter< TInputImage, TOutputMesh >, itk::MeshFromContinuousSphericalFunctionImageFilter< TInputImage, TOutputMesh >, itk::FeaturesFromSPFImageFilter< TInputImage, TOutputImage >, itk::MeshFromSphericalFunctionImageFilter< TInputImage, TOutputMesh >, itk::MeshFromSHCoefficientsImageFilter< TInputImage, TOutputMesh >, itk::MeshFromPeaksImageFilter< TInputImage, TOutputMesh >, itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >, itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, utl::Functor::VectorMultiVariableFunctionWrapper<>, TMaskImage >, itk::DiffusionModelEstimationInSphericalCoordinateImageFilter< TInputImage, TOutputImage >, itk::DiffusionModelEstimationImageFilter< TInputImage, TOutputImage >, itk::SphericalPolarFourierImageFilter< TInputImage, TOutputImage >, itk::ODFFromSPFImageFilter< TInputImage, TOutputImage >, itk::ProfileFromSPFImageFilter< TInputImage, TOutputImage >, itk::ScalarMapFromSPFImageFilter< TInputImage, TOutputImage >, and itk::GeneralizedHighOrderTensorImageFilter< TInputImage, TOutputImage >.
Definition at line 159 of file itkMaskedImageToImageFilter.hxx.
References itk::IsImageEmpty().
Referenced by itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InitializeThreadedLibraries().
|
virtual |
Set/Get the mask image.
|
virtual |
Set/Get the mask image.
Referenced by itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::~MaskedImageToImageFilter().
void itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::SetMaskImage | ( | const std::string & | file | ) |
Definition at line 54 of file itkMaskedImageToImageFilter.hxx.
References itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::VerifyMaskInformation().
|
protected |
Definition at line 136 of file itkMaskedImageToImageFilter.hxx.
References itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InitializeThreadedLibraries().
Referenced by itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::WriteLogger().
|
inlineprotectedvirtual |
Reimplemented in itk::MeshFromImageImageFilter< TInputImage, TOutputMesh >, itk::MeshFromTensorImageFilter< TInputImage, TOutputMesh >, itk::SphericalPolarFourierEstimationImageFilter< TInputImage, TOutputImage >, itk::FeaturesFromSPFImageFilter< TInputImage, TOutputImage >, itk::MeshFromContinuousSphericalFunctionImageFilter< TInputImage, TOutputMesh >, itk::MeshFromPeaksImageFilter< TInputImage, TOutputMesh >, itk::DiffusionModelEstimationInSphericalCoordinateImageFilter< TInputImage, TOutputImage >, itk::DiffusionModelEstimationImageFilter< TInputImage, TOutputImage >, itk::ProfileFromSPFImageFilter< TInputImage, TOutputImage >, itk::ODFFromSPFImageFilter< TInputImage, TOutputImage >, itk::ScalarMapFromSPFImageFilter< TInputImage, TOutputImage >, and itk::GeneralizedHighOrderTensorImageFilter< TInputImage, TOutputImage >.
Definition at line 110 of file itkMaskedImageToImageFilter.h.
|
protectedvirtual |
Definition at line 64 of file itkMaskedImageToImageFilter.hxx.
References itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::InternalClone(), and utlGlobalException.
Referenced by itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::SetMaskImage().
|
protected |
Definition at line 120 of file itkMaskedImageToImageFilter.hxx.
References itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::ThreadIDToString(), and utlSAException.
Referenced by itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >::CreateLoggerVector().
|
static |
ImageDimension constants
Definition at line 74 of file itkMaskedImageToImageFilter.h.
|
protected |
Definition at line 129 of file itkMaskedImageToImageFilter.h.
|
protected |
Definition at line 130 of file itkMaskedImageToImageFilter.h.
|
protected |
Debug verbose log level. Default value is 1 (LOG_NORMAL), which only shows some process information. It is normally set as utl::LogLevel, but each class could have its own logLevel. If it is LOG_MUTE, mute all output messeage. If it is LOG_LARGE, print some large matrix etc.
Definition at line 139 of file itkMaskedImageToImageFilter.h.
|
protected |
Definition at line 127 of file itkMaskedImageToImageFilter.h.
|
protected |
It is used for ThreadLogger. It is -1 as default, and it is set as thread id when *this is cloned.
Definition at line 133 of file itkMaskedImageToImageFilter.h.
|
static |
Definition at line 75 of file itkMaskedImageToImageFilter.h.