Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
Medical Imaging Interaction Toolkit
mitkGIFGreyLevelDistanceZone.cpp File Reference
#include <mitkGIFGreyLevelDistanceZone.h>
#include <mitkITKImageImport.h>
#include <mitkImageCast.h>
#include <mitkImageAccessByItk.h>
#include <mitkIOUtil.h>
#include <itkMinimumMaximumImageCalculator.h>
#include <itkImageRegionIteratorWithIndex.h>
#include <itkBinaryCrossStructuringElement.h>
#include <itkBinaryErodeImageFilter.h>
#include <itkAddImageFilter.h>

Go to the source code of this file.

Namespaces

 mitk
 DataCollection - Class to facilitate loading/accessing structured data.
 

Functions

static void MatrixFeaturesTo (const mitk::GreyLevelDistanceZoneFeatures &features, const mitk::GreyLevelDistanceZoneConfiguration &config, mitk::GIFGreyLevelDistanceZone::FeatureListType &featureList)
 
template<typename TPixel , unsigned int VImageDimension>
int CalculateGlSZMatrix (const itk::Image< TPixel, VImageDimension > *itkImage, const itk::Image< unsigned short, VImageDimension > *mask, const itk::Image< unsigned short, VImageDimension > *distanceImage, std::vector< itk::Offset< VImageDimension > > offsets, bool estimateLargestRegion, mitk::GreyLevelDistanceZoneMatrixHolder &holder)
 
template<typename TPixel , unsigned int VDimension>
void itkErode2 (itk::Image< TPixel, VDimension > *sourceImage, mitk::Image::Pointer &resultImage, int &maxDistance)
 
void erode (mitk::Image::Pointer input, mitk::Image::Pointer &output, int &maxDistance)
 
void erodeAndAdd (mitk::Image::Pointer input, mitk::Image::Pointer &finalOutput, int &maxDistance)
 
static void CalculateFeatures (mitk::GreyLevelDistanceZoneMatrixHolder &holder, mitk::GreyLevelDistanceZoneFeatures &results)
 
template<typename TPixel , unsigned int VImageDimension>
static void CalculateGreyLevelDistanceZoneFeatures (const itk::Image< TPixel, VImageDimension > *itkImage, const mitk::Image *mask, mitk::GIFGreyLevelDistanceZone::FeatureListType &featureList, mitk::GreyLevelDistanceZoneConfiguration config)
 

Function Documentation

◆ CalculateFeatures()

◆ CalculateGlSZMatrix()

template<typename TPixel , unsigned int VImageDimension>
int CalculateGlSZMatrix ( const itk::Image< TPixel, VImageDimension > *  itkImage,
const itk::Image< unsigned short, VImageDimension > *  mask,
const itk::Image< unsigned short, VImageDimension > *  distanceImage,
std::vector< itk::Offset< VImageDimension > >  offsets,
bool  estimateLargestRegion,
mitk::GreyLevelDistanceZoneMatrixHolder &  holder 
)

Definition at line 104 of file mitkGIFGreyLevelDistanceZone.cpp.

References offset.

◆ CalculateGreyLevelDistanceZoneFeatures()

template<typename TPixel , unsigned int VImageDimension>
static void CalculateGreyLevelDistanceZoneFeatures ( const itk::Image< TPixel, VImageDimension > *  itkImage,
const mitk::Image mask,
mitk::GIFGreyLevelDistanceZone::FeatureListType featureList,
mitk::GreyLevelDistanceZoneConfiguration  config 
)
static

◆ erode()

void erode ( mitk::Image::Pointer  input,
mitk::Image::Pointer output,
int &  maxDistance 
)

Definition at line 255 of file mitkGIFGreyLevelDistanceZone.cpp.

References AccessByItk_2, and itkErode2().

Referenced by erodeAndAdd().

◆ erodeAndAdd()

void erodeAndAdd ( mitk::Image::Pointer  input,
mitk::Image::Pointer finalOutput,
int &  maxDistance 
)

Definition at line 261 of file mitkGIFGreyLevelDistanceZone.cpp.

References erode().

Referenced by CalculateGreyLevelDistanceZoneFeatures().

◆ itkErode2()

template<typename TPixel , unsigned int VDimension>
void itkErode2 ( itk::Image< TPixel, VDimension > *  sourceImage,
mitk::Image::Pointer resultImage,
int &  maxDistance 
)

Definition at line 193 of file mitkGIFGreyLevelDistanceZone.cpp.

References mitk::CastToMitkImage(), and max().

Referenced by erode().

◆ MatrixFeaturesTo()

static void MatrixFeaturesTo ( const mitk::GreyLevelDistanceZoneFeatures features,
const mitk::GreyLevelDistanceZoneConfiguration &  config,
mitk::GIFGreyLevelDistanceZone::FeatureListType featureList 
)
static