17#ifndef YARP_CVTYPES_H_
18#define YARP_CVTYPES_H_
31#if defined _MSC_VER || defined __BORLANDC__
33typedef unsigned __int64
uint64;
56#define IPL_DEPTH_SIGN 0x80000000
60#define IPL_DEPTH_16U 16
61#define IPL_DEPTH_32F 32
63#define IPL_DEPTH_8S (int)(IPL_DEPTH_SIGN| 8)
64#define IPL_DEPTH_16S (int)(IPL_DEPTH_SIGN|16)
65#define IPL_DEPTH_32S (int)(IPL_DEPTH_SIGN|32)
67#define IPL_DATA_ORDER_PIXEL 0
68#define IPL_DATA_ORDER_PLANE 1
70#define IPL_ORIGIN_TL 0
71#define IPL_ORIGIN_BL 1
73#define IPL_ALIGN_4BYTES 4
74#define IPL_ALIGN_8BYTES 8
75#define IPL_ALIGN_16BYTES 16
76#define IPL_ALIGN_32BYTES 32
78#define IPL_ALIGN_DWORD IPL_ALIGN_4BYTES
79#define IPL_ALIGN_QWORD IPL_ALIGN_8BYTES
101#define IPL_IMAGE_HEADER 1
102#define IPL_IMAGE_DATA 2
103#define IPL_IMAGE_ROI 4
109#define IPLAPIIMPL(type,name,arg) extern type name arg
116 (
int nChannels,
int depth,
117 int origin,
int align,
118 int width,
int height));
122#define IPL_BORDER_CONSTANT 0
124#define IPL_SIDE_TOP_INDEX 0
125#define IPL_SIDE_BOTTOM_INDEX 1
126#define IPL_SIDE_LEFT_INDEX 2
127#define IPL_SIDE_RIGHT_INDEX 3
128#define IPL_SIDE_TOP (1<<IPL_SIDE_TOP_INDEX)
129#define IPL_SIDE_BOTTOM (1<<IPL_SIDE_BOTTOM_INDEX)
130#define IPL_SIDE_LEFT (1<<IPL_SIDE_LEFT_INDEX)
131#define IPL_SIDE_RIGHT (1<<IPL_SIDE_RIGHT_INDEX)
132#define IPL_SIDE_ALL (IPL_SIDE_RIGHT|IPL_SIDE_TOP|IPL_SIDE_LEFT|IPL_SIDE_BOTTOM)
134#define IPL_DEPTH_MASK 0x7FFFFFFF
136#define IPL_IMAGE_HEADER 1
137#define IPL_IMAGE_DATA 2
138#define IPL_IMAGE_ROI 4
139#define IPL_IMAGE_TILE 8
140#define IPL_IMAGE_MASK 16
141#define IPL_IMAGE_ALL (IPL_IMAGE_HEADER|IPL_IMAGE_DATA|\
142 IPL_IMAGE_TILE|IPL_IMAGE_ROI|IPL_IMAGE_MASK)
143#define IPL_IMAGE_ALL_WITHOUT_MASK (IPL_IMAGE_HEADER|IPL_IMAGE_DATA|\
144 IPL_IMAGE_TILE|IPL_IMAGE_ROI)
146#define YARP_IMAGE_ALIGN 8
void iplDeallocateHeader(MiniIplImage *image)
#define IPLAPIIMPL(type, name, arg)
Definition for functions implemented within YARP_sig.
unsigned long long uint64
MiniIplImage * iplCreateImageHeader(int nChannels, int depth, int origin, int align, int width, int height)
void iplAllocateImage(MiniIplImage *image)
struct _IplTileInfo IplTileInfo
struct _IplImage MiniIplImage
void iplDeallocateImage(MiniIplImage *image)
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