ITK
6.0.0
Insight Toolkit
|
#include <itkScalarRegionBasedLevelSetFunction.h>
LevelSet function that computes a speed image based on regional integrals.
This class implements a level set function that computes the speed image by integrating values on the image domain. NOTE: The convention followed is inside of the level-set function is negative and outside is positive.
Based on the paper:
"An active contour model without edges" T. Chan and L. Vese. In Scale-Space Theories in Computer Vision, pages 141-151, 1999.
This code was taken from the Insight Journal paper:
"Cell Tracking using Coupled Active Surfaces for Nuclei and Membranes" https://doi.org/10.54294/wvwmf8
That is based on the papers:
"Level Set Segmentation: Active Contours without edge" https://doi.org/10.54294/8jk6oy and "Level set segmentation using coupled active surfaces" https://doi.org/10.54294/23ugmy
Definition at line 63 of file itkScalarRegionBasedLevelSetFunction.h.
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TFeatureImage::ImageDimension |
Static Public Attributes inherited from itk::RegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData > | |
static constexpr unsigned int | ImageDimension |
Static Public Attributes inherited from itk::FiniteDifferenceFunction< TInputImage > | |
static constexpr unsigned int | ImageDimension |
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::ConstFeatureIteratorType = ImageRegionConstIterator<FeatureImageType> |
Definition at line 113 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::ConstImageIteratorType = ImageRegionConstIteratorWithIndex<InputImageType> |
Definition at line 111 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::ConstPointer = SmartPointer<const Self> |
Definition at line 72 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::FeatureImageConstPointer = typename FeatureImageType::ConstPointer |
Definition at line 93 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::FeatureImageIteratorType = ImageRegionIteratorWithIndex<FeatureImageType> |
Definition at line 112 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::ImageIteratorType = ImageRegionIteratorWithIndex<InputImageType> |
Definition at line 110 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::ListImageType = Image<ListPixelType, Self::ImageDimension> |
Definition at line 118 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::ListPixelConstIterator = typename ListPixelType::const_iterator |
Definition at line 116 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::ListPixelIterator = typename ListPixelType::iterator |
Definition at line 117 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::ListPixelType = std::list<unsigned int> |
Definition at line 115 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::Pointer = SmartPointer<Self> |
Definition at line 71 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::Self = ScalarRegionBasedLevelSetFunction |
Definition at line 69 of file itkScalarRegionBasedLevelSetFunction.h.
using itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::Superclass = RegionBasedLevelSetFunction<TInputImage, TFeatureImage, TSharedData> |
Definition at line 70 of file itkScalarRegionBasedLevelSetFunction.h.
|
inlineprotected |
Definition at line 131 of file itkScalarRegionBasedLevelSetFunction.h.
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
Compute the overlap multiplicative factors for the penalty term (sum) and the background intensity fitting terms in multiphase level-sets.
Implements itk::RegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >.
|
overridevirtual |
Reimplemented from itk::LightObject.
void itk::ScalarRegionBasedLevelSetFunction< TInputImage, TFeatureImage, TSharedData >::UpdatePixel | ( | const unsigned int | idx, |
NeighborhoodIterator< TInputImage > & | iterator, | ||
InputPixelType & | newValue, | ||
bool & | status | ||
) |
Performs the narrow-band update of the Heaviside function for each voxel. The characteristic function of each region is recomputed (note the shared data which contains information from the other level sets). Using the new $H$ values, the previous $c_i$ are updated.
|
protectedpure virtual |
Update the background and foreground constants for pixel updates. Called only when sparse filters are used to prevent iteration through the entire image.
Implemented in itk::ScalarChanAndVeseLevelSetFunction< TInputImage, TFeatureImage, TSharedData >.
|
protectedpure virtual |
|
staticconstexpr |
Definition at line 79 of file itkScalarRegionBasedLevelSetFunction.h.