Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Cost function for LiveWire purposes. Specific features are considered to calculate cummulative costs of a link between two pixels. These are: More...
#include <itkShortestPathCostFunctionLiveWire.h>
Public Types | |
enum | Constants { MAPSCALEFACTOR } |
typedef ShortestPathCostFunctionLiveWire | Self |
typedef ShortestPathCostFunction< TInputImageType > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef itk::ImageRegionConstIterator< TInputImageType > | ConstIteratorType |
typedef itk::Image< unsigned char, 2 > | UnsignedCharImageType |
typedef itk::Image< float, 2 > | FloatImageType |
typedef float | ComponentType |
typedef itk::CovariantVector< ComponentType, 2 > | OutputPixelType |
typedef itk::Image< OutputPixelType, 2 > | VectorOutputImageType |
typedef TInputImageType::IndexType | IndexType |
typedef TInputImageType | ImageType |
typedef itk::ImageRegion< 2 > | RegionType |
Public Types inherited from itk::ShortestPathCostFunction< TInputImageType > | |
typedef ShortestPathCostFunction | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef ShapedNeighborhoodIterator< TInputImageType > | ShapedNeighborhoodIteratorType |
typedef TInputImageType | ImageType |
typedef TInputImageType::Pointer | ImagePointer |
typedef TInputImageType::ConstPointer | ImageConstPointer |
typedef TInputImageType::PixelType | PixelType |
typedef TInputImageType::IndexType | IndexType |
Public Member Functions | |
Pointer | Clone () const |
virtual const char * | GetClassName () const |
virtual double | GetCost (IndexType p1, IndexType p2) |
calculates the costs for going from p1 to p2 More... | |
virtual double | GetMinCost () |
returns the minimal costs possible (needed for A*) More... | |
virtual void | Initialize () |
Initialize the metric. More... | |
virtual void | AddRepulsivePoint (const IndexType &index) |
Add void pixel in cost map. More... | |
virtual void | RemoveRepulsivePoint (const IndexType &index) |
Remove void pixel in cost map. More... | |
virtual void | ClearRepulsivePoints () |
Clear repulsive points in cost function. More... | |
virtual void | SetRequestedRegion (RegionType _arg) |
virtual RegionType | GetRequestedRegion () |
virtual void | SetUseApproximateGradient (bool _arg) |
virtual bool | GetUseApproximateGradient () |
virtual void | SetImage (const TInputImageType *_arg) |
void | SetDynamicCostMap (std::map< int, int > &costMap) |
void | SetUseCostMap (bool useCostMap) |
void | SetCostMapMaximum (double max) |
Set the maximum of the dynamic cost map to save computation time. More... | |
const UnsignedCharImageType * | GetMaskImage () |
const FloatImageType * | GetGradientMagnitudeImage () |
const FloatImageType * | GetEdgeImage () |
const VectorOutputImageType * | GetGradientImage () |
Public Member Functions inherited from itk::ShortestPathCostFunction< TInputImageType > | |
void | SetStartIndex (const IndexType &index) |
void | SetEndIndex (const IndexType &index) |
Static Public Member Functions | |
static Pointer | New () |
static double | Gaussian (double x, double xOfGaussian, double yOfGaussian) |
Returns the y value of gaussian with given offset and amplitude. More... | |
Protected Member Functions | |
ShortestPathCostFunctionLiveWire () | |
virtual | ~ShortestPathCostFunctionLiveWire () |
Protected Member Functions inherited from itk::ShortestPathCostFunction< TInputImageType > | |
ShortestPathCostFunction () | |
virtual | ~ShortestPathCostFunction () |
void | PrintSelf (std::ostream &os, Indent indent) const override |
Protected Attributes | |
FloatImageType::Pointer | m_GradientMagnitudeImage |
FloatImageType::Pointer | m_EdgeImage |
UnsignedCharImageType::Pointer | m_MaskImage |
VectorOutputImageType::Pointer | m_GradientImage |
double | minCosts |
bool | m_UseRepulsivePoints |
Superclass::PixelType | val |
Superclass::PixelType | startValue |
Superclass::PixelType | endValue |
double | m_GradientMax |
RegionType | m_RequestedRegion |
bool | m_UseApproximateGradient |
bool | m_Initialized |
std::map< int, int > | m_CostMap |
bool | m_UseCostMap |
double | m_MaxMapCosts |
Protected Attributes inherited from itk::ShortestPathCostFunction< TInputImageType > | |
ImageConstPointer | m_Image |
IndexType | m_StartIndex |
IndexType | m_EndIndex |
Cost function for LiveWire purposes. Specific features are considered to calculate cummulative costs of a link between two pixels. These are:
By default the Gradient Magnitude is mapped linearly to cost values between 0 (good) and 1 (bad). Via SetDynamicCostMap( std::map< int, int > &costMap) a cost map can be set to dynamically map Gradient Magnitude (non linear). Thus, lower values can be considered with lower costs than higher values of gradient magnitudes. To compute the costs of the gradient magnitude dynamically an iverted map of the histogram of gradient magnitude image is used.
Definition at line 44 of file itkShortestPathCostFunctionLiveWire.h.
typedef float itk::ShortestPathCostFunctionLiveWire< TInputImageType >::ComponentType |
Definition at line 63 of file itkShortestPathCostFunctionLiveWire.h.
typedef itk::ImageRegionConstIterator<TInputImageType> itk::ShortestPathCostFunctionLiveWire< TInputImageType >::ConstIteratorType |
Definition at line 52 of file itkShortestPathCostFunctionLiveWire.h.
typedef SmartPointer<const Self> itk::ShortestPathCostFunctionLiveWire< TInputImageType >::ConstPointer |
Definition at line 51 of file itkShortestPathCostFunctionLiveWire.h.
typedef itk::Image<float, 2> itk::ShortestPathCostFunctionLiveWire< TInputImageType >::FloatImageType |
Definition at line 61 of file itkShortestPathCostFunctionLiveWire.h.
typedef TInputImageType itk::ShortestPathCostFunctionLiveWire< TInputImageType >::ImageType |
Definition at line 68 of file itkShortestPathCostFunctionLiveWire.h.
typedef TInputImageType::IndexType itk::ShortestPathCostFunctionLiveWire< TInputImageType >::IndexType |
Definition at line 67 of file itkShortestPathCostFunctionLiveWire.h.
typedef itk::CovariantVector<ComponentType, 2> itk::ShortestPathCostFunctionLiveWire< TInputImageType >::OutputPixelType |
Definition at line 64 of file itkShortestPathCostFunctionLiveWire.h.
typedef SmartPointer<Self> itk::ShortestPathCostFunctionLiveWire< TInputImageType >::Pointer |
Definition at line 50 of file itkShortestPathCostFunctionLiveWire.h.
typedef itk::ImageRegion<2> itk::ShortestPathCostFunctionLiveWire< TInputImageType >::RegionType |
Definition at line 69 of file itkShortestPathCostFunctionLiveWire.h.
typedef ShortestPathCostFunctionLiveWire itk::ShortestPathCostFunctionLiveWire< TInputImageType >::Self |
Standard class typedefs.
Definition at line 48 of file itkShortestPathCostFunctionLiveWire.h.
typedef ShortestPathCostFunction<TInputImageType> itk::ShortestPathCostFunctionLiveWire< TInputImageType >::Superclass |
Definition at line 49 of file itkShortestPathCostFunctionLiveWire.h.
typedef itk::Image<unsigned char, 2> itk::ShortestPathCostFunctionLiveWire< TInputImageType >::UnsignedCharImageType |
Definition at line 58 of file itkShortestPathCostFunctionLiveWire.h.
typedef itk::Image<OutputPixelType, 2> itk::ShortestPathCostFunctionLiveWire< TInputImageType >::VectorOutputImageType |
Definition at line 65 of file itkShortestPathCostFunctionLiveWire.h.
enum itk::ShortestPathCostFunctionLiveWire::Constants |
Enumerator | |
---|---|
MAPSCALEFACTOR |
Definition at line 111 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 134 of file itkShortestPathCostFunctionLiveWire.h.
|
virtual |
Add void pixel in cost map.
|
virtual |
Clear repulsive points in cost function.
Pointer itk::ShortestPathCostFunctionLiveWire< TInputImageType >::Clone | ( | ) | const |
|
static |
Returns the y value of gaussian with given offset and amplitude.
gaussian approximation f(x) = v(bin) * e^ ( -1/2 * (|x-k(bin)| / sigma)^2 )
x | |
xOfGaussian | - offset |
yOfGaussian | - amplitude |
Referenced by mitk::ImageLiveWireContourModelFilter::CreateDynamicCostMapByITK().
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ShortestPathCostFunction< TInputImageType >.
|
virtual |
calculates the costs for going from p1 to p2
Implements itk::ShortestPathCostFunction< TInputImageType >.
|
inline |
Definition at line 129 of file itkShortestPathCostFunctionLiveWire.h.
|
inline |
Definition at line 130 of file itkShortestPathCostFunctionLiveWire.h.
|
inline |
Definition at line 128 of file itkShortestPathCostFunctionLiveWire.h.
|
inline |
Definition at line 127 of file itkShortestPathCostFunctionLiveWire.h.
|
virtual |
returns the minimal costs possible (needed for A*)
Implements itk::ShortestPathCostFunction< TInputImageType >.
|
virtual |
|
virtual |
|
virtual |
Initialize the metric.
Implements itk::ShortestPathCostFunction< TInputImageType >.
|
static |
Method for creation through the object factory.
Referenced by mitk::ImageLiveWireContourModelFilter::ImageLiveWireContourModelFilter().
|
virtual |
Remove void pixel in cost map.
|
inline |
Set the maximum of the dynamic cost map to save computation time.
Definition at line 110 of file itkShortestPathCostFunctionLiveWire.h.
References max().
|
inline |
Definition at line 98 of file itkShortestPathCostFunctionLiveWire.h.
|
virtual |
Reimplemented from itk::ShortestPathCostFunction< TInputImageType >.
|
virtual |
|
virtual |
|
inline |
Definition at line 106 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 148 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 158 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 137 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 139 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 134 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 150 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 156 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 138 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 162 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 152 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 154 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 160 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 143 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 141 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 147 of file itkShortestPathCostFunctionLiveWire.h.
|
protected |
Definition at line 145 of file itkShortestPathCostFunctionLiveWire.h.