Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkImageAccessByItk.h File Reference
#include <itkCastImageFilter.h>
#include <mitkImageToItk.h>
#include <mitkPPArgCount.h>
#include <boost/preprocessor/expand.hpp>
#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/seq/for_each_product.hpp>
#include <boost/preprocessor/seq/to_tuple.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/preprocessor/tuple/rem.hpp>
#include <sstream>

Go to the source code of this file.

Classes

class  mitk::AccessByItkException
 Exception class thrown in AccessByItk macros. More...
 

Namespaces

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

Macros

#define _accessByItkPixelTypeException(pixelType, pixelTypeSeq)
 
#define _accessByItkDimensionException(dim, validDims)
 
#define _checkSpecificDimensionIter(r, mitkImage, dim)
 
#define _checkSpecificDimension(mitkImage, dimSeq)
 
#define _msvc_expand_bug(macro, arg)
 
#define _accessByItk(itkImageTypeFunctionAndImageSeq, pixeltype, dimension)
 
#define _accessByItkArgs(itkImageTypeFunction, type)
 
#define _accessByItkProductIter(r, product)
 
#define _accessFixedTypeByItk(itkImageTypeFunction, mitkImage, pixelTypeSeq, dimSeq)
 
#define _accessByItk_n(itkImageTypeFunctionAndImageSeq, pixeltype, dimension, args)
 
#define _accessByItkArgs_n(itkImageTypeFunction, type, args)
 
#define _accessByItkProductIter_n(r, product)
 
#define _accessFixedTypeByItk_n(itkImageTypeFunction, mitkImage, pixelTypeSeq, dimSeq, va_tuple)
 
#define AccessByItk(mitkImage, itkImageTypeFunction)
 Access a MITK image by an ITK image. More...
 
#define AccessFixedPixelTypeByItk(mitkImage, itkImageTypeFunction, pixelTypeSeq)
 Access a mitk-image with known pixeltype (but unknown dimension) by an itk-image. More...
 
#define AccessIntegralPixelTypeByItk(mitkImage, itkImageTypeFunction)
 Access a mitk-image with an integral pixel type by an itk-image. More...
 
#define AccessFloatingPixelTypeByItk(mitkImage, itkImageTypeFunction)
 Access a mitk-image with a floating point pixel type by an ITK image. More...
 
#define AccessVectorPixelTypeByItk(mitkImage, itkImageTypeFunction)
 
#define AccessFixedDimensionByItk(mitkImage, itkImageTypeFunction, dimension)
 Access a mitk-image with known dimension by an itk-image. More...
 
#define AccessVectorFixedDimensionByItk(mitkImage, itkImageTypeFunction, dimension)
 
#define AccessFixedTypeByItk(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq)
 Access a mitk-image with known type (pixel type and dimension) by an itk-image. More...
 
#define AccessByItk_n(mitkImage, itkImageTypeFunction, va_tuple)
 Access a MITK image by an ITK image with one or more parameters. More...
 
#define AccessFixedPixelTypeByItk_n(mitkImage, itkImageTypeFunction, pixelTypeSeq, va_tuple)
 Access a mitk-image with known pixeltype (but unknown dimension) by an itk-image with one or more parameters. More...
 
#define AccessIntegralPixelTypeByItk_n(mitkImage, itkImageTypeFunction, va_tuple)
 Access an mitk::Image with an integral pixel type by an ITK image with one or more parameters. More...
 
#define AccessFloatingPixelTypeByItk_n(mitkImage, itkImageTypeFunction, va_tuple)
 Access an mitk::Image with a floating point pixel type by an ITK image with one or more parameters. More...
 
#define AccessVectorPixelTypeByItk_n(mitkImage, itkImageTypeFunction, va_tuple)
 Access a vector mitk::Image by an ITK vector image with one or more parameters. More...
 
#define AccessFixedDimensionByItk_n(mitkImage, itkImageTypeFunction, dimension, va_tuple)
 Access a mitk-image with known dimension by an itk-image with one or more parameters. More...
 
#define AccessVectorFixedDimensionByItk_n(mitkImage, itkImageTypeFunction, dimension, va_tuple)
 Access a vector mitk-image with known dimension by a ITK vector image with one or more parameters. More...
 
#define AccessFixedTypeByItk_n(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq, va_tuple)
 Access a mitk-image with known type (pixel type and dimension) by an itk-image with one or more parameters. More...
 
#define AccessByItk_1(mitkImage, itkImageTypeFunction, arg1)
 
#define AccessFixedPixelTypeByItk_1(mitkImage, itkImageTypeFunction, pixelTypeSeq, arg1)
 
#define AccessFixedDimensionByItk_1(mitkImage, itkImageTypeFunction, dimension, arg1)
 
#define AccessFixedTypeByItk_1(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq, arg1)
 
#define AccessByItk_2(mitkImage, itkImageTypeFunction, arg1, arg2)
 
#define AccessFixedPixelTypeByItk_2(mitkImage, itkImageTypeFunction, pixelTypeSeq, arg1, arg2)
 
#define AccessFixedDimensionByItk_2(mitkImage, itkImageTypeFunction, dimension, arg1, arg2)
 
#define AccessFixedTypeByItk_2(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq, arg1, arg2)
 
#define AccessByItk_3(mitkImage, itkImageTypeFunction, arg1, arg2, arg3)
 
#define AccessFixedPixelTypeByItk_3(mitkImage, itkImageTypeFunction, pixelTypeSeq, arg1, arg2, arg3)
 
#define AccessFixedDimensionByItk_3(mitkImage, itkImageTypeFunction, dimension, arg1, arg2, arg3)
 
#define AccessFixedTypeByItk_3(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq, arg1, arg2, arg3)
 
#define _accessTwoImagesByItk(itkImageTypeFunction, pixeltype1, dim1, pixeltype2, dim2)
 
#define _accessTwoImagesByItkArgs2(itkImageTypeFunction, type1, type2)
 
#define _accessTwoImagesByItkArgs(product)
 
#define _accessTwoImagesByItkIter(r, product)
 
#define _accessTwoImagesByItkForEach(itkImageTypeFunction, tseq1, tseq2)
 
#define AccessTwoImagesFixedDimensionByItk(mitkImage1, mitkImage2, itkImageTypeFunction, dimension)
 Access two mitk-images with known dimension by itk-images. More...
 

Macro Definition Documentation

◆ _accessByItk

#define _accessByItk (   itkImageTypeFunctionAndImageSeq,
  pixeltype,
  dimension 
)

Definition at line 76 of file mitkImageAccessByItk.h.

◆ _accessByItk_n

#define _accessByItk_n (   itkImageTypeFunctionAndImageSeq,
  pixeltype,
  dimension,
  args 
)

Definition at line 104 of file mitkImageAccessByItk.h.

◆ _accessByItkArgs

#define _accessByItkArgs (   itkImageTypeFunction,
  type 
)

Definition at line 85 of file mitkImageAccessByItk.h.

◆ _accessByItkArgs_n

#define _accessByItkArgs_n (   itkImageTypeFunction,
  type,
  args 
)

Definition at line 114 of file mitkImageAccessByItk.h.

◆ _accessByItkDimensionException

#define _accessByItkDimensionException (   dim,
  validDims 
)

Definition at line 56 of file mitkImageAccessByItk.h.

◆ _accessByItkPixelTypeException

#define _accessByItkPixelTypeException (   pixelType,
  pixelTypeSeq 
)

Definition at line 48 of file mitkImageAccessByItk.h.

◆ _accessByItkProductIter

#define _accessByItkProductIter (   r,
  product 
)

Definition at line 94 of file mitkImageAccessByItk.h.

◆ _accessByItkProductIter_n

#define _accessByItkProductIter_n (   r,
  product 
)

Definition at line 126 of file mitkImageAccessByItk.h.

◆ _accessFixedTypeByItk

#define _accessFixedTypeByItk (   itkImageTypeFunction,
  mitkImage,
  pixelTypeSeq,
  dimSeq 
)

Definition at line 99 of file mitkImageAccessByItk.h.

◆ _accessFixedTypeByItk_n

#define _accessFixedTypeByItk_n (   itkImageTypeFunction,
  mitkImage,
  pixelTypeSeq,
  dimSeq,
  va_tuple 
)

Definition at line 132 of file mitkImageAccessByItk.h.

◆ _accessTwoImagesByItk

#define _accessTwoImagesByItk (   itkImageTypeFunction,
  pixeltype1,
  dim1,
  pixeltype2,
  dim2 
)

Definition at line 595 of file mitkImageAccessByItk.h.

◆ _accessTwoImagesByItkArgs

#define _accessTwoImagesByItkArgs (   product)

Definition at line 617 of file mitkImageAccessByItk.h.

◆ _accessTwoImagesByItkArgs2

#define _accessTwoImagesByItkArgs2 (   itkImageTypeFunction,
  type1,
  type2 
)

Definition at line 614 of file mitkImageAccessByItk.h.

◆ _accessTwoImagesByItkForEach

#define _accessTwoImagesByItkForEach (   itkImageTypeFunction,
  tseq1,
  tseq2 
)

Definition at line 632 of file mitkImageAccessByItk.h.

◆ _accessTwoImagesByItkIter

#define _accessTwoImagesByItkIter (   r,
  product 
)

Definition at line 629 of file mitkImageAccessByItk.h.

◆ _checkSpecificDimension

#define _checkSpecificDimension (   mitkImage,
  dimSeq 
)

Definition at line 68 of file mitkImageAccessByItk.h.

◆ _checkSpecificDimensionIter

#define _checkSpecificDimensionIter (   r,
  mitkImage,
  dim 
)

Definition at line 63 of file mitkImageAccessByItk.h.

◆ _msvc_expand_bug

#define _msvc_expand_bug (   macro,
  arg 
)

Definition at line 72 of file mitkImageAccessByItk.h.

◆ AccessByItk_1

◆ AccessByItk_2

◆ AccessByItk_3

#define AccessByItk_3 (   mitkImage,
  itkImageTypeFunction,
  arg1,
  arg2,
  arg3 
)

Definition at line 582 of file mitkImageAccessByItk.h.

Referenced by mitk::GIFNeighbourhoodGreyLevelDifference::CalculateFeatures(), mitk::GIFCooccurenceMatrix::CalculateFeatures(), mitk::GIFLocalIntensity::CalculateFeatures(), mitk::GIFImageDescriptionFeatures::CalculateFeatures(), mitk::GIFNeighbourhoodGreyToneDifferenceFeatures::CalculateFeatures(), mitk::GIFFirstOrderHistogramStatistics::CalculateFeatures(), mitk::GIFGreyLevelSizeZone::CalculateFeatures(), mitk::GIFGreyLevelRunLength::CalculateFeatures(), mitk::GIFVolumetricDensityStatistics::CalculateFeatures(), mitk::GIFVolumetricStatistics::CalculateFeatures(), mitk::GIFNeighbouringGreyLevelDependenceFeature::CalculateFeatures(), mitk::GIFFirstOrderStatistics::CalculateFeatures(), mitk::GIFFirstOrderNumericStatistics::CalculateFeatures(), mitk::GIFCooccurenceMatrix2::CalculateFeatures(), mitk::GIFGreyLevelDistanceZone::CalculateFeatures(), mitk::PixelManipulationTool::CalculateImage(), CalculateIntensityPeak(), mitk::MorphologicalOperations::Closing(), mitk::MorphologicalOperations::Dilate(), mitk::MorphologicalOperations::Erode(), mitk::FeatureBasedEdgeDetectionFilter::GenerateData(), mitk::HeightFieldSurfaceClipImageFilter::GenerateData(), mitk::IntensityQuantifier::InitializeByImageRegion(), mitk::IntensityQuantifier::InitializeByImageRegionAndBinsize(), mitk::IntensityQuantifier::InitializeByImageRegionAndBinsizeAndMaximum(), mitk::IntensityQuantifier::InitializeByImageRegionAndBinsizeAndMinimum(), mitk::IntensityQuantifier::InitializeByImageRegionAndMaximum(), mitk::IntensityQuantifier::InitializeByImageRegionAndMinimum(), mitk::CLUtil::LocalHistogram(), main(), and mitk::MorphologicalOperations::Opening().

◆ AccessFixedDimensionByItk_1

◆ AccessFixedDimensionByItk_2

◆ AccessFixedDimensionByItk_3

◆ AccessFixedPixelTypeByItk_1

#define AccessFixedPixelTypeByItk_1 (   mitkImage,
  itkImageTypeFunction,
  pixelTypeSeq,
  arg1 
)

Definition at line 566 of file mitkImageAccessByItk.h.

Referenced by mitk::ImageWriter::WriteByITK().

◆ AccessFixedPixelTypeByItk_2

#define AccessFixedPixelTypeByItk_2 (   mitkImage,
  itkImageTypeFunction,
  pixelTypeSeq,
  arg1,
  arg2 
)

◆ AccessFixedPixelTypeByItk_3

#define AccessFixedPixelTypeByItk_3 (   mitkImage,
  itkImageTypeFunction,
  pixelTypeSeq,
  arg1,
  arg2,
  arg3 
)

Definition at line 584 of file mitkImageAccessByItk.h.

◆ AccessFixedTypeByItk_1

#define AccessFixedTypeByItk_1 (   mitkImage,
  itkImageTypeFunction,
  pixelTypeSeq,
  dimSeq,
  arg1 
)

◆ AccessFixedTypeByItk_2

#define AccessFixedTypeByItk_2 (   mitkImage,
  itkImageTypeFunction,
  pixelTypeSeq,
  dimSeq,
  arg1,
  arg2 
)

