|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
20 #ifndef YARP_CVTYPES_H_
21 #define YARP_CVTYPES_H_
34 #if defined _MSC_VER || defined __BORLANDC__
35 typedef __int64
int64;
36 typedef unsigned __int64
uint64;
59 #define IPL_DEPTH_SIGN 0x80000000
61 #define IPL_DEPTH_1U 1
62 #define IPL_DEPTH_8U 8
63 #define IPL_DEPTH_16U 16
64 #define IPL_DEPTH_32F 32
66 #define IPL_DEPTH_8S (int)(IPL_DEPTH_SIGN| 8)
67 #define IPL_DEPTH_16S (int)(IPL_DEPTH_SIGN|16)
68 #define IPL_DEPTH_32S (int)(IPL_DEPTH_SIGN|32)
70 #define IPL_DATA_ORDER_PIXEL 0
71 #define IPL_DATA_ORDER_PLANE 1
73 #define IPL_ORIGIN_TL 0
74 #define IPL_ORIGIN_BL 1
76 #define IPL_ALIGN_4BYTES 4
77 #define IPL_ALIGN_8BYTES 8
78 #define IPL_ALIGN_16BYTES 16
79 #define IPL_ALIGN_32BYTES 32
81 #define IPL_ALIGN_DWORD IPL_ALIGN_4BYTES
82 #define IPL_ALIGN_QWORD IPL_ALIGN_8BYTES
150 #define IPL_IMAGE_HEADER 1
151 #define IPL_IMAGE_DATA 2
152 #define IPL_IMAGE_ROI 4
154 #ifndef IPL_IMAGE_MAGIC_VAL
155 #define IPL_IMAGE_MAGIC_VAL ((int)sizeof(IplImage))
159 #ifndef IPL_IMAGE_FILE_MAGIC_VAL
160 #define IPL_IMAGE_FILE_MAGIC_VAL 112
163 #ifndef IPL_DEPTH_64F
164 #define IPL_DEPTH_64F 64
184 #define IPLAPIIMPL(type,name,arg) extern type name arg
189 int anchorX,
int anchorY,
190 int* values,
int nShiftR));
194 int anchorX,
int anchorY,
float* values));
198 int* anchorX,
int* anchorY,
int** values,
int *nShiftR));
203 int* anchorX,
int* anchorY,
float** values));
236 (
int nChannels,
int alphaChannel,
int depth,
237 char* colorModel,
char* channelSeq,
int dataOrder,
238 int origin,
int align,
277 int width,
int height ));
287 #define IPL_BORDER_CONSTANT 0
289 #define IPL_SIDE_TOP_INDEX 0
290 #define IPL_SIDE_BOTTOM_INDEX 1
291 #define IPL_SIDE_LEFT_INDEX 2
292 #define IPL_SIDE_RIGHT_INDEX 3
293 #define IPL_SIDE_TOP (1<<IPL_SIDE_TOP_INDEX)
294 #define IPL_SIDE_BOTTOM (1<<IPL_SIDE_BOTTOM_INDEX)
295 #define IPL_SIDE_LEFT (1<<IPL_SIDE_LEFT_INDEX)
296 #define IPL_SIDE_RIGHT (1<<IPL_SIDE_RIGHT_INDEX)
297 #define IPL_SIDE_ALL (IPL_SIDE_RIGHT|IPL_SIDE_TOP|IPL_SIDE_LEFT|IPL_SIDE_BOTTOM)
299 #define IPL_DEPTH_MASK 0x7FFFFFFF
301 #define IPL_IMAGE_HEADER 1
302 #define IPL_IMAGE_DATA 2
303 #define IPL_IMAGE_ROI 4
304 #define IPL_IMAGE_TILE 8
305 #define IPL_IMAGE_MASK 16
306 #define IPL_IMAGE_ALL (IPL_IMAGE_HEADER|IPL_IMAGE_DATA|\
307 IPL_IMAGE_TILE|IPL_IMAGE_ROI|IPL_IMAGE_MASK)
308 #define IPL_IMAGE_ALL_WITHOUT_MASK (IPL_IMAGE_HEADER|IPL_IMAGE_DATA|\
309 IPL_IMAGE_TILE|IPL_IMAGE_ROI)
311 #define IPL_INTER_NN 0
312 #define IPL_INTER_LINEAR 1
313 #define IPL_INTER_CUBIC 2
314 #define IPL_INTER_SUPER 3
315 #define IPL_SMOOTH_EDGE 16
317 #define YARP_IMAGE_ALIGN 8
void iplAbs(IplImage *srcImage, IplImage *dstImage)
void * imageId
must be NULL
void iplRGB2HSV(IplImage *rgbImage, IplImage *hsvImage)
struct _IplTileInfo * tileInfo
must be null
char channelSeq[4]
ignored by OpenCV
int alphaChannel
ignored by OpenCV
void iplSet(IplImage *image, int fillValue)
struct _IplImage * maskROI
must be NULL
unsigned long long uint64
void iplDeleteConvKernelFP(IplConvKernelFP *kernel)
void iplConvolveSep2D(IplImage *srcImage, IplImage *dstImage, IplConvKernel *xKernel, IplConvKernel *yKernel)
char * imageDataOrigin
pointer to very origin of image data (not necessarily aligned) - needed for correct deallocation
void iplThreshold(IplImage *srcImage, IplImage *dstImage, int threshold)
void iplAllocateImageFP(IplImage *image, int doFill, float fillValue)
void iplAllocateImage(IplImage *image, int doFill, int fillValue)
char * imageData
pointer to aligned image data
int BorderConst[4]
ignored by OpenCV
struct _IplImage IplImage
struct _IplROI * roi
image ROI.
void iplConvolve2D(IplImage *srcImage, IplImage *dstImage, IplConvKernel **kernel, int nKernels, int combineMethod)
void iplConvolveSep2DFP(IplImage *srcImage, IplImage *dstImage, IplConvKernelFP *xKernel, IplConvKernelFP *yKernel)
int nChannels
Most of OpenCV functions support 1,2,3 or 4 channels.
void iplSubtract(IplImage *srcImageA, IplImage *srcImageB, IplImage *dstImage)
void iplAdd(IplImage *srcImageA, IplImage *srcImageB, IplImage *dstImage)
int BorderMode[4]
ignored by OpenCV
void iplMultiplySFP(IplImage *srcImage, IplImage *dstImage, float value)
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 iplGetConvKernelFP(IplConvKernelFP *kernel, int *nCols, int *nRows, int *anchorX, int *anchorY, float **values)
IplImage * iplCloneImage(const IplImage *img)
void iplDeleteConvKernel(IplConvKernel *kernel)
void iplDeallocate(IplImage *image, int flag)
struct _IplTileInfo IplTileInfo
void iplXorS(IplImage *srcImage, IplImage *dstImage, unsigned int value)
struct _IplConvKernelFP IplConvKernelFP
void iplGetConvKernel(IplConvKernel *kernel, int *nCols, int *nRows, int *anchorX, int *anchorY, int **values, int *nShiftR)
char colorModel[4]
ignored by OpenCV
int imageSize
image data size in bytes (==image->height*image->widthStep in case of interleaved data)
void iplAddS(IplImage *srcImage, IplImage *dstImage, int value)
void iplCopy(IplImage *srcImage, IplImage *dstImage)
int _iplCalcPadding(int lineSize, int align)
Computes the ipl image padding.
#define IPLAPIIMPL(type, name, arg)
Definition for functions implemented within YARP_sig.
IplConvKernel * iplCreateConvKernel(int nCols, int nRows, int anchorX, int anchorY, int *values, int nShiftR)
WARNING: most of this is implemented for PAD_BYTES == 0.
int dataOrder
0 - interleaved color channels, 1 - separate color channels.
int width
image width in pixels
void iplSubtractS(IplImage *srcImage, IplImage *dstImage, int value, bool flip)
int nSize
sizeof(IplImage)
void iplSetFP(IplImage *image, float fillValue)
void iplDeallocateImage(IplImage *image)
IplROI * iplCreateROI(int coi, int xOffset, int yOffset, int width, int height)
int depth
pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, IPL_DEPTH_32S, IPL_DEPTH_32F and IPL_...
struct _IplConvKernel IplConvKernel
void iplDeallocateHeader(IplImage *image)
IplConvKernelFP * iplCreateConvKernelFP(int nCols, int nRows, int anchorX, int anchorY, float *values)
void iplSetBorderMode(IplImage *src, int mode, int border, int constVal)
void iplHSV2RGB(IplImage *hsvImage, IplImage *rgbImage)
void iplColorToGray(IplImage *srcImage, IplImage *dstImage)
int height
image height in pixels
int widthStep
size of aligned image row in bytes
int origin
0 - top-left origin, 1 - bottom-left origin (Windows bitmaps style)
int align
Alignment of image rows (4 or 8).
void iplConvolve2DFP(IplImage *srcImage, IplImage *dstImage, IplConvKernelFP **kernel, int nKernels, int combineMethod)
int coi
0 - no COI (all channels are selected), 1 - 0th channel is selected ...