22 template <
typename TComponent>
23 std::ostream &operator<<(std::ostream &os, const itk::RGBPixel<TComponent> &c)
28 template <
typename TComponent>
29 std::ostream &operator<<(std::ostream &os, const itk::RGBAPixel<TComponent> &c)
31 os << static_cast<typename itk::NumericTraits<TComponent>::PrintType>(c[0]) <<
" ";
32 os << static_cast<typename itk::NumericTraits<TComponent>::PrintType>(c[1]) <<
" ";
33 os << static_cast<typename itk::NumericTraits<TComponent>::PrintType>(c[2]) <<
" ";
34 os << static_cast<typename itk::NumericTraits<TComponent>::PrintType>(c[3]);
38 template <
typename TPixel,
unsigned int VImageDimension>
44 for (
unsigned int i = 0; i < VImageDimension; ++i)
47 if (image->GetLargestPossibleRegion().IsInside(index))
49 std::ostringstream stream;
52 string = stream.str();
56 string =
"Out of bounds";
#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 par...
DataCollection - Class to facilitate loading/accessing structured data.
std::string MITKCORE_EXPORT ConvertCompositePixelValueToString(Image::Pointer image, itk::Index< 3 > index)
Converts composite pixel values to a displayable string.
std::ostream & operator<<(std::ostream &os, const itk::RGBAPixel< TComponent > &c)
mitk::Image::Pointer image
MITKCORE_EXPORT std::ostream & operator<<(std::ostream &o, DataNode::Pointer &dtn)
#define MITK_ACCESSBYITK_COMPOSITE_PIXEL_TYPES_SEQ