Medical Imaging Interaction Toolkit  2024.06.99-abf15e24
Medical Imaging Interaction Toolkit
mitk::CLUtil Class Reference

#include <mitkCLUtil.h>

Public Types

enum  MorphologicalDimensions { Axial, Coronal, Sagittal, All }
 The MorphologicalDimensions enum. More...
 

Static Public Member Functions

static void CreateCheckerboardMask (mitk::Image::Pointer image, mitk::Image::Pointer &outimage)
 CreateCheckerBoardPredictionMask. More...
 
static void InterpolateCheckerboardPrediction (mitk::Image::Pointer checkerboard_prediction, mitk::Image::Pointer &checkerboard_mask, mitk::Image::Pointer &outimage)
 InterpolateCreateCheckerboardPrediction. More...
 
static void CountVoxel (mitk::Image::Pointer image, std::map< unsigned int, unsigned int > &map)
 CountVoxel. More...
 
static void CountVoxel (mitk::Image::Pointer image, unsigned int label, unsigned int &count)
 CountVoxel. More...
 
static void CountVoxel (mitk::Image::Pointer image, unsigned int &count)
 CountVoxel. More...
 
static void SumVoxelForLabel (mitk::Image::Pointer image, const mitk::Image::Pointer &source, unsigned int label, double &val)
 SumVoxelForLabel. More...
 
static void SqSumVoxelForLabel (mitk::Image::Pointer image, const mitk::Image::Pointer &source, unsigned int label, double &val)
 SqSumVoxelForLabel. More...
 
static void LogicalAndImages (const Image::Pointer &image1, const Image::Pointer &image2, Image::Pointer &outimage)
 LogicalAndImages. More...
 
static void GaussianFilter (mitk::Image::Pointer image, mitk::Image::Pointer &smoothed, double sigma)
 GaussianFilter. More...
 
static void DifferenceOfGaussianFilter (mitk::Image::Pointer image, mitk::Image::Pointer &smoothed, double sigma1, double sigma2)
 SubtractGaussianFilter. More...
 
static void LaplacianOfGaussianFilter (mitk::Image::Pointer image, mitk::Image::Pointer &smoothed, double sigma1)
 Laplacian of Gaussian. More...
 
static void HessianOfGaussianFilter (mitk::Image::Pointer image, std::vector< mitk::Image::Pointer > &out, double sigma)
 SubtractGaussianFilter. More...
 
static void LocalHistogram (mitk::Image::Pointer image, std::vector< mitk::Image::Pointer > &out, int Bins, int NeighbourhoodSize)
 Local Histogram. More...
 
template<typename TMatrixElementType >
static mitk::Image::Pointer Transform (const Eigen::Matrix< TMatrixElementType, Eigen::Dynamic, Eigen::Dynamic > &matrix, const mitk::Image::Pointer &mask)
 transform More...
 
template<typename TMatrixElementType >
static Eigen::Matrix< TMatrixElementType, Eigen::Dynamic, Eigen::Dynamic > Transform (const mitk::Image::Pointer &img, const mitk::Image::Pointer &mask)
 TransformImageToMatrix. More...
 
static void DilateBinary (mitk::Image::Pointer &sourceImage, mitk::Image::Pointer &resultImage, int radius, MorphologicalDimensions d)
 DilateBinary. More...
 
static void ErodeBinary (mitk::Image::Pointer &sourceImage, mitk::Image::Pointer &resultImage, int radius, MorphologicalDimensions d)
 ErodeBinary. More...
 
static void ClosingBinary (mitk::Image::Pointer &sourceImage, mitk::Image::Pointer &resultImage, int radius, MorphologicalDimensions d)
 ClosingBinary. More...
 
static void MergeLabels (mitk::Image::Pointer &img, const std::map< unsigned int, unsigned int > &map)
 MergeLabels. More...
 
static void ConnectedComponentsImage (mitk::Image::Pointer &image, mitk::Image::Pointer &mask, mitk::Image::Pointer &outimage, unsigned int &num_components)
 ConnectedComponentsImage. More...
 
