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
147#define IPL_IMAGE_HEADER 1
148#define IPL_IMAGE_DATA 2
149#define IPL_IMAGE_ROI 4
151#ifndef IPL_IMAGE_MAGIC_VAL
152#define IPL_IMAGE_MAGIC_VAL ((int)sizeof(IplImage))
156#ifndef IPL_IMAGE_FILE_MAGIC_VAL
157#define IPL_IMAGE_FILE_MAGIC_VAL 112
161#define IPL_DEPTH_64F 64
181#define IPLAPIIMPL(type,name,arg) extern type name arg
186 int anchorX,
int anchorY,
187 int* values,
int nShiftR));
191 int anchorX,
int anchorY,
float* values));
195 int* anchorX,
int* anchorY,
int** values,
int *nShiftR));
200 int* anchorX,
int* anchorY,
float** values));
233 (
int nChannels,
int alphaChannel,
int depth,
234 char* colorModel,
char* channelSeq,
int dataOrder,
235 int origin,
int align,
274 int width,
int height ));
284#define IPL_BORDER_CONSTANT 0
286#define IPL_SIDE_TOP_INDEX 0
287#define IPL_SIDE_BOTTOM_INDEX 1
288#define IPL_SIDE_LEFT_INDEX 2
289#define IPL_SIDE_RIGHT_INDEX 3
290#define IPL_SIDE_TOP (1<<IPL_SIDE_TOP_INDEX)
291#define IPL_SIDE_BOTTOM (1<<IPL_SIDE_BOTTOM_INDEX)
292#define IPL_SIDE_LEFT (1<<IPL_SIDE_LEFT_INDEX)
293#define IPL_SIDE_RIGHT (1<<IPL_SIDE_RIGHT_INDEX)
294#define IPL_SIDE_ALL (IPL_SIDE_RIGHT|IPL_SIDE_TOP|IPL_SIDE_LEFT|IPL_SIDE_BOTTOM)
296#define IPL_DEPTH_MASK 0x7FFFFFFF
298#define IPL_IMAGE_HEADER 1
299#define IPL_IMAGE_DATA 2
300#define IPL_IMAGE_ROI 4
301#define IPL_IMAGE_TILE 8
302#define IPL_IMAGE_MASK 16
303#define IPL_IMAGE_ALL (IPL_IMAGE_HEADER|IPL_IMAGE_DATA|\
304 IPL_IMAGE_TILE|IPL_IMAGE_ROI|IPL_IMAGE_MASK)
305#define IPL_IMAGE_ALL_WITHOUT_MASK (IPL_IMAGE_HEADER|IPL_IMAGE_DATA|\
306 IPL_IMAGE_TILE|IPL_IMAGE_ROI)
308#define IPL_INTER_NN 0
309#define IPL_INTER_LINEAR 1
310#define IPL_INTER_CUBIC 2
311#define IPL_INTER_SUPER 3
312#define IPL_SMOOTH_EDGE 16
314#define YARP_IMAGE_ALIGN 8
#define IPLAPIIMPL(type, name, arg)
Definition for functions implemented within YARP_sig.
void iplSubtract(IplImage *srcImageA, IplImage *srcImageB, IplImage *dstImage)
void iplDeleteConvKernelFP(IplConvKernelFP *kernel)
int _iplCalcPadding(int lineSize, int align)
Computes the ipl image padding.
IplConvKernelFP * iplCreateConvKernelFP(int nCols, int nRows, int anchorX, int anchorY, float *values)
unsigned long long uint64
void iplCopy(IplImage *srcImage, IplImage *dstImage)
struct _IplConvKernel IplConvKernel
void iplHSV2RGB(IplImage *hsvImage, IplImage *rgbImage)
void iplDeleteConvKernel(IplConvKernel *kernel)
void iplDeallocateImage(IplImage *image)
void iplGetConvKernelFP(IplConvKernelFP *kernel, int *nCols, int *nRows, int *anchorX, int *anchorY, float **values)
void iplGetConvKernel(IplConvKernel *kernel, int *nCols, int *nRows, int *anchorX, int *anchorY, int **values, int *nShiftR)
IplConvKernel * iplCreateConvKernel(int nCols, int nRows, int anchorX, int anchorY, int *values, int nShiftR)
WARNING: most of this is implemented for PAD_BYTES == 0.
void iplDeallocateHeader(IplImage *image)
IplROI * iplCreateROI(int coi, int xOffset, int yOffset, int width, int height)
void iplSet(IplImage *image, int fillValue)
void iplConvolveSep2DFP(IplImage *srcImage, IplImage *dstImage, IplConvKernelFP *xKernel, IplConvKernelFP *yKernel)
void iplColorToGray(IplImage *srcImage, IplImage *dstImage)
void iplSubtractS(IplImage *srcImage, IplImage *dstImage, int value, bool flip)
struct _IplTileInfo IplTileInfo
void iplThreshold(IplImage *srcImage, IplImage *dstImage, int threshold)
IplImage * iplCreateImageHeader(int nChannels, int alphaChannel, int depth, char *colorModel, char *channelSeq, int dataOrder, int origin, int align, int width, int height, IplROI *roi, IplImage *maskROI, void *imageId, IplTileInfo *tileInfo)
void iplAbs(IplImage *srcImage, IplImage *dstImage)
struct _IplImage IplImage
void iplAllocateImageFP(IplImage *image, int doFill, float fillValue)
void iplConvolve2DFP(IplImage *srcImage, IplImage *dstImage, IplConvKernelFP **kernel, int nKernels, int combineMethod)
void iplSetBorderMode(IplImage *src, int mode, int border, int constVal)
void iplDeallocate(IplImage *image, int flag)
void iplConvolveSep2D(IplImage *srcImage, IplImage *dstImage, IplConvKernel *xKernel, IplConvKernel *yKernel)
IplImage * iplCloneImage(const IplImage *img)
void iplRGB2HSV(IplImage *rgbImage, IplImage *hsvImage)
void iplAddS(IplImage *srcImage, IplImage *dstImage, int value)
void iplAllocateImage(IplImage *image, int doFill, int fillValue)
void iplXorS(IplImage *srcImage, IplImage *dstImage, unsigned int value)
void iplMultiplySFP(IplImage *srcImage, IplImage *dstImage, float value)
void iplAdd(IplImage *srcImageA, IplImage *srcImageB, IplImage *dstImage)
struct _IplConvKernelFP IplConvKernelFP
void iplSetFP(IplImage *image, float fillValue)
void iplConvolve2D(IplImage *srcImage, IplImage *dstImage, IplConvKernel **kernel, int nKernels, int combineMethod)
int dataOrder
0 - interleaved color channels, 1 - separate color channels.
int BorderMode[4]
ignored by OpenCV
char * imageDataOrigin
pointer to very origin of image data (not necessarily aligned) - needed for correct deallocation
struct _IplTileInfo * tileInfo
must be null
struct _IplImage * maskROI
must be NULL
int nChannels
Most of OpenCV functions support 1,2,3 or 4 channels.
int BorderConst[4]
ignored by OpenCV
struct _IplROI * roi
image ROI.
int height
image height in pixels
int alphaChannel
ignored by OpenCV
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)
char colorModel[4]
ignored by OpenCV
void * imageId
must be NULL
int nSize
sizeof(IplImage)
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_...
char channelSeq[4]
ignored by OpenCV
int width
image width in pixels
int coi
0 - no COI (all channels are selected), 1 - 0th channel is selected ...