24 #include <itkRGBPixel.h>
32 template <
typename TPixel,
unsigned int VImageDimension,
class ItkOutputImageType>
36 typedef itk::Image<TPixel, VImageDimension> ItkInputImageType;
37 if (
typeid(ItkInputImageType) ==
typeid(ItkOutputImageType))
39 itkOutputImage =
const_cast<ItkOutputImageType *
>(
reinterpret_cast<const ItkOutputImageType *
>(itkInputImage));
42 typedef itk::CastImageFilter<ItkInputImageType, ItkOutputImageType> CastImageFilterType;
44 castImageFilter->SetInput(itkInputImage);
45 castImageFilter->Update();
46 itkOutputImage = castImageFilter->GetOutput();
52 typedef itkImageRGBUS3 ItkOutputImageType;
55 (itk::RGBPixel<unsigned short>),
56 (ItkOutputImageType::ImageDimension),
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
void CastToItkImage< itkImageRGBUS3 >(const mitk::Image *mitkImage, itk::SmartPointer< itkImageRGBUS3 > &itkOutputImage)
#define AccessFixedTypeByItk_1(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq, arg1)
Image class for storing images.
void _CastToItkImage2Access(const itk::Image< TPixel, VImageDimension > *itkInputImage, itk::SmartPointer< ItkOutputImageType > &itkOutputImage)
itk::Image< itk::RGBPixel< unsigned short >, 3 > itkImageRGBUS3
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.