#include "mitkIpPic.h"
#include "mitkPixelType.h"
#include <itkVector.h>
#include <itkRGBPixel.h>
#include <itkRGBAPixel.h>
#include <itkCovariantVector.h>
#include "itkDiffusionTensor3D.h"
Go to the source code of this file.
Defines | |
#define | HUNDRED_VECS(HUN) |
#define | TEN_VECS(TEN) |
#define | N_VEC(N_DIRS) |
#define | _N_VEC(N_DIRS, PIXTYPE) |
#define | SET_ITK_TYPE_ID(anItkIoPixelType_test, numberOfComponents_test, ITK_TYPE) |
#define | SET_TYPE(TYPE, IPPIC_TYPE) |
#define _N_VEC | ( | N_DIRS, | |
PIXTYPE | |||
) |
else if ( *m_TypeId == typeid( itk::Vector<PIXTYPE,N_DIRS> )) \ { \ found = true; \ m_TypeId = & typeid( PIXTYPE ); \ m_NumberOfComponents *= N_DIRS; \ m_Type = mitkIpPicFloat; \ m_Bpe = sizeof(PIXTYPE) * 8 * m_NumberOfComponents; \ m_ItkTypeId = &typeid( itk::Vector<PIXTYPE,N_DIRS> ); \ } \
Definition at line 56 of file mitkPixelType.cpp.
#define HUNDRED_VECS | ( | HUN ) |
#define N_VEC | ( | N_DIRS ) |
Definition at line 52 of file mitkPixelType.cpp.
Referenced by mitk::PixelType::Initialize().
#define SET_ITK_TYPE_ID | ( | anItkIoPixelType_test, | |
numberOfComponents_test, | |||
ITK_TYPE | |||
) |
if ( (itk::ImageIOBase::anItkIoPixelType_test == anItkIoPixelType ) && \ (numberOfComponents_test == m_NumberOfComponents) \ ) \ { \ m_ItkTypeId = &typeid(ITK_TYPE); \ }
Definition at line 134 of file mitkPixelType.cpp.
#define SET_TYPE | ( | TYPE, | |
IPPIC_TYPE | |||
) |
if ( *m_TypeId == typeid( TYPE ) ) \ { \ m_Type = IPPIC_TYPE; \ m_Bpe = sizeof(TYPE) * 8 * m_NumberOfComponents; \ \ typedef itk::Vector<TYPE, 3> Vector3Type; \ typedef itk::CovariantVector<TYPE, 3> CovariantVector3Type; \ typedef itk::Point<TYPE, 3> Point3Type; \ typedef itk::Vector<TYPE, 2> Vector2Type; \ typedef itk::CovariantVector<TYPE, 2> CovariantVector2Type; \ typedef itk::Point<TYPE, 2> Point2Type; \ \ SET_ITK_TYPE_ID(UNKNOWNPIXELTYPE, 1, TYPE ) else \ SET_ITK_TYPE_ID(SCALAR, 1, TYPE ) else \ \ SET_ITK_TYPE_ID(VECTOR, 2, Vector2Type ) else \ SET_ITK_TYPE_ID(COVARIANTVECTOR, 2, CovariantVector2Type ) else \ SET_ITK_TYPE_ID(POINT, 2, Point2Type ) else \ \ SET_ITK_TYPE_ID(RGB, 3, itk::RGBPixel<TYPE> ) else \ /*SET_ITK_TYPE_ID(DIFFUSIONTENSOR3D, 6, itk::DiffusionTensor3D<TYPE> ) else */ \ SET_ITK_TYPE_ID(VECTOR, 3, Vector3Type ) else \ SET_ITK_TYPE_ID(COVARIANTVECTOR, 3, CovariantVector3Type ) else \ SET_ITK_TYPE_ID(POINT, 3, Point3Type ) else \ \ SET_ITK_TYPE_ID(RGBA, 4, itk::RGBAPixel<TYPE> ) else \ { \ } \ } \ else
Definition at line 142 of file mitkPixelType.cpp.
Referenced by mitk::PixelType::Initialize().