Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::ImageLiveWireContourModelFilter Class Reference

Calculates a LiveWire contour between two points in an image. More...

#include <mitkImageLiveWireContourModelFilter.h>

Inheritance diagram for mitk::ImageLiveWireContourModelFilter:
Collaboration diagram for mitk::ImageLiveWireContourModelFilter:

Public Types

typedef ContourModel OutputType
 
typedef OutputType::Pointer OutputTypePointer
 
typedef mitk::Image InputType
 
typedef itk::Image< float, 2 > InternalImageType
 
typedef itk::ShortestPathImageFilter< InternalImageType, InternalImageTypeShortestPathImageFilterType
 
typedef itk::ShortestPathCostFunctionLiveWire< InternalImageTypeCostFunctionType
 
typedef std::vector< itk::Index< 2 > > ShortestPathType
 
- Public Types inherited from mitk::ContourModelSource
typedef ContourModel OutputType
 
typedef OutputType::Pointer OutputTypePointer
 
- Public Types inherited from mitk::BaseDataSource
typedef BaseDataSource Self
 
typedef itk::ProcessObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef BaseData OutputType
 
typedef itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
 

Public Member Functions

 mitkClassMacro (ImageLiveWireContourModelFilter, ContourModelSource)
 
Pointer Clone () const
 
virtual void SetStartPoint (mitk::Point3D _arg)
 start point in world coordinates More...
 
virtual mitk::Point3D GetStartPoint ()
 
virtual void SetEndPoint (mitk::Point3D _arg)
 end point in woorld coordinates More...
 
virtual mitk::Point3D GetEndPoint ()
 
virtual void SetUseDynamicCostMap (bool _arg)
 Create dynamic cost tranfer map - use on the fly training. On the fly training will be used for next update only. The computation uses the last calculated segment to map cost according to features in the area of the segment. More...
 
virtual bool GetUseDynamicCostMap ()
 
virtual void SetTimeStep (unsigned int _arg)
 Actual time step. More...
 
virtual unsigned int GetTimeStep ()
 
void ClearRepulsivePoints ()
 Clear all repulsive points used in the cost function. More...
 
void SetRepulsivePoints (const ShortestPathType &points)
 Set a vector with repulsive points to use in the cost function. More...
 
void AddRepulsivePoint (const itk::Index< 2 > &idx)
 Add a single repulsive point to the cost function. More...
 
void RemoveRepulsivePoint (const itk::Index< 2 > &idx)
 Remove a single repulsive point from the cost function. More...
 
virtual void SetInput (const InputType *input)
 
virtual void SetInput (unsigned int idx, const InputType *input)
 
const InputTypeGetInput (void)
 
const InputTypeGetInput (unsigned int idx)
 
virtual OutputTypeGetOutput ()
 
virtual void DumpMaskImage ()
 
bool CreateDynamicCostMap (mitk::ContourModel *path=NULL)
 Create dynamic cost tranfer map - on the fly training. More...
 
- Public Member Functions inherited from mitk::ContourModelSource
 mitkClassMacro (ContourModelSource, BaseDataSource) static Pointer New()
 
Pointer Clone () const
 
virtual mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
virtual itk::DataObject::Pointer MakeOutput (const DataObjectIdentifierType &name) override
 
- Public Member Functions inherited from mitk::BaseDataSource
virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
OutputTypeGetOutput ()
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual void GraftOutput (OutputType *output)
 Graft the specified BaseData onto this BaseDataSource's output. More...
 
virtual void GraftOutput (const DataObjectIdentifierType &key, OutputType *output)
 
virtual void GraftNthOutput (unsigned int idx, OutputType *output)
 Graft the specified base data object onto this BaseDataSource's idx'th output. More...
 
bool Updating () const
 Access itk::ProcessObject::m_Updating. More...
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::BaseDataSource
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 ImageLiveWireContourModelFilter ()
 
virtual ~ImageLiveWireContourModelFilter ()
 
void GenerateOutputInformation () override
 
void GenerateData () override
 
void UpdateLiveWire ()
 
template<typename TPixel , unsigned int VImageDimension>
void ItkPreProcessImage (const itk::Image< TPixel, VImageDimension > *inputImage)
 
template<typename TPixel , unsigned int VImageDimension>
void CreateDynamicCostMapByITK (const itk::Image< TPixel, VImageDimension > *inputImage, mitk::ContourModel *path=NULL)
 
- Protected Member Functions inherited from mitk::ContourModelSource
 ContourModelSource ()
 
virtual ~ContourModelSource ()
 