static void GrabLabel (mitk::Image::Pointer &image, mitk::Image::Pointer &outimage, unsigned int label)
 GrabLabel. More...
 
static void InsertLabel (mitk::Image::Pointer &image, mitk::Image::Pointer &maskImage, unsigned int label)
 itkInsertLabel More...
 
static void ErodeGrayscale (mitk::Image::Pointer &image, unsigned int radius, mitk::CLUtil::MorphologicalDimensions d, mitk::Image::Pointer &outimage)
 ErodeGrayscale. More...
 
static void DilateGrayscale (mitk::Image::Pointer &image, unsigned int radius, mitk::CLUtil::MorphologicalDimensions d, mitk::Image::Pointer &outimage)
 DilateGrayscale. More...
 
static void FillHoleGrayscale (mitk::Image::Pointer &image, mitk::Image::Pointer &outimage)
 FillHoleGrayscale. More...
 
static void ProbabilityMap (const mitk::Image::Pointer &sourceImage, double mean, double std_dev, mitk::Image::Pointer &resultImage)
 ProbabilityMap. More...
 
template<class TImageType >
static void itkCountVoxel (TImageType *image, std::map< unsigned int, unsigned int > &map)
 
template<class TImageType >
static void itkCountVoxel (TImageType *image, typename TImageType::PixelType label, unsigned int &count)
 
template<typename TImageType >
static void itkCountVoxel (TImageType *mask, unsigned int &n_numSamples)
 
template<class TImageType1 , class TImageType2 >
static void itkSampleLabel (TImageType1 *image, TImageType2 *output, double acceptrate, unsigned int label)
 
template<class TImageType >
static void itkSampleLabel (TImageType *image, mitk::Image::Pointer &output, unsigned int n_samples_drawn)
 

Detailed Description

Definition at line 29 of file mitkCLUtil.h.

Member Enumeration Documentation

◆ MorphologicalDimensions

The MorphologicalDimensions enum.

Enumerator
Axial 
Coronal 
Sagittal 
All 

Definition at line 35 of file mitkCLUtil.h.

Member Function Documentation

◆ ClosingBinary()

static void mitk::CLUtil::ClosingBinary ( mitk::Image::Pointer sourceImage,
mitk::Image::Pointer resultImage,
int  radius,
MorphologicalDimensions  d 
)
static

ClosingBinary.

Parameters
sourceImage
resultImage
radiusSize of the StructuringElement
d

◆ ConnectedComponentsImage()

static void mitk::CLUtil::ConnectedComponentsImage ( mitk::Image::Pointer image,
mitk::Image::Pointer mask,
mitk::Image::Pointer outimage,
unsigned int &  num_components 
)
static

ConnectedComponentsImage.

Parameters
image
mask
outimage
num_componentsNumber of components found in the image

◆ CountVoxel() [1/3]

static void mitk::CLUtil::CountVoxel ( mitk::Image::Pointer  image,
std::map< unsigned int, unsigned int > &  map 
)
static

CountVoxel.

Parameters
image
map

Referenced by Transform().

◆ CountVoxel() [2/3]

static void mitk::CLUtil::CountVoxel ( mitk::Image::Pointer  image,
unsigned int &  count 
)
static

CountVoxel.

Parameters
image
count

◆ CountVoxel() [3/3]

static void mitk::CLUtil::CountVoxel ( mitk::Image::Pointer  image,
unsigned int  label,
unsigned int &  count 
)
static

CountVoxel.

Parameters
image
label
count

◆ CreateCheckerboardMask()

static void mitk::CLUtil::CreateCheckerboardMask ( mitk::Image::Pointer  image,
mitk::Image::Pointer outimage 
)
static

CreateCheckerBoardPredictionMask.

Parameters
image
outimage

◆ DifferenceOfGaussianFilter()

