Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 |
![]() | |
typedef ContourModel | OutputType |
typedef OutputType::Pointer | OutputTypePointer |
![]() | |
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=nullptr) |
Create dynamic cost tranfer map - on the fly training. More... | |
![]() | |
mitkClassMacro (ContourModelSource, BaseDataSource) | |
Pointer | Clone () const |
mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
![]() | |
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 Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
ImageLiveWireContourModelFilter () | |
~ImageLiveWireContourModelFilter () override | |
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=nullptr) |
![]() | |
ContourModelSource () | |
~ContourModelSource () override | |
![]() | |
BaseDataSource () | |
~BaseDataSource () override | |
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 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 49 of file mitkImageLiveWireContourModelFilter.h.
typedef itk::ShortestPathCostFunctionLiveWire<InternalImageType> mitk::ImageLiveWireContourModelFilter::CostFunctionType |
Definition at line 62 of file mitkImageLiveWireContourModelFilter.h.
Definition at line 58 of file mitkImageLiveWireContourModelFilter.h.
typedef itk::Image<float, 2> mitk::ImageLiveWireContourModelFilter::InternalImageType |
Definition at line 60 of file mitkImageLiveWireContourModelFilter.h.
Definition at line 54 of file mitkImageLiveWireContourModelFilter.h.
Definition at line 57 of file mitkImageLiveWireContourModelFilter.h.
typedef itk::ShortestPathImageFilter<InternalImageType, InternalImageType> mitk::ImageLiveWireContourModelFilter::ShortestPathImageFilterType |
Definition at line 61 of file mitkImageLiveWireContourModelFilter.h.
typedef std::vector<itk::Index<2> > mitk::ImageLiveWireContourModelFilter::ShortestPathType |
Definition at line 63 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Definition at line 21 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().
|
overrideprotected |
Definition at line 34 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 136 of file mitkImageLiveWireContourModelFilter.cpp.
References m_CostFunction.
void mitk::ImageLiveWireContourModelFilter::ClearRepulsivePoints | ( | ) |
Clear all repulsive points used in the cost function.
Definition at line 131 of file mitkImageLiveWireContourModelFilter.cpp.
References m_CostFunction.
Pointer mitk::ImageLiveWireContourModelFilter::Clone | ( | ) | const |
bool mitk::ImageLiveWireContourModelFilter::CreateDynamicCostMap | ( | mitk::ContourModel * | path = nullptr | ) |
Create dynamic cost tranfer map - on the fly training.
Definition at line 241 of file mitkImageLiveWireContourModelFilter.cpp.
References AccessFixedDimensionByItk_1, CreateDynamicCostMapByITK(), GetInput(), and MITK_INFO.
|
protected |
Definition at line 261 of file mitkImageLiveWireContourModelFilter.cpp.
References itk::ShortestPathCostFunctionLiveWire< TInputImageType >::Gaussian(), GetInput(), GetOutput(), mitk::ContourModel::IteratorBegin(), mitk::ContourModel::IteratorEnd(), m_CostFunction, itk::ShortestPathCostFunctionLiveWire< TInputImageType >::MAPSCALEFACTOR, and max().
Referenced by CreateDynamicCostMap().
|
virtual |
Definition at line 141 of file mitkImageLiveWireContourModelFilter.cpp.
References m_CostFunction, mask, mitk::Image::New(), and mitk::IOUtil::Save().
|
overrideprotected |
Definition at line 79 of file mitkImageLiveWireContourModelFilter.cpp.
References GetInput(), m_EndPoint, m_EndPointInIndex, m_StartPoint, m_StartPointInIndex, MITK_ERROR, MITK_INFO, and UpdateLiveWire().
|
inlineoverrideprotected |
Definition at line 122 of file mitkImageLiveWireContourModelFilter.h.
|
virtual |
const mitk::ImageLiveWireContourModelFilter::InputType * mitk::ImageLiveWireContourModelFilter::GetInput | ( | void | ) |
Definition at line 64 of file mitkImageLiveWireContourModelFilter.cpp.
Referenced by CreateDynamicCostMap(), CreateDynamicCostMapByITK(), GenerateData(), and UpdateLiveWire().
const mitk::ImageLiveWireContourModelFilter::InputType * mitk::ImageLiveWireContourModelFilter::GetInput | ( | unsigned int | idx | ) |
Definition at line 71 of file mitkImageLiveWireContourModelFilter.cpp.
|
virtual |
Definition at line 38 of file mitkImageLiveWireContourModelFilter.cpp.
Referenced by CreateDynamicCostMapByITK().
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 118 of file mitkImageLiveWireContourModelFilter.cpp.
References m_CostFunction, m_InternalImage, and m_ShortestPathFilter.
Referenced by SetInput().
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 149 of file mitkImageLiveWireContourModelFilter.cpp.
References m_CostFunction.
|
virtual |
end point in woorld coordinates
|
virtual |
Definition at line 43 of file mitkImageLiveWireContourModelFilter.cpp.
|
virtual |
Definition at line 48 of file mitkImageLiveWireContourModelFilter.cpp.
References AccessFixedDimensionByItk, and ItkPreProcessImage().
void mitk::ImageLiveWireContourModelFilter::SetRepulsivePoints | ( | const ShortestPathType & | points | ) |
Set a vector with repulsive points to use in the cost function.
Definition at line 154 of file mitkImageLiveWireContourModelFilter.cpp.
References m_CostFunction.
|
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 165 of file mitkImageLiveWireContourModelFilter.cpp.
References GetInput(), m_CostFunction, m_EndPointInIndex, m_ShortestPathFilter, m_StartPointInIndex, m_TimeStep, m_UseDynamicCostMap, and mitk::ContourModelSource::MakeOutput().
Referenced by GenerateData().
|
protected |
The cost function to compute costs between two pixels.
Definition at line 141 of file mitkImageLiveWireContourModelFilter.h.
Referenced by AddRepulsivePoint(), ClearRepulsivePoints(), CreateDynamicCostMapByITK(), DumpMaskImage(), ImageLiveWireContourModelFilter(), ItkPreProcessImage(), RemoveRepulsivePoint(), SetRepulsivePoints(), and UpdateLiveWire().
|
protected |
end point in woorldcoordinates
Definition at line 132 of file mitkImageLiveWireContourModelFilter.h.
Referenced by GenerateData().
|
protected |
End point in index.
Definition at line 138 of file mitkImageLiveWireContourModelFilter.h.
Referenced by GenerateData(), and UpdateLiveWire().
|
protected |
Definition at line 158 of file mitkImageLiveWireContourModelFilter.h.
Referenced by ItkPreProcessImage().
|
protected |
Shortest path filter according to cost function m_CostFunction.
Definition at line 144 of file mitkImageLiveWireContourModelFilter.h.
Referenced by ImageLiveWireContourModelFilter(), ItkPreProcessImage(), and UpdateLiveWire().
|
protected |
start point in worldcoordinates
Definition at line 129 of file mitkImageLiveWireContourModelFilter.h.
Referenced by GenerateData().
|
protected |
Start point in index.
Definition at line 135 of file mitkImageLiveWireContourModelFilter.h.
Referenced by GenerateData(), and UpdateLiveWire().
|
protected |
Definition at line 149 of file mitkImageLiveWireContourModelFilter.h.
Referenced by ImageLiveWireContourModelFilter(), and UpdateLiveWire().
|
protected |
Flag to use a dynmic cost map or not.
Definition at line 147 of file mitkImageLiveWireContourModelFilter.h.
Referenced by ImageLiveWireContourModelFilter(), and UpdateLiveWire().