|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Cost function for Tract-Based Spatial Statistics (TBSS) path finding. More...
#include <itkShortestPathCostFunctionTbss.h>


Public Types | |
| typedef ShortestPathCostFunctionTbss | Self |
| typedef ShortestPathCostFunction< TInputImageType > | Superclass |
| typedef SmartPointer< Self > | Pointer |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef itk::ImageRegionConstIterator< TInputImageType > | ConstIteratorType |
| typedef TInputImageType::IndexType | IndexType |
| typedef itk::Image< float, 3 > | FloatImageType |
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 |
| double | GetCost (IndexType p1, IndexType p2) override |
| Calculate the cost of transitioning from pixel p1 to pixel p2. More... | |
| void | Initialize () override |
| Initialize the cost function. More... | |
| double | GetMinCost () override |
| Return the minimal possible cost (needed for A*). More... | |
| void | SetThreshold (double t) |
| Set the intensity threshold below which pixels are impassable. More... | |
Public Member Functions inherited from itk::ShortestPathCostFunction< TInputImageType > | |
| virtual void | SetImage (const TInputImageType *_arg) |
| Set the input image on which costs are computed. More... | |
| void | SetStartIndex (const IndexType &index) |
| Set the starting index of the path. More... | |
| void | SetEndIndex (const IndexType &index) |
| Set the ending index of the path. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| ShortestPathCostFunctionTbss () | |
| ~ShortestPathCostFunctionTbss () override | |
Protected Member Functions inherited from itk::ShortestPathCostFunction< TInputImageType > | |
| ShortestPathCostFunction () | |
| ~ShortestPathCostFunction () override | |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
Protected Attributes | |
| double | m_Threshold |
| Intensity threshold below which pixels are impassable. More... | |
Protected Attributes inherited from itk::ShortestPathCostFunction< TInputImageType > | |
| ImageConstPointer | m_Image |
| The input image used for cost computation. More... | |
| IndexType | m_StartIndex |
| IndexType | m_EndIndex |
| Start and end indices defining the path endpoints. More... | |
Cost function for Tract-Based Spatial Statistics (TBSS) path finding.
This cost function is designed for finding shortest paths along white matter tracts in TBSS analysis. The cost of transitioning between two pixels combines the Euclidean distance with a penalty inversely proportional to the pixel intensity (tract weight).
Pixels with intensity below the configured threshold are considered impassable (infinite cost), preventing the path from leaving the tract skeleton.
The cost formula is:
where weight is the pixel intensity at the destination pixel.
| TInputImageType | The ITK image type (typically 3D float image). |
Definition at line 48 of file itkShortestPathCostFunctionTbss.h.
| typedef itk::ImageRegionConstIterator<TInputImageType> itk::ShortestPathCostFunctionTbss< TInputImageType >::ConstIteratorType |
Definition at line 56 of file itkShortestPathCostFunctionTbss.h.
| typedef SmartPointer<const Self> itk::ShortestPathCostFunctionTbss< TInputImageType >::ConstPointer |
Definition at line 55 of file itkShortestPathCostFunctionTbss.h.
| typedef itk::Image<float, 3> itk::ShortestPathCostFunctionTbss< TInputImageType >::FloatImageType |
Definition at line 59 of file itkShortestPathCostFunctionTbss.h.
| typedef TInputImageType::IndexType itk::ShortestPathCostFunctionTbss< TInputImageType >::IndexType |
Definition at line 57 of file itkShortestPathCostFunctionTbss.h.
| typedef SmartPointer<Self> itk::ShortestPathCostFunctionTbss< TInputImageType >::Pointer |
Definition at line 54 of file itkShortestPathCostFunctionTbss.h.
| typedef ShortestPathCostFunctionTbss itk::ShortestPathCostFunctionTbss< TInputImageType >::Self |
Standard class typedefs.
Definition at line 52 of file itkShortestPathCostFunctionTbss.h.
| typedef ShortestPathCostFunction<TInputImageType> itk::ShortestPathCostFunctionTbss< TInputImageType >::Superclass |
Definition at line 53 of file itkShortestPathCostFunctionTbss.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 107 of file itkShortestPathCostFunctionTbss.h.
| Pointer itk::ShortestPathCostFunctionTbss< TInputImageType >::Clone | ( | ) | const |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ShortestPathCostFunction< TInputImageType >.
|
overridevirtual |
Calculate the cost of transitioning from pixel p1 to pixel p2.
If the intensity at p2 is below the threshold, returns std::numeric_limits<double>::max() (impassable). Otherwise, returns the Euclidean distance plus a penalty of 1000 * (1 - weight).
| [in] | p1 | The source pixel index. |
| [in] | p2 | The destination pixel index. |
Implements itk::ShortestPathCostFunction< TInputImageType >.
|
overridevirtual |
Return the minimal possible cost (needed for A*).
Implements itk::ShortestPathCostFunction< TInputImageType >.
|
overridevirtual |
Initialize the cost function.
Currently a no-op for the TBSS cost function.
Implements itk::ShortestPathCostFunction< TInputImageType >.
|
static |
Method for creation through the object factory.
|
inline |
Set the intensity threshold below which pixels are impassable.
Pixels with intensity below this value receive infinite cost, effectively restricting paths to the tract skeleton.
| [in] | t | The threshold value. |
Definition at line 102 of file itkShortestPathCostFunctionTbss.h.
References itk::ShortestPathCostFunctionTbss< TInputImageType >::m_Threshold.
|
protected |
Intensity threshold below which pixels are impassable.
Definition at line 109 of file itkShortestPathCostFunctionTbss.h.
Referenced by itk::ShortestPathCostFunctionTbss< TInputImageType >::SetThreshold().