#include <cassert>
#include <cstdlib>
Go to the source code of this file.
Classes | |
struct | _IplImage |
struct | _IplROI |
struct | _IplConvKernel |
struct | _IplConvKernelFP |
Typedefs | |
typedef long long | int64 |
typedef unsigned long long | uint64 |
typedef unsigned char | uchar |
typedef struct _IplImage | IplImage |
typedef struct _IplTileInfo | IplTileInfo |
typedef struct _IplROI | IplROI |
typedef struct _IplConvKernel | IplConvKernel |
typedef struct _IplConvKernelFP | IplConvKernelFP |
Functions | |
int | _iplCalcPadding (int lineSize, int align) |
Computes the ipl image padding. More... | |
IplConvKernel * | iplCreateConvKernel (int nCols, int nRows, int anchorX, int anchorY, int *values, int nShiftR) |
WARNING: most of this is implemented for PAD_BYTES == 0. More... | |
IplConvKernelFP * | iplCreateConvKernelFP (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) |
void | iplGetConvKernelFP (IplConvKernelFP *kernel, int *nCols, int *nRows, int *anchorX, int *anchorY, float **values) |
void | iplDeleteConvKernel (IplConvKernel *kernel) |
void | iplDeleteConvKernelFP (IplConvKernelFP *kernel) |
void | iplConvolve2D (IplImage *srcImage, IplImage *dstImage, IplConvKernel **kernel, int nKernels, int combineMethod) |
void | iplConvolve2DFP (IplImage *srcImage, IplImage *dstImage, IplConvKernelFP **kernel, int nKernels, int combineMethod) |
void | iplConvolveSep2DFP (IplImage *srcImage, IplImage *dstImage, IplConvKernelFP *xKernel, IplConvKernelFP *yKernel) |
void | iplConvolveSep2D (IplImage *srcImage, IplImage *dstImage, IplConvKernel *xKernel, IplConvKernel *yKernel) |
void | iplAllocateImage (IplImage *image, int doFill, int fillValue) |
void | iplAllocateImageFP (IplImage *image, int doFill, float fillValue) |
void | iplDeallocateImage (IplImage *image) |
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) |
IplImage * | iplCloneImage (const IplImage *img) |
void | iplCopy (IplImage *srcImage, IplImage *dstImage) |
void | iplDeallocateHeader (IplImage *image) |
void | iplDeallocate (IplImage *image, int flag) |
void | iplSetBorderMode (IplImage *src, int mode, int border, int constVal) |
void | iplSet (IplImage *image, int fillValue) |
void | iplSetFP (IplImage *image, float fillValue) |
void | iplAddS (IplImage *srcImage, IplImage *dstImage, int value) |
void | iplAdd (IplImage *srcImageA, IplImage *srcImageB, IplImage *dstImage) |
void | iplSubtract (IplImage *srcImageA, IplImage *srcImageB, IplImage *dstImage) |
void | iplSubtractS (IplImage *srcImage, IplImage *dstImage, int value, bool flip) |
void | iplMultiplySFP (IplImage *srcImage, IplImage *dstImage, float value) |
void | iplAbs (IplImage *srcImage, IplImage *dstImage) |
void | iplThreshold (IplImage *srcImage, IplImage *dstImage, int threshold) |
void | iplColorToGray (IplImage *srcImage, IplImage *dstImage) |
IplROI * | iplCreateROI (int coi, int xOffset, int yOffset, int width, int height) |
void | iplRGB2HSV (IplImage *rgbImage, IplImage *hsvImage) |
void | iplHSV2RGB (IplImage *hsvImage, IplImage *rgbImage) |
void | iplXorS (IplImage *srcImage, IplImage *dstImage, unsigned int value) |
#define HAVE_IPL |
Definition at line 27 of file IplImage.h.
#define IPL_ALIGN_16BYTES 16 |
Definition at line 78 of file IplImage.h.
#define IPL_ALIGN_32BYTES 32 |
Definition at line 79 of file IplImage.h.
#define IPL_ALIGN_4BYTES 4 |
Definition at line 76 of file IplImage.h.
#define IPL_ALIGN_8BYTES 8 |
Definition at line 77 of file IplImage.h.
#define IPL_ALIGN_DWORD IPL_ALIGN_4BYTES |
Definition at line 81 of file IplImage.h.
#define IPL_ALIGN_QWORD IPL_ALIGN_8BYTES |
Definition at line 82 of file IplImage.h.
#define IPL_BORDER_CONSTANT 0 |
Definition at line 286 of file IplImage.h.
#define IPL_DATA_ORDER_PIXEL 0 |
Definition at line 70 of file IplImage.h.
#define IPL_DATA_ORDER_PLANE 1 |
Definition at line 71 of file IplImage.h.
#define IPL_DEPTH_16S (int)(IPL_DEPTH_SIGN|16) |
Definition at line 67 of file IplImage.h.
#define IPL_DEPTH_16U 16 |
Definition at line 63 of file IplImage.h.
#define IPL_DEPTH_1U 1 |
Definition at line 61 of file IplImage.h.
#define IPL_DEPTH_32F 32 |
Definition at line 64 of file IplImage.h.
#define IPL_DEPTH_32S (int)(IPL_DEPTH_SIGN|32) |
Definition at line 68 of file IplImage.h.
#define IPL_DEPTH_64F |
Definition at line 164 of file IplImage.h.
#define IPL_DEPTH_8S (int)(IPL_DEPTH_SIGN| 8) |
Definition at line 66 of file IplImage.h.
#define IPL_DEPTH_8U 8 |
Definition at line 62 of file IplImage.h.
#define IPL_DEPTH_MASK 0x7FFFFFFF |
Definition at line 298 of file IplImage.h.
#define IPL_DEPTH_SIGN 0x80000000 |
Definition at line 59 of file IplImage.h.
#define IPL_IMAGE_ALL |
Definition at line 305 of file IplImage.h.
#define IPL_IMAGE_ALL_WITHOUT_MASK |
Definition at line 307 of file IplImage.h.
#define IPL_IMAGE_DATA 2 |
Definition at line 301 of file IplImage.h.
#define IPL_IMAGE_DATA 2 |
Definition at line 301 of file IplImage.h.
#define IPL_IMAGE_FILE_MAGIC_VAL 112 |
Definition at line 160 of file IplImage.h.
#define IPL_IMAGE_HEADER 1 |
Definition at line 300 of file IplImage.h.
#define IPL_IMAGE_HEADER 1 |
Definition at line 300 of file IplImage.h.
#define IPL_IMAGE_MAGIC_VAL ((int)sizeof(IplImage)) |
Definition at line 155 of file IplImage.h.
#define IPL_IMAGE_MASK 16 |
Definition at line 304 of file IplImage.h.
#define IPL_IMAGE_ROI 4 |
Definition at line 302 of file IplImage.h.
#define IPL_IMAGE_ROI 4 |
Definition at line 302 of file IplImage.h.
#define IPL_IMAGE_TILE 8 |
Definition at line 303 of file IplImage.h.
#define IPL_INTER_CUBIC 2 |
Definition at line 312 of file IplImage.h.
#define IPL_INTER_LINEAR 1 |
Definition at line 311 of file IplImage.h.
#define IPL_INTER_NN 0 |
Definition at line 310 of file IplImage.h.
#define IPL_INTER_SUPER 3 |
Definition at line 313 of file IplImage.h.
#define IPL_ORIGIN_BL 1 |
Definition at line 74 of file IplImage.h.
#define IPL_ORIGIN_TL 0 |
Definition at line 73 of file IplImage.h.
#define IPL_SIDE_ALL (IPL_SIDE_RIGHT|IPL_SIDE_TOP|IPL_SIDE_LEFT|IPL_SIDE_BOTTOM) |
Definition at line 296 of file IplImage.h.
#define IPL_SIDE_BOTTOM (1<<IPL_SIDE_BOTTOM_INDEX) |
Definition at line 293 of file IplImage.h.
#define IPL_SIDE_BOTTOM_INDEX 1 |
Definition at line 289 of file IplImage.h.
#define IPL_SIDE_LEFT (1<<IPL_SIDE_LEFT_INDEX) |
Definition at line 294 of file IplImage.h.
#define IPL_SIDE_LEFT_INDEX 2 |
Definition at line 290 of file IplImage.h.
#define IPL_SIDE_RIGHT (1<<IPL_SIDE_RIGHT_INDEX) |
Definition at line 295 of file IplImage.h.
#define IPL_SIDE_RIGHT_INDEX 3 |
Definition at line 291 of file IplImage.h.
#define IPL_SIDE_TOP (1<<IPL_SIDE_TOP_INDEX) |
Definition at line 292 of file IplImage.h.
#define IPL_SIDE_TOP_INDEX 0 |
Definition at line 288 of file IplImage.h.
#define IPL_SMOOTH_EDGE 16 |
Definition at line 314 of file IplImage.h.
#define IPLAPIIMPL | ( | type, | |
name, | |||
arg | |||
) | extern type name arg |
Definition for functions implemented within YARP_sig.
Definition at line 183 of file IplImage.h.
#define YARP_IMAGE_ALIGN 8 |
Definition at line 316 of file IplImage.h.
typedef long long int64 |
Definition at line 38 of file IplImage.h.
typedef struct _IplConvKernel IplConvKernel |
typedef struct _IplConvKernelFP IplConvKernelFP |
typedef struct _IplTileInfo IplTileInfo |
Definition at line 43 of file IplImage.h.
typedef unsigned char uchar |
Definition at line 43 of file IplImage.h.
typedef unsigned long long uint64 |
Definition at line 39 of file IplImage.h.
|
inline |
Computes the ipl image padding.
lineSize | the total length in bytes of the row of the image. |
align | is the alignment bytes (e.g. typically 8). |
Definition at line 1466 of file IplImage.cpp.
Definition at line 1235 of file IplImage.cpp.
Definition at line 1010 of file IplImage.cpp.
Definition at line 952 of file IplImage.cpp.
void iplAllocateImage | ( | IplImage * | image, |
int | doFill, | ||
int | fillValue | ||
) |
yAssert(image->widthStep == image->width * (image->depth & IPL_DEPTH_MASK) / 8 * image->nChannels);
Definition at line 661 of file IplImage.cpp.
void iplAllocateImageFP | ( | IplImage * | image, |
int | doFill, | ||
float | fillValue | ||
) |
Definition at line 694 of file IplImage.cpp.
Definition at line 848 of file IplImage.cpp.
Definition at line 1312 of file IplImage.cpp.
void iplConvolve2D | ( | IplImage * | srcImage, |
IplImage * | dstImage, | ||
IplConvKernel ** | kernel, | ||
int | nKernels, | ||
int | combineMethod | ||
) |
__tmp_res = new char[dstImage->imageSize];
delete[] __tmp_res;
__tmp_res = new char[dstImage->imageSize];
Definition at line 172 of file IplImage.cpp.
void iplConvolve2DFP | ( | IplImage * | srcImage, |
IplImage * | dstImage, | ||
IplConvKernelFP ** | kernel, | ||
int | nKernels, | ||
int | combineMethod | ||
) |
__tmp_res = new float[dstImage->imageSize / sizeof(float)];
delete[] __tmp_res;
__tmp_res = new float[dstImage->imageSize / sizeof(float)];
Definition at line 286 of file IplImage.cpp.
void iplConvolveSep2D | ( | IplImage * | srcImage, |
IplImage * | dstImage, | ||
IplConvKernel * | xKernel, | ||
IplConvKernel * | yKernel | ||
) |
__tmp_res = new char[dstImage->imageSize];
delete[] __tmp_res;
__tmp_res = new char[dstImage->imageSize];
Definition at line 497 of file IplImage.cpp.
void iplConvolveSep2DFP | ( | IplImage * | srcImage, |
IplImage * | dstImage, | ||
IplConvKernelFP * | xKernel, | ||
IplConvKernelFP * | yKernel | ||
) |
__tmp_res = new float[dstImage->imageSize / sizeof(float)];
delete[] __tmp_res;
__tmp_res = new float[dstImage->imageSize / sizeof(float)];
Definition at line 389 of file IplImage.cpp.
Definition at line 879 of file IplImage.cpp.
IplConvKernel* iplCreateConvKernel | ( | int | nCols, |
int | nRows, | ||
int | anchorX, | ||
int | anchorY, | ||
int * | values, | ||
int | nShiftR | ||
) |
WARNING: most of this is implemented for PAD_BYTES == 0.
fixing the functions for != 0 is trivial though.
LATER: externd for PAD_BYTES != 0. NOT TESTED YET!
Definition at line 80 of file IplImage.cpp.
IplConvKernelFP* iplCreateConvKernelFP | ( | int | nCols, |
int | nRows, | ||
int | anchorX, | ||
int | anchorY, | ||
float * | values | ||
) |
Definition at line 108 of file IplImage.cpp.
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 | ||
) |
the 8 bytes stuff.
Definition at line 786 of file IplImage.cpp.
IplROI* iplCreateROI | ( | int | coi, |
int | xOffset, | ||
int | yOffset, | ||
int | width, | ||
int | height | ||
) |
Definition at line 1337 of file IplImage.cpp.
void iplDeallocate | ( | IplImage * | image, |
int | flag | ||
) |
Definition at line 900 of file IplImage.cpp.
void iplDeallocateHeader | ( | IplImage * | image | ) |
delete[] image->imageData;
Definition at line 885 of file IplImage.cpp.
void iplDeallocateImage | ( | IplImage * | image | ) |
delete[] image->imageData;
Definition at line 731 of file IplImage.cpp.
void iplDeleteConvKernel | ( | IplConvKernel * | kernel | ) |
Definition at line 151 of file IplImage.cpp.
void iplDeleteConvKernelFP | ( | IplConvKernelFP * | kernel | ) |
Definition at line 160 of file IplImage.cpp.
void iplGetConvKernel | ( | IplConvKernel * | kernel, |
int * | nCols, | ||
int * | nRows, | ||
int * | anchorX, | ||
int * | anchorY, | ||
int ** | values, | ||
int * | nShiftR | ||
) |
Definition at line 125 of file IplImage.cpp.
void iplGetConvKernelFP | ( | IplConvKernelFP * | kernel, |
int * | nCols, | ||
int * | nRows, | ||
int * | anchorX, | ||
int * | anchorY, | ||
float ** | values | ||
) |
Definition at line 139 of file IplImage.cpp.
Definition at line 1451 of file IplImage.cpp.
Definition at line 1220 of file IplImage.cpp.
Definition at line 1353 of file IplImage.cpp.
void iplSet | ( | IplImage * | image, |
int | fillValue | ||
) |
Definition at line 933 of file IplImage.cpp.
void iplSetBorderMode | ( | IplImage * | src, |
int | mode, | ||
int | border, | ||
int | constVal | ||
) |
Definition at line 922 of file IplImage.cpp.
void iplSetFP | ( | IplImage * | image, |
float | fillValue | ||
) |
Definition at line 940 of file IplImage.cpp.
Definition at line 1084 of file IplImage.cpp.
Definition at line 1157 of file IplImage.cpp.
Definition at line 1268 of file IplImage.cpp.
Definition at line 1458 of file IplImage.cpp.