static void mitk::CLUtil::DifferenceOfGaussianFilter ( mitk::Image::Pointer  image,
mitk::Image::Pointer smoothed,
double  sigma1,
double  sigma2 
)
static

SubtractGaussianFilter.

Parameters
image
smoothed(Result is sigma1-sigma2)
sigma1
sigma2

◆ DilateBinary()

static void mitk::CLUtil::DilateBinary ( mitk::Image::Pointer sourceImage,
mitk::Image::Pointer resultImage,
int  radius,
MorphologicalDimensions  d 
)
static

DilateBinary.

Parameters
sourceImage
resultImage
radiusSize of the StructuringElement
d

◆ DilateGrayscale()

static void mitk::CLUtil::DilateGrayscale ( mitk::Image::Pointer image,
unsigned int  radius,
mitk::CLUtil::MorphologicalDimensions  d,
mitk::Image::Pointer outimage 
)
static

DilateGrayscale.

Parameters
image
outimage
radius
d

◆ ErodeBinary()

static void mitk::CLUtil::ErodeBinary ( mitk::Image::Pointer sourceImage,
mitk::Image::Pointer resultImage,
int  radius,
MorphologicalDimensions  d 
)
static

ErodeBinary.

Parameters
sourceImage
resultImage
radiusSize of the StructuringElement
d

◆ ErodeGrayscale()

static void mitk::CLUtil::ErodeGrayscale ( mitk::Image::Pointer image,
unsigned int  radius,
mitk::CLUtil::MorphologicalDimensions  d,
mitk::Image::Pointer outimage 
)
static

ErodeGrayscale.

Parameters
image
outimage
radius
d

◆ FillHoleGrayscale()

static void mitk::CLUtil::FillHoleGrayscale ( mitk::Image::Pointer image,
mitk::Image::Pointer outimage 
)
static

FillHoleGrayscale.

Parameters
image
outimage

◆ GaussianFilter()

static void mitk::CLUtil::GaussianFilter ( mitk::Image::Pointer  image,
mitk::Image::Pointer smoothed,
double  sigma 
)
static

GaussianFilter.

Parameters
image
smoothed
sigma

◆ GrabLabel()

static void mitk::CLUtil::GrabLabel ( mitk::Image::Pointer image,
mitk::Image::Pointer outimage,
unsigned int  label 
)
static

GrabLabel.

Parameters
image
outimage
label

◆ HessianOfGaussianFilter()

static void mitk::CLUtil::HessianOfGaussianFilter ( mitk::Image::Pointer  image,
std::vector< mitk::Image::Pointer > &  out,
double  sigma 
)
static

SubtractGaussianFilter.

Parameters
image
out
sigma

◆ InsertLabel()

static void mitk::CLUtil::InsertLabel ( mitk::Image::Pointer image,
mitk::Image::Pointer maskImage,
unsigned int  label 
)
static

itkInsertLabel

Parameters
image
maskImage
label

◆ InterpolateCheckerboardPrediction()

static void mitk::CLUtil::InterpolateCheckerboardPrediction ( mitk::Image::Pointer  checkerboard_prediction,
mitk::Image::Pointer checkerboard_mask,
mitk::Image::Pointer outimage 
)
static

InterpolateCreateCheckerboardPrediction.

Parameters
checkerboard_prediction
checkerboard_mask
outimage

◆ itkCountVoxel() [1/3]

template<class TImageType >
static void mitk::CLUtil::itkCountVoxel ( TImageType *  image,
std::map< unsigned int, unsigned int > &  map 
)
inlinestatic

Definition at line 317 of file mitkCLUtil.h.

◆ itkCountVoxel() [2/3]

template<class TImageType >
static void mitk::CLUtil::itkCountVoxel ( TImageType *  image,
typename TImageType::PixelType  label,
unsigned int &  count 
)
inlinestatic

Definition at line 330 of file mitkCLUtil.h.

◆ itkCountVoxel() [3/3]

template<typename TImageType >
static void mitk::CLUtil::itkCountVoxel ( TImageType *  mask,
unsigned int &  n_numSamples 
)
inlinestatic

