Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPixelTypeTraits.h File Reference

Compile-time type traits for resolving pixel component types, composite pixel types, and ITK image types from MITK pixel type information. More...

#include <itkDiffusionTensor3D.h>
#include <itkImage.h>
#include <itkImageIOBase.h>
#include <itkRGBAPixel.h>
#include <itkRGBPixel.h>
#include <itkVectorImage.h>

Go to the source code of this file.

Classes

struct  mitk::MapPixelComponentType< T >
 
struct  mitk::isPrimitiveType< T >
 This is an implementation of a type trait to provide a compile-time check for PixelType used in the instantiation of an itk::Image. More...
 
struct  mitk::isPrimitiveType< unsigned char >
 Partial specialization (unsigned char) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< char >
 Partial specialization (char) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< signed char >
 Partial specialization (signed char) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< unsigned short >
 Partial specialization (unsigned short) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< short >
 Partial specialization (short) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< unsigned int >
 Partial specialization (unsigned int) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< int >
 Partial specialization (int) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< long int >
 Partial specialization (long int) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< long unsigned int >
 Partial specialization (long unsigned int) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< float >
 Partial specialization (float) for the isPrimitiveType object. More...
 
struct  mitk::isPrimitiveType< double >
 Partial specialization (double) for the isPrimitiveType object. More...
 
struct  mitk::ImageTypeTrait< TPixelType, VDimension >
 Compile-time trait that maps a pixel type and dimension to the corresponding ITK image type. More...
 
struct  mitk::ImageTypeTrait< itk::VariableLengthVector< TPixelType >, VDimension >
 Specialization of ImageTypeTrait for itk::VariableLengthVector pixel types (vector images). More...
 
struct  mitk::ImageTypeTrait< T, 0 >
 Specialization of ImageTypeTrait when VDimension is 0 (type is already an image type). More...
 
struct  mitk::ImageTypeTrait< itk::VectorImage< TPixelType, VDimension >, 0 >
 Specialization of ImageTypeTrait for itk::VectorImage when VDimension is 0. More...
 
struct  mitk::PixelTypeTrait< flag, T >
 Compile-time trait for resolving the ValueType from an ItkImageType. More...
 
struct  mitk::PixelTypeTrait< false, T >
 Partial specialization for the PixelTypeTrait. More...
 
struct  mitk::GetComponentType< T >
 Compile time resolving of the type of a component. More...
 
struct  mitk::ComponentsTrait< V, T >
 Object for compile-time resolving of the number of components for given type. More...
 
struct  mitk::ComponentsTrait< false, T >
 Partial specialization for the ComponentsTraits in case of compound types. More...
 
struct  mitk::MapCompositePixelType< T >
 Object for compile-time translation of a composite pixel type into an itk::ImageIOBase::IOPixelType information. More...
 
struct  mitk::MapCompositePixelType< itk::RGBPixel< C > >
 
struct  mitk::MapCompositePixelType< itk::RGBAPixel< C > >
 
struct  mitk::MapCompositePixelType< itk::DiffusionTensor3D< C > >
 
struct  mitk::MapCompositePixelType< itk::VariableLengthVector< C > >
 
struct  mitk::MapCompositePixelType< itk::Vector< C, N > >
 
struct  mitk::MapCompositePixelType< itk::FixedArray< C, N > >
 
struct  mitk::MapCompositePixelType< itk::CovariantVector< C, N > >
 
struct  mitk::MapCompositePixelType< itk::Matrix< C, N > >
 
struct  mitk::MapPixelType< T, Primitive >
 Object for compile-time translation of a pixel type into an itk::ImageIOBase::IOPixelType information. More...
 
struct  mitk::MapPixelType< T, true >
 Partial specialization for setting the IOPixelType for primitive types to SCALAR. More...
 

Namespaces

 itk
 
 mitk
 Find image slices visible on a given plane.
 

Macros

#define MITK_PIXEL_COMPONENT_TYPE(type, ctype, name)
 Register a custom pixel component type with the MITK type system. More...
 
#define DEFINE_TYPE_PRIMITIVE(_TYPEIN)
 Provides a partial specialization for the. More...
 

Typedefs

typedef itk::IOPixelEnum mitk::itkIOPixelType
 Type alias for the ITK pixel type enumeration. More...
 
typedef itk::IOComponentEnum mitk::itkIOComponentType
 Type alias for the ITK component type enumeration. More...
 

Variables

static const int mitk::PixelUserType
 Starting integer value for user-defined pixel types (beyond the built-in ITK pixel types). More...
 
static const int mitk::PixelComponentUserType
 Starting integer value for user-defined pixel component types (beyond the built-in ITK component types). More...
 

Detailed Description

Compile-time type traits for resolving pixel component types, composite pixel types, and ITK image types from MITK pixel type information.

The pixel type traits are in general used for compile time resolution of the component type and the number of components for compound types like the ones in ItkImageType. The default values are used to define the corresponding variable also for scalar types.

Definition in file mitkPixelTypeTraits.h.

Macro Definition Documentation

◆ DEFINE_TYPE_PRIMITIVE

#define DEFINE_TYPE_PRIMITIVE (   _TYPEIN)

Provides a partial specialization for the.

See also
isPrimitiveType object

Definition at line 93 of file mitkPixelTypeTraits.h.

◆ MITK_PIXEL_COMPONENT_TYPE

#define MITK_PIXEL_COMPONENT_TYPE (   type,
  ctype,
  name 
)

Register a custom pixel component type with the MITK type system.

Creates a specialization of MapPixelComponentType for type mapping it to the integer constant ctype, and a specialization of PixelComponentTypeToString returning name.

Parameters
typeThe C++ type to register (e.g. MyScalarType).
ctypeAn integer constant identifying this component type.
nameA human-readable string name for the type.

Definition at line 52 of file mitkPixelTypeTraits.h.