- Protected Member Functions inherited from mitk::BaseDataSource
 BaseDataSource ()
 
virtual ~BaseDataSource ()
 

Protected Attributes

mitk::Point3D m_StartPoint
 start point in worldcoordinates More...
 
mitk::Point3D m_EndPoint
 end point in woorldcoordinates More...
 
mitk::Point3D m_StartPointInIndex
 Start point in index. More...
 
mitk::Point3D m_EndPointInIndex
 End point in index. More...
 
CostFunctionType::Pointer m_CostFunction
 The cost function to compute costs between two pixels. More...
 
ShortestPathImageFilterType::Pointer m_ShortestPathFilter
 Shortest path filter according to cost function m_CostFunction. More...
 
bool m_UseDynamicCostMap
 Flag to use a dynmic cost map or not. More...
 
unsigned int m_TimeStep
 
InternalImageType::Pointer m_InternalImage
 

Additional Inherited Members

- Static Protected Member Functions inherited from mitk::BaseDataSource
static Pointer New ()
 

Detailed Description

Calculates a LiveWire contour between two points in an image.

For defining costs between two pixels specific features are extraced from the image and tranformed into a single cost value.

See also
ShortestPathCostFunctionLiveWire

The filter is able to create dynamic cost tranfer map and thus use on the fly training. On the fly training will only be used for next update. The computation uses the last calculated segment to map cost according to features in the area of the segment.

For time resolved purposes use ImageLiveWireContourModelFilter::SetTimestep( unsigned int ) to create the LiveWire contour at a specific timestep.

Definition at line 53 of file mitkImageLiveWireContourModelFilter.h.

Member Typedef Documentation

Constructor & Destructor Documentation

mitk::ImageLiveWireContourModelFilter::~ImageLiveWireContourModelFilter ( )
protectedvirtual

Definition at line 38 of file mitkImageLiveWireContourModelFilter.cpp.

Member Function Documentation

void mitk::ImageLiveWireContourModelFilter::AddRepulsivePoint ( const itk::Index< 2 > &  idx)

Add a single repulsive point to the cost function.

Definition at line 140 of file mitkImageLiveWireContourModelFilter.cpp.

void mitk::ImageLiveWireContourModelFilter::ClearRepulsivePoints ( )

Clear all repulsive points used in the cost function.

Definition at line 135 of file mitkImageLiveWireContourModelFilter.cpp.

Pointer mitk::ImageLiveWireContourModelFilter::Clone ( ) const
bool mitk::ImageLiveWireContourModelFilter::CreateDynamicCostMap ( mitk::ContourModel path = NULL)

Create dynamic cost tranfer map - on the fly training.

Definition at line 245 of file mitkImageLiveWireContourModelFilter.cpp.

References AccessFixedDimensionByItk_1, and MITK_INFO.

template<typename TPixel , unsigned int VImageDimension>
void mitk::ImageLiveWireContourModelFilter::CreateDynamicCostMapByITK ( const itk::Image< TPixel, VImageDimension > *  inputImage,
mitk::ContourModel path = NULL 
)
protected
void mitk::ImageLiveWireContourModelFilter::DumpMaskImage ( )
virtual
void mitk::ImageLiveWireContourModelFilter::GenerateData ( )
overrideprotected

Definition at line 83 of file mitkImageLiveWireContourModelFilter.cpp.

References MITK_ERROR, and MITK_INFO.

void mitk::ImageLiveWireContourModelFilter::GenerateOutputInformation ( void  )
inlineoverrideprotected

Definition at line 125 of file mitkImageLiveWireContourModelFilter.h.

virtual mitk::Point3D mitk::ImageLiveWireContourModelFilter::GetEndPoint ( )
virtual
const mitk::ImageLiveWireContourModelFilter::InputType * mitk::ImageLiveWireContourModelFilter::GetInput ( void  )

Definition at line 68 of file mitkImageLiveWireContourModelFilter.cpp.

const mitk::ImageLiveWireContourModelFilter::InputType * mitk::ImageLiveWireContourModelFilter::GetInput ( unsigned int  idx)

Definition at line 75 of file mitkImageLiveWireContourModelFilter.cpp.

mitk::ImageLiveWireContourModelFilter::OutputType * mitk::ImageLiveWireContourModelFilter::GetOutput ( void  )
virtual

Definition at line 42 of file mitkImageLiveWireContourModelFilter.cpp.

