1 #include "StereoRedGreen.hh"
3 #include <Base/Image/ImageConvert.hh>
4 #include <Base/Image/Image.hh>
5 #include <Base/Image/ImageBase.hh>
6 #include <Base/Debug/Exception.hh>
20 template <
class StorageType>
28 BEXCEPTION(
"invalid input image sizes");
31 BEXCEPTION(
"conversion failed");
34 BEXCEPTION(
"conversion failed");
67 template void BIASImage_EXPORT StereoRedGreen::Combine<type>(const Image<type>& left, \
68 const Image<type>& right, Image<type>& result);
73 #ifdef BUILD_IMAGE_INT
76 #ifdef BUILD_IMAGE_CHAR
80 #ifdef BUILD_IMAGE_SHORT
84 #if defined(BUILD_IMAGE_USHORT)
88 #ifdef BUILD_IMAGE_DOUBLE
91 #ifdef BUILD_IMAGE_UINT
void Release()
reimplemented from ImageBase
bool IsEmpty() const
check if ImageData_ points to allocated image buffer or not
void SetColorModel(EColorModel Model)
unsigned int GetWidth() const
void SetInterleaved(bool interleaved)
void Combine(const Image< StorageType > &left, const Image< StorageType > &right, Image< StorageType > &result)
unsigned int GetChannelCount() const
returns the number of Color channels, e.g.
color values, 3 channels, order: red,green,blue
unsigned int GetHeight() const
The image template class for specific storage types.
void Init(unsigned int Width, unsigned int Height, unsigned int channels=1, enum EStorageType storageType=ST_unsignedchar, const bool interleaved=true)
calls Init from ImageBase storageType is ignored, just dummy argument
const StorageType * GetImageData() const
overloaded GetImageData() from ImageBase
enum EColorModel GetColorModel() const
unsigned long int GetPixelCount() const
returns number of pixels in image
static int ToGrey(const ImageBase &source, ImageBase &dest)
wrapper for the templated function ToGrey