diff --git a/Core/Code/IO/mitkPixelTypeMultiplex.h b/Core/Code/IO/mitkPixelTypeMultiplex.h index 71431b9ed6..23b4434b0a 100644 --- a/Core/Code/IO/mitkPixelTypeMultiplex.h +++ b/Core/Code/IO/mitkPixelTypeMultiplex.h @@ -1,141 +1,141 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef MITKPIXELTYPEMULTIPLEX_H #define MITKPIXELTYPEMULTIPLEX_H #define mitkPixelTypeMultiplex0( function, ptype ) \ { \ if ( ptype.GetComponentType() == itk::ImageIOBase::CHAR )\ - function( ptype, );\ + function( ptype );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UCHAR)\ - function( ptype, );\ + function( ptype );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::SHORT )\ - function( ptype, ); \ + function( ptype ); \ else if ( ptype.GetComponentType() == itk::ImageIOBase::USHORT )\ - function( ptype, );\ + function( ptype );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::INT )\ - function( ptype, );\ + function( ptype );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UINT )\ - function( ptype, );\ + function( ptype );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::LONG )\ - function( ptype, );\ + function( ptype );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::ULONG )\ - function( ptype, );\ + function( ptype );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::FLOAT )\ - function( ptype, );\ + function( ptype );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::DOUBLE )\ - function( ptype, );\ + function( ptype );\ }\ #define mitkPixelTypeMultiplex1( function, ptype, param1 ) \ { \ if ( ptype.GetComponentType() == itk::ImageIOBase::CHAR )\ function( ptype, param1 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UCHAR)\ function( ptype, param1 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::SHORT )\ function( ptype, param1 ); \ else if ( ptype.GetComponentType() == itk::ImageIOBase::USHORT )\ function( ptype, param1 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::INT )\ function( ptype, param1 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UINT )\ function( ptype, param1 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::LONG )\ function( ptype, param1 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::ULONG )\ function( ptype, param1 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::FLOAT )\ function( ptype, param1 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::DOUBLE )\ function( ptype, param1 );\ }\ #define mitkPixelTypeMultiplex2( function, ptype, param1, param2 ) \ { \ if ( ptype.GetComponentType() == itk::ImageIOBase::CHAR )\ function( ptype, param1, param2 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UCHAR)\ function( ptype, param1, param2 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::SHORT )\ function( ptype, param1, param2 ); \ else if ( ptype.GetComponentType() == itk::ImageIOBase::USHORT )\ function( ptype, param1, param2 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::INT )\ function( ptype, param1, param2 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UINT )\ function( ptype, param1, param2 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::LONG )\ function( ptype, param1, param2 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::ULONG )\ function( ptype, param1, param2 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::FLOAT )\ function( ptype, param1, param2 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::DOUBLE )\ function( ptype, param1, param2 );\ }\ #define mitkPixelTypeMultiplex3( function, ptype, param1, param2, param3 ) \ { \ if ( ptype.GetComponentType() == itk::ImageIOBase::CHAR )\ function( ptype, param1, param2, param3 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UCHAR)\ function( ptype, param1, param2, param3 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::SHORT )\ function( ptype, param1, param2, param3 ); \ else if ( ptype.GetComponentType() == itk::ImageIOBase::USHORT )\ function( ptype, param1, param2, param3 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::INT )\ function( ptype, param1, param2, param3 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UINT )\ function( ptype, param1, param2, param3 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::LONG )\ function( ptype, param1, param2, param3 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::ULONG )\ function( ptype, param1, param2, param3 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::FLOAT )\ function( ptype, param1, param2, param3 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::DOUBLE )\ function( ptype, param1, param2, param3 );\ }\ #define mitkPixelTypeMultiplex4( function, ptype, param1, param2, param3, param4 ) \ { \ if ( ptype.GetComponentType() == itk::ImageIOBase::CHAR )\ function( ptype, param1, param2, param3, param4 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UCHAR)\ function( ptype, param1, param2, param3, param4 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::SHORT )\ function( ptype, param1, param2, param3, param4 ); \ else if ( ptype.GetComponentType() == itk::ImageIOBase::USHORT )\ function( ptype, param1, param2, param3, param4 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::INT )\ function( ptype, param1, param2, param3, param4 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::UINT )\ function( ptype, param1, param2, param3, param4 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::LONG )\ function( ptype, param1, param2, param3, param4 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::ULONG )\ function( ptype, param1, param2, param3, param4 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::FLOAT )\ function( ptype, param1, param2, param3, param4 );\ else if ( ptype.GetComponentType() == itk::ImageIOBase::DOUBLE )\ function( ptype, param1, param2, param3, param4 );\ }\ #endif // MITKPIXELTYPEMULTIPLEX_H