Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Calculates a LiveWire contour between two points in an image. More...
#include <mitkImageLiveWireContourModelFilter.h>
Public Types | |
typedef ContourModel | OutputType |
typedef OutputType::Pointer | OutputTypePointer |
typedef mitk::Image | InputType |
typedef itk::Image< float, 2 > | InternalImageType |
typedef itk::ShortestPathImageFilter< InternalImageType, InternalImageType > | ShortestPathImageFilterType |
typedef itk::ShortestPathCostFunctionLiveWire< InternalImageType > | CostFunctionType |
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< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
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 InputType * | GetInput (void) |
const InputType * | GetInput (unsigned int idx) |
virtual OutputType * | GetOutput () |
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 |
OutputType * | GetOutput () |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (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 () |
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.
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.
typedef itk::ShortestPathCostFunctionLiveWire<InternalImageType> mitk::ImageLiveWireContourModelFilter::CostFunctionType |
Definition at line 65 of file mitkImageLiveWireContourModelFilter.h.
Definition at line 61 of file mitkImageLiveWireContourModelFilter.h.
typedef itk::Image<float, 2> mitk::ImageLiveWireContourModelFilter::InternalImageType |
Definition at line 63 of file mitkImageLiveWireContourModelFilter.h.
Definition at line 59 of file mitkImageLiveWireContourModelFilter.h.
Definition at line 60 of file mitkImageLiveWireContourModelFilter.h.
typedef itk::ShortestPathImageFilter<InternalImageType, InternalImageType> mitk::ImageLiveWireContourModelFilter::ShortestPathImageFilterType |
Definition at line 64 of file mitkImageLiveWireContourModelFilter.h.
typedef std::vector<itk::Index<2> > mitk::ImageLiveWireContourModelFilter::ShortestPathType |
Definition at line 66 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Definition at line 25 of file mitkImageLiveWireContourModelFilter.cpp.
References m_CostFunction, m_ShortestPathFilter, m_TimeStep, m_UseDynamicCostMap, mitk::ContourModelSource::MakeOutput(), itk::ShortestPathCostFunctionLiveWire< TInputImageType >::New(), and itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::New().
|
protectedvirtual |
Definition at line 38 of file mitkImageLiveWireContourModelFilter.cpp.
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.
|
protected |
Definition at line 265 of file mitkImageLiveWireContourModelFilter.cpp.
References itk::ShortestPathCostFunctionLiveWire< TInputImageType >::Gaussian(), mitk::ContourModel::IteratorBegin(), mitk::ContourModel::IteratorEnd(), itk::ShortestPathCostFunctionLiveWire< TInputImageType >::MAPSCALEFACTOR, max(), and mitk::New().
|
virtual |
Definition at line 145 of file mitkImageLiveWireContourModelFilter.cpp.
References mitk::Image::New(), and mitk::IOUtil::Save().
|
overrideprotected |
Definition at line 83 of file mitkImageLiveWireContourModelFilter.cpp.
References MITK_ERROR, and MITK_INFO.
|
inlineoverrideprotected |
Definition at line 125 of file mitkImageLiveWireContourModelFilter.h.
|
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.
|
virtual |
Definition at line 42 of file mitkImageLiveWireContourModelFilter.cpp.
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 122 of file mitkImageLiveWireContourModelFilter.cpp.
References mitk::New().
mitk::ImageLiveWireContourModelFilter::mitkClassMacro | ( | ImageLiveWireContourModelFilter | , |
ContourModelSource | |||
) |
|
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 |
end point in woorld coordinates
|
virtual |
Definition at line 47 of file mitkImageLiveWireContourModelFilter.cpp.
|
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 |
start point in world coordinates
|
virtual |
Actual time step.
|
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.
|
protected |
Definition at line 169 of file mitkImageLiveWireContourModelFilter.cpp.
|
protected |
The cost function to compute costs between two pixels.
Definition at line 144 of file mitkImageLiveWireContourModelFilter.h.
Referenced by ImageLiveWireContourModelFilter().
|
protected |
end point in woorldcoordinates
Definition at line 135 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
End point in index.
Definition at line 141 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Definition at line 161 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Shortest path filter according to cost function m_CostFunction.
Definition at line 147 of file mitkImageLiveWireContourModelFilter.h.
Referenced by ImageLiveWireContourModelFilter().
|
protected |
start point in worldcoordinates
Definition at line 132 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Start point in index.
Definition at line 138 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Definition at line 152 of file mitkImageLiveWireContourModelFilter.h.
Referenced by ImageLiveWireContourModelFilter().
|
protected |
Flag to use a dynmic cost map or not.
Definition at line 150 of file mitkImageLiveWireContourModelFilter.h.
Referenced by ImageLiveWireContourModelFilter().