Drive Engine  1.0.0
Plateforme de reconstruction 3D
IImage.h
1 // Copyright (c) 2015. All rights reserved to DriveEngine Team.
2 
3 #pragma once
4 
5 #include "IDatatype.h"
6 #include "IColor.h"
7 #include "Typedefs.h"
8 
9 namespace DriveEngine
10 {
22  class IImage : public IDatatype
23  {
24  public:
25 
40  virtual int GetWidth() const = 0;
41 
56  virtual int GetHeight() const = 0;
57 
73  virtual const IColor* GetPixelColor(int x, int y) const = 0;
74 
92  virtual float GetPixelIntensity(int x, int y) const = 0;
93 
104  virtual const char* GetBuffer() const = 0;
105 
116  virtual Size GetBufferSize() const = 0;
117 
128  virtual int GetPixelSize() const = 0;
129 
141  virtual int GetNbChannels() const = 0;
142  };
143 }
The image datatype interface.
Definition: IImage.h:22
virtual int GetPixelSize() const =0
Gets the size of a pixel, in bytes.
virtual int GetHeight() const =0
Gets the height.
virtual int GetNbChannels() const =0
Gets the number of channel. Must be 1 for a gray scaled image, 3 for a colored image.
Definition: DefaultCalibrationInfoList.h:12
The color datatype interface.
Definition: IColor.h:10
virtual const char * GetBuffer() const =0
Gets the memory buffer. This method should be used carefully.
virtual float GetPixelIntensity(int x, int y) const =0
Gets the intensity.
virtual int GetWidth() const =0
Gets the width.
virtual const IColor * GetPixelColor(int x, int y) const =0
Gets the color.
The datatype interface.
Definition: IDatatype.h:18
virtual Size GetBufferSize() const =0
Gets the memory buffer size, in bytes.