Definition at line 341 of file mitkCLUtil.h.

◆ itkSampleLabel() [1/2]

template<class TImageType >
static void mitk::CLUtil::itkSampleLabel ( TImageType *  image,
mitk::Image::Pointer output,
unsigned int  n_samples_drawn 
)
inlinestatic

Definition at line 372 of file mitkCLUtil.h.

References mitk::CastToMitkImage().

◆ itkSampleLabel() [2/2]

template<class TImageType1 , class TImageType2 >
static void mitk::CLUtil::itkSampleLabel ( TImageType1 *  image,
TImageType2 *  output,
double  acceptrate,
unsigned int  label 
)
inlinestatic

Definition at line 353 of file mitkCLUtil.h.

◆ LaplacianOfGaussianFilter()

static void mitk::CLUtil::LaplacianOfGaussianFilter ( mitk::Image::Pointer  image,
mitk::Image::Pointer smoothed,
double  sigma1 
)
static

Laplacian of Gaussian.

Parameters
image
smoothed(Result is sigma1-sigma2)
sigma1

◆ LocalHistogram()

static void mitk::CLUtil::LocalHistogram ( mitk::Image::Pointer  image,
std::vector< mitk::Image::Pointer > &  out,
int  Bins,
int  NeighbourhoodSize 
)
static

Local Histogram.

Parameters
image
out
Bins
NeighbourhoodSize

◆ LogicalAndImages()

static void mitk::CLUtil::LogicalAndImages ( const Image::Pointer image1,
const Image::Pointer image2,
Image::Pointer outimage 
)
static

LogicalAndImages.

Parameters
image1
image2
outimage

◆ MergeLabels()

static void mitk::CLUtil::MergeLabels ( mitk::Image::Pointer img,
const std::map< unsigned int, unsigned int > &  map 
)
static

MergeLabels.

Parameters
img
mapmerge instruction where each map entry defines a mapping instruction. Key <sourcelabel> - Value <targetlabel>

◆ ProbabilityMap()

static void mitk::CLUtil::ProbabilityMap ( const mitk::Image::Pointer sourceImage,
double  mean,
double  std_dev,
mitk::Image::Pointer resultImage 
)
static

ProbabilityMap.

Parameters
sourceImage
mean
std_dev
resultImage

◆ SqSumVoxelForLabel()

static void mitk::CLUtil::SqSumVoxelForLabel ( mitk::Image::Pointer  image,
const mitk::Image::Pointer source,
unsigned int  label,
double &  val 
)
static

SqSumVoxelForLabel.

Parameters
image
source
label
val

◆ SumVoxelForLabel()

static void mitk::CLUtil::SumVoxelForLabel ( mitk::Image::Pointer  image,
const mitk::Image::Pointer source,
unsigned int  label,
double &  val 
)
static

SumVoxelForLabel.

Parameters
image
source
label
val

◆ Transform() [1/2]

template<typename TMatrixElementType >
static mitk::Image::Pointer mitk::CLUtil::Transform ( const Eigen::Matrix< TMatrixElementType, Eigen::Dynamic, Eigen::Dynamic > &  matrix,
const mitk::Image::Pointer mask 
)
inlinestatic

transform

Parameters
matrix
mask

Definition at line 152 of file mitkCLUtil.h.

References mitk::CastToItkImage(), CountVoxel(), mitk::GrabItkImageMemory(), MITK_ERROR, and mitk::Image::New().

◆ Transform() [2/2]

template<typename TMatrixElementType >
static Eigen::Matrix<TMatrixElementType, Eigen::Dynamic, Eigen::Dynamic> mitk::CLUtil::Transform ( const mitk::Image::Pointer img,
const mitk::Image::Pointer mask 
)
inlinestatic

TransformImageToMatrix.

Parameters
img
mask

Definition at line 195 of file mitkCLUtil.h.

References mitk::CastToItkImage(), and CountVoxel().


The documentation for this class was generated from the following file: