#ifndef CVD_INCLUDE_COLOURSPACE_CONVERT_H #define CVD_INCLUDE_COLOURSPACE_CONVERT_H #include #include #include #include namespace CVD { /// Convert Bayer pattern of various forms to greyscale data /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage& to); template <> void convert_image(const BasicImage& from, BasicImage& to); template <> void convert_image(const BasicImage& from, BasicImage& to); template <> void convert_image(const BasicImage& from, BasicImage& to); /// Convert Bayer pattern of various forms to rgb data /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); /// Convert 16bit Bayer pattern of various forms to greyscale data /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage& to); template <> void convert_image(const BasicImage& from, BasicImage& to); template <> void convert_image(const BasicImage& from, BasicImage& to); template <> void convert_image(const BasicImage& from, BasicImage& to); /// Convert 16bit Bayer pattern of various forms to rgb data /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); /// Convert 16bit big endian Bayer pattern of various forms to greyscale data /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage& to); template <> void convert_image(const BasicImage& from, BasicImage& to); template <> void convert_image(const BasicImage& from, BasicImage& to); template <> void convert_image(const BasicImage& from, BasicImage& to); /// Convert 16bit big endian Bayer pattern of various forms to rgb data /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); template <> void convert_image(const BasicImage& from, BasicImage>& to); /// Convert YUV 411 pixel data to RGB /// @param from The input data /// @param to The output data /// @ingroup gImageIO //template<> void convert_image(const BasicImage& from, BasicImage >& to); /// Convert YUV 411 pixel data to Y only /// @param from The input data /// @param to The output data /// @ingroup gImageIO // template<> void convert_image(const BasicImage& from, BasicImage& to); /// Convert YUV 422 pixel data to RGB /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage>& to); /// Convert YUV 422 pixel data to Y only /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage& to); // Name changed from 'convert_image' to prevent conflict with previous convert_image // with same method signature. /// Convert YUV 411 pixel data to both Y and RGB /// @param from The input data /// @ingroup gImageIO //template<> std::pair,Image > > convert_image_pair(const BasicImage& from); /// Convert VUY 422 pixel data to RGB /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage>& to); /// Convert VUY 422 pixel data to Y only /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage& to); /// Convert YUV420p pixel data to RGB /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage>& to); /// Convert YUV420p pixel data to Y only /// @param from The input data /// @param to The output data /// @ingroup gImageIO template <> void convert_image(const BasicImage& from, BasicImage& to); // template<> struct IsConvertible > { static const bool is=1; }; // template<> struct IsConvertible { static const bool is=1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; template <> struct IsConvertible> { static const bool is = 1; }; } #endif