26 template <
typename TComponent>
27 std::ostream &operator<<(std::ostream &os, const itk::RGBPixel<TComponent> &c)
32 template <
typename TComponent>
33 std::ostream &operator<<(std::ostream &os, const itk::RGBAPixel<TComponent> &c)
35 os << static_cast<typename itk::NumericTraits<TComponent>::PrintType>(c[0]) <<
" ";
36 os << static_cast<typename itk::NumericTraits<TComponent>::PrintType>(c[1]) <<
" ";
37 os << static_cast<typename itk::NumericTraits<TComponent>::PrintType>(c[2]) <<
" ";
38 os << static_cast<typename itk::NumericTraits<TComponent>::PrintType>(c[3]);
42 template <
typename TPixel,
unsigned int VImageDimension>
48 for (
unsigned int i = 0; i < VImageDimension; ++i)
51 if (image->GetLargestPossibleRegion().IsInside(index))
53 std::ostringstream stream;
56 string = stream.str();
60 string =
"Out of bounds";
MITKCORE_EXPORT std::ostream & operator<<(std::ostream &o, DataNode::Pointer &dtn)
#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.
static void ConvertCompositePixelValueToString(itk::Image< TPixel, VImageDimension > *image, itk::Index< 3 > index3, std::string &string)
std::string MITKCORE_EXPORT ConvertCompositePixelValueToString(Image::Pointer image, itk::Index< 3 > index)
Converts composite pixel values to a displayable string.
MITKDIFFUSIONCORE_EXPORT OutputStreamType & operator<<(OutputStreamType &os, const OrientationDistributionFunction< TComponent, NOdfDirections > &c)
#define MITK_ACCESSBYITK_COMPOSITE_PIXEL_TYPES_SEQ