virtual mitk::Point3D mitk::ImageLiveWireContourModelFilter::GetStartPoint ( )
virtual
virtual unsigned int mitk::ImageLiveWireContourModelFilter::GetTimeStep ( )
virtual
virtual bool mitk::ImageLiveWireContourModelFilter::GetUseDynamicCostMap ( )
virtual
template<typename TPixel , unsigned int VImageDimension>
void mitk::ImageLiveWireContourModelFilter::ItkPreProcessImage ( const itk::Image< TPixel, VImageDimension > *  inputImage)
protected

Definition at line 122 of file mitkImageLiveWireContourModelFilter.cpp.

References mitk::New().

mitk::ImageLiveWireContourModelFilter::mitkClassMacro ( ImageLiveWireContourModelFilter  ,
ContourModelSource   
)
static Pointer mitk::ImageLiveWireContourModelFilter::New ( )
static
void mitk::ImageLiveWireContourModelFilter::RemoveRepulsivePoint ( const itk::Index< 2 > &  idx)

Remove a single repulsive point from the cost function.

Definition at line 153 of file mitkImageLiveWireContourModelFilter.cpp.

virtual void mitk::ImageLiveWireContourModelFilter::SetEndPoint ( mitk::Point3D  _arg)
virtual

end point in woorld coordinates

void mitk::ImageLiveWireContourModelFilter::SetInput ( const InputType input)
virtual

Definition at line 47 of file mitkImageLiveWireContourModelFilter.cpp.

void mitk::ImageLiveWireContourModelFilter::SetInput ( unsigned int  idx,
const InputType input 
)
virtual

Definition at line 52 of file mitkImageLiveWireContourModelFilter.cpp.

References AccessFixedDimensionByItk.

void mitk::ImageLiveWireContourModelFilter::SetRepulsivePoints ( const ShortestPathType points)

Set a vector with repulsive points to use in the cost function.

Definition at line 158 of file mitkImageLiveWireContourModelFilter.cpp.

virtual void mitk::ImageLiveWireContourModelFilter::SetStartPoint ( mitk::Point3D  _arg)
virtual

start point in world coordinates

virtual void mitk::ImageLiveWireContourModelFilter::SetTimeStep ( unsigned int  _arg)
virtual

Actual time step.

virtual void mitk::ImageLiveWireContourModelFilter::SetUseDynamicCostMap ( bool  _arg)
virtual

Create dynamic cost tranfer map - use on the fly training. On the fly training will be used for next update only. The computation uses the last calculated segment to map cost according to features in the area of the segment.

void mitk::ImageLiveWireContourModelFilter::UpdateLiveWire ( )
protected

Definition at line 169 of file mitkImageLiveWireContourModelFilter.cpp.

Member Data Documentation

CostFunctionType::Pointer mitk::ImageLiveWireContourModelFilter::m_CostFunction
protected

The cost function to compute costs between two pixels.

Definition at line 144 of file mitkImageLiveWireContourModelFilter.h.

Referenced by ImageLiveWireContourModelFilter().

mitk::Point3D mitk::ImageLiveWireContourModelFilter::m_EndPoint
protected

end point in woorldcoordinates

Definition at line 135 of file mitkImageLiveWireContourModelFilter.h.

mitk::Point3D mitk::ImageLiveWireContourModelFilter::m_EndPointInIndex
protected

End point in index.

Definition at line 141 of file mitkImageLiveWireContourModelFilter.h.

InternalImageType::Pointer mitk::ImageLiveWireContourModelFilter::m_InternalImage
protected

Definition at line 161 of file mitkImageLiveWireContourModelFilter.h.

ShortestPathImageFilterType::Pointer mitk::ImageLiveWireContourModelFilter::m_ShortestPathFilter
protected

Shortest path filter according to cost function m_CostFunction.

Definition at line 147 of file mitkImageLiveWireContourModelFilter.h.

Referenced by ImageLiveWireContourModelFilter().

mitk::Point3D mitk::ImageLiveWireContourModelFilter::m_StartPoint
protected

start point in worldcoordinates

Definition at line 132 of file mitkImageLiveWireContourModelFilter.h.

mitk::Point3D mitk::ImageLiveWireContourModelFilter::m_StartPointInIndex
protected

Start point in index.

Definition at line 138 of file mitkImageLiveWireContourModelFilter.h.

unsigned int mitk::ImageLiveWireContourModelFilter::m_TimeStep
protected
bool mitk::ImageLiveWireContourModelFilter::m_UseDynamicCostMap
protected

Flag to use a dynmic cost map or not.

Definition at line 150 of file mitkImageLiveWireContourModelFilter.h.

Referenced by ImageLiveWireContourModelFilter().


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