Medical Imaging Interaction Toolkit  2016.11.0
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...
 
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 17 of file mitkCLUtil.h.

Member Enumeration Documentation

The MorphologicalDimensions enum.

Enumerator
Axial 
Coronal 
Sagital 
All 

Definition at line 23 of file mitkCLUtil.h.

Member Function Documentation

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 118 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

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 59 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

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

CountVoxel.

Parameters
image
map

Definition at line 69 of file mitkCLUtil.cpp.

References AccessByItk_1, and itkCountVoxel().

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

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

CountVoxel.

Parameters
image
label
count

Definition at line 74 of file mitkCLUtil.cpp.

References AccessByItk_2, and itkCountVoxel().

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

CountVoxel.

Parameters
image
count

Definition at line 79 of file mitkCLUtil.cpp.

References AccessByItk_1, and itkCountVoxel().

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

CreateCheckerBoardPredictionMask.

Parameters
image
outimage

Definition at line 84 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_1.

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 106 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

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 39 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

Referenced by main().

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 112 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

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 34 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

Referenced by main().

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

FillHoleGrayscale.

Parameters
image
outimage

Definition at line 44 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_1.

Referenced by main().

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

GaussianFilter.

Parameters
image
smoothed
sigma

Definition at line 100 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_2.

Referenced by ProcessFeatureImages().

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

GrabLabel.

Parameters
MultiLabelImage
outimage
label

Definition at line 54 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_2.

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

itkInsertLabel

Parameters
image
maskImage
label

Definition at line 49 of file mitkCLUtil.cpp.

References AccessByItk_2.

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 95 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_2.

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

Definition at line 271 of file mitkCLUtil.h.

Referenced by CountVoxel().

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

Definition at line 284 of file mitkCLUtil.h.

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

Definition at line 295 of file mitkCLUtil.h.

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

Definition at line 307 of file mitkCLUtil.h.

Referenced by main().

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

Definition at line 326 of file mitkCLUtil.h.

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

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

LogicalAndImages.

Parameters
image1
image2

Definition at line 89 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_2.

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 64 of file mitkCLUtil.cpp.

References AccessByItk_1.

Referenced by main(), and ReadMitkProjectImageAndMask().

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 29 of file mitkCLUtil.cpp.

References AccessFixedDimensionByItk_3.

Referenced by main(), and ProcessFeatureImages().

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
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
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 105 of file mitkCLUtil.h.

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

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 149 of file mitkCLUtil.h.

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


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