65 out.
width = roi.x1 - roi.x0;
66 out.height = roi.y1 - roi.y0;
89 unsigned char *ptr =
data;
107 for(
unsigned int j=0;j<src.height;++j)
120 std::swap(a.height, b.height);
void clone(const ImageHandle &src)
clone an image
Definition: Image.h:104
unsigned char * delegate()
method to delegate the destroy of the data to a third player.
Definition: Image.h:88
void alloc_as(const ImageHandle &src)
allocate this image with the same geometry with a source image
Definition: Image.h:101
Types involved in boosting.
ImageHandle crop(const rect &roi) const
return a sub part of the image (without copy)
Definition: Image.h:60
unsigned int bpp
byte per pixel (1 for grayscale image, 2 for 16bit greyscale image, 3 for RGB/YUV/etc color image) ...
Definition: Image.h:37
a structure to hold image data (memory)
Definition: Image.h:74
ImageHandle crop(int x0, int y0, int x1, int y1) const
return a subpart of the image (without copy)
Definition: Image.h:47
void release()
release manully the memory
Definition: Image.h:95
long stride
line stride, the delta offset, in bytes, between two different scanline
Definition: Image.h:41
unsigned int width
image geometry
Definition: Image.h:39
a rectangle structure
Definition: Types.h:55
unsigned char * data
initial address of the first pixel. It must be cast to correct format (uint8, uint16, rgb, etc etc)
Definition: Image.h:43
void alloc(unsigned int w, unsigned int h, unsigned int b)
reserve memory for the image
Definition: Image.h:98