Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
Medical Imaging Interaction Toolkit
mitk::CLUtil Class Reference

#include <mitkCLUtil.h>

Public Types

enum  MorphologicalDimensions { Axial, Coronal, Sagital, 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 
Sagital 
All 

Definition at line 35 of file mitkCLUtil.h.

Member Function Documentation

◆ ClosingBinary()

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

ClosingBinary.

Parameters
BinaryImage
BinaryImage
Sizeof the StructuringElement
Dimension

Definition at line 158 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3, All, Axial, mitk::CastToItkImage(), mitk::CastToMitkImage(), Coronal, image, mitk::Image::New(), offset, mitk::operator!=(), mitk::operator==(), and Sagital.

◆ ConnectedComponentsImage()

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

ConnectedComponentsImage.

Parameters
BinaryImage
BinaryImage
MultilabelImage
Numberof components found in the image

Definition at line 78 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

◆ CountVoxel() [1/3]

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

CountVoxel.

Parameters
image
map

Definition at line 88 of file mitkCLUtil.cpp.

References AccessByItk_1, and itkCountVoxel().

Referenced by main(), ReadMitkProjectImageAndMask(), and Transform().

◆ CountVoxel() [2/3]

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

CountVoxel.

Parameters
image
label
count

Definition at line 93 of file mitkCLUtil.cpp.

References AccessByItk_2, and itkCountVoxel().

◆ CountVoxel() [3/3]

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

CountVoxel.

Parameters
image
count

Definition at line 98 of file mitkCLUtil.cpp.

References AccessByItk_1, and itkCountVoxel().

◆ CreateCheckerboardMask()

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

CreateCheckerBoardPredictionMask.

Parameters
image
outimage

Definition at line 103 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_1.

◆ DifferenceOfGaussianFilter()

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

Definition at line 124 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

◆ DilateBinary()

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

DilateBinary.

Parameters
BinaryImage
BinaryImage
Sizeof the StructuringElement
Dimension

Definition at line 146 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

◆ DilateGrayscale()

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

Definition at line 58 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

Referenced by main().

◆ ErodeBinary()

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

ErodeBinary.

Parameters
BinaryImage
BinaryImage
Sizeof the StructuringElement
Dimension

Definition at line 152 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

◆ ErodeGrayscale()

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

Definition at line 53 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

Referenced by main().

◆ FillHoleGrayscale()

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

FillHoleGrayscale.

Parameters
image
outimage

Definition at line 63 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_1.

Referenced by main().

◆ GaussianFilter()

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

GaussianFilter.

Parameters
image
smoothed
sigma

Definition at line 119 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_2.

Referenced by ProcessFeatureImages().

◆ GrabLabel()

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

GrabLabel.

Parameters
MultiLabelImage
outimage
label

Definition at line 73 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_2.

◆ HessianOfGaussianFilter()

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

SubtractGaussianFilter.

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

Definition at line 134 of file mitkCLUtil.cpp.

References AccessByItk_2.

◆ InsertLabel()

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

itkInsertLabel

Parameters
image
maskImage
label

Definition at line 68 of file mitkCLUtil.cpp.

References AccessByItk_2.

◆ InterpolateCheckerboardPrediction()

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

InterpolateCreateCheckerboardPrediction.

Parameters
image
outimage

Definition at line 114 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_2.

◆ itkCountVoxel() [1/3]

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

Definition at line 319 of file mitkCLUtil.h.

References image.

Referenced by CountVoxel().

◆ itkCountVoxel() [2/3]

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

Definition at line 332 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 343 of file mitkCLUtil.h.

References mask.

◆ itkSampleLabel() [1/2]

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

Definition at line 355 of file mitkCLUtil.h.

Referenced by main().

◆ itkSampleLabel() [2/2]

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

Definition at line 374 of file mitkCLUtil.h.

References mitk::CastToItkImage(), mitk::CastToMitkImage(), and MITK_INFO.

◆ LaplacianOfGaussianFilter()

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
sigma2

Definition at line 129 of file mitkCLUtil.cpp.

References AccessByItk_2.

◆ LocalHistogram()

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

Local Histogram.

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

Definition at line 139 of file mitkCLUtil.cpp.

References AccessByItk_3.

◆ LogicalAndImages()

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

LogicalAndImages.

Parameters
image1
image2

Definition at line 108 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_2.

◆ MergeLabels()

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

MergeLabels.

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

Definition at line 83 of file mitkCLUtil.cpp.

References AccessByItk_1.

Referenced by main(), and ReadMitkProjectImageAndMask().

◆ ProbabilityMap()

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

Definition at line 48 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

Referenced by main(), and ProcessFeatureImages().

◆ 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
outimage

Definition at line 153 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
in_img
mask
out_matrix

Definition at line 197 of file mitkCLUtil.h.

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


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