|
Medical Imaging Interaction Toolkit
2026.06.00
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 |
| The output data type produced by this source. More... | |
| typedef OutputType::Pointer | OutputTypePointer |
| Smart pointer type for the output. More... | |
Public Types inherited from mitk::BaseDataSource | |
| typedef BaseData | OutputType |
| Output data type. More... | |
| typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
| Identifier type for named data objects. More... | |
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 world coordinates. More... | |
| virtual mitk::Point3D | GetEndPoint () |
| virtual void | SetUseDynamicCostMap (bool _arg) |
| Create dynamic cost transfer map - use on the fly training. More... | |
| virtual bool | GetUseDynamicCostMap () |
| 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) |
| Set the input image for the LiveWire computation. More... | |
| virtual void | SetInput (unsigned int idx, const InputType *input) |
| Set the input image at a specific index. More... | |
| const InputType * | GetInput (void) |
| Get the first input image. More... | |
| const InputType * | GetInput (unsigned int idx) |
| Get the input image at a specific index. More... | |
| virtual OutputType * | GetOutput () |
| Get the output contour model. More... | |
| virtual void | DumpMaskImage () |
| Debug helper that dumps the internal mask image. More... | |
| bool | CreateDynamicCostMap (mitk::ContourModel *path=nullptr) |
| Create a dynamic cost transfer map using on-the-fly training. More... | |
| void | SetUseCostFunction (bool doUseCostFunction) |
| Enable or disable the cost function in the shortest path filter. More... | |
Public Member Functions inherited from mitk::ContourModelSource | |
| mitkClassMacro (ContourModelSource, BaseDataSource) | |
| Pointer | Clone () const |
| mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
| Allocate a new output object at the given index. More... | |
| itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
| Allocate a new output object by name. More... | |
Public Member Functions inherited from mitk::BaseDataSource | |
| mitkClassMacroItkParent (BaseDataSource, itk::ProcessObject) | |
| 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) |
| Graft the specified base data object onto a named output. More... | |
| 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 |
| Check whether the pipeline is currently executing. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from mitk::ContourModelSource | |
| static Pointer | New () |
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) |
Protected Member Functions inherited from mitk::ContourModelSource | |
| ContourModelSource () | |
| ~ContourModelSource () override | |
Protected Member Functions inherited from mitk::BaseDataSource | |
| BaseDataSource () | |
| Constructor. More... | |
| ~BaseDataSource () override | |
| Destructor. More... | |
Protected Attributes | |
| mitk::Point3D | m_StartPoint |
| Start point in world coordinates. More... | |
| mitk::Point3D | m_EndPoint |
| End point in world coordinates. More... | |
| mitk::Point3D | m_StartPointInIndex |
| Start point in image index coordinates. More... | |
| mitk::Point3D | m_EndPointInIndex |
| End point in image index coordinates. 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 dynamic 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 extracted from the image and transformed into a single cost value.
The filter is able to create dynamic cost transfer map and thus use on the fly training.
Caution: time support currently not available. Filter will always work on the first timestep in its current implementation.
Definition at line 47 of file mitkImageLiveWireContourModelFilter.h.
| typedef itk::ShortestPathCostFunctionLiveWire<InternalImageType> mitk::ImageLiveWireContourModelFilter::CostFunctionType |
Definition at line 60 of file mitkImageLiveWireContourModelFilter.h.
Definition at line 56 of file mitkImageLiveWireContourModelFilter.h.
| typedef itk::Image<float, 2> mitk::ImageLiveWireContourModelFilter::InternalImageType |
Definition at line 58 of file mitkImageLiveWireContourModelFilter.h.
Definition at line 54 of file mitkImageLiveWireContourModelFilter.h.
| typedef OutputType::Pointer mitk::ImageLiveWireContourModelFilter::OutputTypePointer |
Definition at line 55 of file mitkImageLiveWireContourModelFilter.h.
| typedef itk::ShortestPathImageFilter<InternalImageType, InternalImageType> mitk::ImageLiveWireContourModelFilter::ShortestPathImageFilterType |
Definition at line 59 of file mitkImageLiveWireContourModelFilter.h.
| typedef std::vector<itk::Index<2> > mitk::ImageLiveWireContourModelFilter::ShortestPathType |
Definition at line 61 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
|
overrideprotected |
| void mitk::ImageLiveWireContourModelFilter::AddRepulsivePoint | ( | const itk::Index< 2 > & | idx | ) |
Add a single repulsive point to the cost function.
| void mitk::ImageLiveWireContourModelFilter::ClearRepulsivePoints | ( | ) |
Clear all repulsive points used in the cost function.
| Pointer mitk::ImageLiveWireContourModelFilter::Clone | ( | ) | const |
| bool mitk::ImageLiveWireContourModelFilter::CreateDynamicCostMap | ( | mitk::ContourModel * | path = nullptr | ) |
Create a dynamic cost transfer map using on-the-fly training.
| path | Optional contour path to use for training. If nullptr, the last computed segment is used. |
|
protected |
|
virtual |
Debug helper that dumps the internal mask image.
|
overrideprotected |
|
inlineoverrideprotected |
Definition at line 135 of file mitkImageLiveWireContourModelFilter.h.
|
virtual |
| const InputType* mitk::ImageLiveWireContourModelFilter::GetInput | ( | unsigned int | idx | ) |
Get the input image at a specific index.
| const InputType* mitk::ImageLiveWireContourModelFilter::GetInput | ( | void | ) |
Get the first input image.
|
virtual |
Get the output contour model.
|
virtual |
|
virtual |
|
protected |
| mitk::ImageLiveWireContourModelFilter::mitkClassMacro | ( | ImageLiveWireContourModelFilter | , |
| ContourModelSource | |||
| ) |
|
static |
| void mitk::ImageLiveWireContourModelFilter::RemoveRepulsivePoint | ( | const itk::Index< 2 > & | idx | ) |
Remove a single repulsive point from the cost function.
|
virtual |
End point in world coordinates.
|
virtual |
Set the input image for the LiveWire computation.
| input | The image to compute the LiveWire contour on. |
|
virtual |
Set the input image at a specific index.
| idx | The input index. |
| input | The image to set. |
| void mitk::ImageLiveWireContourModelFilter::SetRepulsivePoints | ( | const ShortestPathType & | points | ) |
Set a vector with repulsive points to use in the cost function.
|
virtual |
Start point in world coordinates.
|
inline |
Enable or disable the cost function in the shortest path filter.
| doUseCostFunction | If true, the cost function is used; otherwise uniform cost is assumed. |
Definition at line 128 of file mitkImageLiveWireContourModelFilter.h.
|
virtual |
Create dynamic cost transfer map - use on the fly training.
|
protected |
|
protected |
The cost function to compute costs between two pixels.
Definition at line 154 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
End point in world coordinates.
Definition at line 145 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
End point in image index coordinates.
Definition at line 151 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Definition at line 171 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Shortest path filter according to cost function m_CostFunction.
Definition at line 157 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Start point in world coordinates.
Definition at line 142 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Start point in image index coordinates.
Definition at line 148 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Definition at line 162 of file mitkImageLiveWireContourModelFilter.h.
|
protected |
Flag to use a dynamic cost map or not.
Definition at line 160 of file mitkImageLiveWireContourModelFilter.h.