Definition at line 579 of file mitkImageAccessByItk.h.

◆ AccessFixedTypeByItk_3

#define AccessFixedTypeByItk_3 (   mitkImage,
  itkImageTypeFunction,
  pixelTypeSeq,
  dimSeq,
  arg1,
  arg2,
  arg3 
)

Definition at line 588 of file mitkImageAccessByItk.h.

◆ AccessFloatingPixelTypeByItk

#define AccessFloatingPixelTypeByItk (   mitkImage,
  itkImageTypeFunction 
)

Access a mitk-image with a floating point pixel type by an ITK image.

See AccessByItk for details.

Parameters
mitkImageThe MITK input image.
itkImageTypeFunctionThe templated access-function to be called.
Exceptions
mitk::AccessByItkExceptionIf mitkImage is of unsupported pixel type or dimension.
See also
AccessFixedPixelTypeByItk
AccessByItk
AccessFloatingPixelTypeByItk_n

Definition at line 248 of file mitkImageAccessByItk.h.

◆ AccessFloatingPixelTypeByItk_n

#define AccessFloatingPixelTypeByItk_n (   mitkImage,
  itkImageTypeFunction,
  va_tuple 
)

Access an mitk::Image with a floating point pixel type by an ITK image with one or more parameters.

See AccessByItk_n for details.

Parameters
va_tupleA variable length tuple containing the arguments to be passed to the access function itkImageTypeFunction, e.g. ("first", 2, THIRD).
mitkImageThe MITK input image.
itkImageTypeFunctionThe templated access-function to be called.
Exceptions
mitk::AccessByItkExceptionIf mitkImage is of unsupported pixel type or dimension.
See also
AccessFixedPixelTypeByItk_n
AccessByItk_n
AccessFloatingPixelTypeByItk

Definition at line 444 of file mitkImageAccessByItk.h.

◆ AccessIntegralPixelTypeByItk

#define AccessIntegralPixelTypeByItk (   mitkImage,
  itkImageTypeFunction 
)

Access a mitk-image with an integral pixel type by an itk-image.

See AccessByItk for details.

Parameters
mitkImageThe MITK input image.
itkImageTypeFunctionThe templated access-function to be called.
Exceptions
mitk::AccessByItkExceptionIf mitkImage is of unsupported pixel type or dimension.
See also
AccessFixedPixelTypeByItk
AccessByItk
AccessIntegralPixelTypeByItk_n

Definition at line 230 of file mitkImageAccessByItk.h.

◆ AccessIntegralPixelTypeByItk_n

#define AccessIntegralPixelTypeByItk_n (   mitkImage,
  itkImageTypeFunction,
  va_tuple 
)

Access an mitk::Image with an integral pixel type by an ITK image with one or more parameters.

See AccessByItk_n for details.

Parameters
va_tupleA variable length tuple containing the arguments to be passed to the access function itkImageTypeFunction, e.g. ("first", 2, THIRD).
mitkImageThe MITK input image.
itkImageTypeFunctionThe templated access-function to be called.
Exceptions
mitk::AccessByItkExceptionIf mitkImage is of unsupported pixel type or dimension.
See also
AccessFixedPixelTypeByItk_n
AccessByItk_n
AccessIntegralPixelTypeByItk

Definition at line 420 of file mitkImageAccessByItk.h.

◆ AccessVectorFixedDimensionByItk

#define AccessVectorFixedDimensionByItk (   mitkImage,
  itkImageTypeFunction,
  dimension 
)

Definition at line 280 of file mitkImageAccessByItk.h.

◆ AccessVectorPixelTypeByItk

#define AccessVectorPixelTypeByItk (   mitkImage,
  itkImageTypeFunction 
)

Definition at line 252 of file mitkImageAccessByItk.h.

◆ AccessVectorPixelTypeByItk_n

#define AccessVectorPixelTypeByItk_n (   mitkImage,
  itkImageTypeFunction,
  va_tuple 
)

Access a vector mitk::Image by an ITK vector image with one or more parameters.

See AccessByItk_n for details.

Parameters
va_tupleA variable length tuple containing the arguments to be passed to the access function itkImageTypeFunction, e.g. ("first", 2, THIRD).
mitkImageThe MITK input image.
itkImageTypeFunctionThe templated access-function to be called.
Exceptions
mitk::AccessByItkExceptionIf mitkImage is of unsupported pixel type or dimension.
See also
AccessFixedPixelTypeByItk_n
AccessByItk_n

Definition at line 466 of file mitkImageAccessByItk.h.

Referenced by mitk::ImageStatisticsHolder::ComputeImageStatistics(), and mitk::ConvertImageToLabelSetImage().