17 const int rem = len % pad;
18 return (rem != 0) ? (pad - rem) : 0;
27 char *p = ((
char *)ptr) + addbytes;
39 const char addbytes = *(ptr - 1);
40 delete[] (ptr - addbytes);
82 (
int nChannels,
int depth,
83 int origin,
int align,
84 int width,
int height))
113 const int linew = width * (depth &
IPL_DEPTH_MASK) / 8 * nChannels;
124 if (image ==
nullptr)
void iplDeallocateHeader(MiniIplImage *image)
int PAD_BYTES(int len, int pad)
this might turn out to be useful.
MiniIplImage * iplCreateImageHeader(int nChannels, int depth, int origin, int align, int width, int height)
void iplAllocateImage(MiniIplImage *image)
char * AllocAligned(int size)
void iplDeallocateImage(MiniIplImage *image)
void FreeAligned(char *ptr)
#define IPLAPIIMPL(type, name, arg)
Definition for functions implemented within YARP_sig.
struct _IplImage MiniIplImage
int nChannels
Most of OpenCV functions support 1,2,3 or 4 channels.
int height
image height in pixels
int align
Alignment of image rows (4 or 8).
char * imageData
pointer to aligned image data
int imageSize
image data size in bytes (==image->height*image->widthStep in case of interleaved data)
int origin
0 - top-left origin, 1 - bottom-left origin (Windows bitmaps style)
int widthStep
size of aligned image row in bytes
int depth
pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, IPL_DEPTH_32S, IPL_DEPTH_32F and IPL_...
int width
image width in pixels