Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkImageAccessByItk.h File Reference
#include <itkCastImageFilter.h>
#include <mitkImageToItk.h>
#include <mitkPPArgCount.h>
#include <mitkPPCat.h>
#include <mitkPPExpand.h>
#include <mitkPPSeqForEach.h>
#include <mitkPPSeqForEachProduct.h>
#include <mitkPPSeqToTuple.h>
#include <mitkPPStringize.h>
#include <mitkPPTupleRem.h>
#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

#define _accessByItk (   itkImageTypeFunctionAndImageSeq,
  pixeltype,
  dimension 
)

Definition at line 82 of file mitkImageAccessByItk.h.

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

Definition at line 110 of file mitkImageAccessByItk.h.

#define _accessByItkArgs (   itkImageTypeFunction,
  type 
)

Definition at line 91 of file mitkImageAccessByItk.h.

#define _accessByItkArgs_n (   itkImageTypeFunction,
  type,
  args 
)

Definition at line 120 of file mitkImageAccessByItk.h.

#define _accessByItkDimensionException (   dim,
  validDims 
)

Definition at line 62 of file mitkImageAccessByItk.h.

#define _accessByItkPixelTypeException (   pixelType,
  pixelTypeSeq 
)

Definition at line 54 of file mitkImageAccessByItk.h.

#define _accessByItkProductIter (   r,
  product 
)

Definition at line 100 of file mitkImageAccessByItk.h.

#define _accessByItkProductIter_n (   r,
  product 
)

Definition at line 132 of file mitkImageAccessByItk.h.

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

Definition at line 105 of file mitkImageAccessByItk.h.

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

Definition at line 138 of file mitkImageAccessByItk.h.

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

Definition at line 601 of file mitkImageAccessByItk.h.

#define _accessTwoImagesByItkArgs (   product)

Definition at line 623 of file mitkImageAccessByItk.h.

#define _accessTwoImagesByItkArgs2 (   itkImageTypeFunction,
  type1,
  type2 
)

Definition at line 620 of file mitkImageAccessByItk.h.

#define _accessTwoImagesByItkForEach (   itkImageTypeFunction,
  tseq1,
  tseq2 
)

Definition at line 638 of file mitkImageAccessByItk.h.

#define _accessTwoImagesByItkIter (   r,
  product 
)

Definition at line 635 of file mitkImageAccessByItk.h.

#define _checkSpecificDimension (   mitkImage,
  dimSeq 
)

Definition at line 74 of file mitkImageAccessByItk.h.

#define _checkSpecificDimensionIter (   r,
  mitkImage,
  dim 
)

Definition at line 69 of file mitkImageAccessByItk.h.

#define _msvc_expand_bug (   macro,
  arg 
)

Definition at line 78 of file mitkImageAccessByItk.h.

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

Definition at line 572 of file mitkImageAccessByItk.h.

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

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

Definition at line 590 of file mitkImageAccessByItk.h.

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

Definition at line 585 of file mitkImageAccessByItk.h.

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

Definition at line 594 of file mitkImageAccessByItk.h.

#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 254 of file mitkImageAccessByItk.h.

#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 450 of file mitkImageAccessByItk.h.

#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 236 of file mitkImageAccessByItk.h.

#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 426 of file mitkImageAccessByItk.h.

#define AccessVectorFixedDimensionByItk (   mitkImage,
  itkImageTypeFunction,
  dimension 
)

Definition at line 286 of file mitkImageAccessByItk.h.

#define AccessVectorPixelTypeByItk (   mitkImage,
  itkImageTypeFunction 
)

Definition at line 258 of file mitkImageAccessByItk.h.

#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 472 of file mitkImageAccessByItk.h.

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