Public Types | |
enum | { NLEVELS_MAX = 10 } |
Public Methods | |
CMotion2DPyramid () | |
CMotion2DPyramid (const CMotion2DPyramid &pyramid) | |
~CMotion2DPyramid () | |
TPyramidError | allocate (int nrows, int ncols, int nlevels) |
TPyramidError | build (const unsigned char *image) |
TPyramidError | build (const unsigned char *image, int nrows, int ncols, int nlevels) |
TPyramidError | build (const short *image) |
TPyramidError | build (const short *image, int nrows, int ncols, int nlevels) |
void | destroy () |
int | getNumberOfLevels () const |
TPyramidError | getNumberOfRows (int &rows, int level=0) const |
TPyramidError | getNumberOfCols (int &ncols, int level=0) const |
float * | getRowsSpatialGradientDataAddress (TPyramidError &error, int level=0) |
float * | getColsSpatialGradientDataAddress (TPyramidError &error, int level=0) |
short * | getGaussianImageDataAddress (TPyramidError &error, int level=0) |
CMotion2DPyramid & | exchange (CMotion2DPyramid &pyramid) |
The CMotion2DPyramid class provides the Gaussian pyramid and spatial gradient pyramids for an image .
|
|
|
Constructor. |
|
Copy Constructor. |
|
Destructor. |
|
Allocate memory to construct a low-pass Gaussian pyramid and spatial gradient pyramids of an image . The number of levels to built in a pyramid is given by nlevels. The coarsest pyramid level is . The finest level is 0. At this level, images has a size of [nrows, ncols]. From level to the number of rows and columns are divided by 2. To construct the pyramids you have to use build(const unsigned char *) Return an error if the memory allocation can not be done.
|
|
Allocate the memory by calling allocate() and build a low-pass Gaussian image pyramid and spatial image gradient pyramids based on image which dimension is given by nrows and ncols. The number of levels to construct is given by nlevels. Return an error if the pyramid construction can not be done.
|
|
Build a low-pass Gaussian image pyramid and spatial image gradient pyramids based on image .
|
|
Allocate the memory by calling allocate() and build a low-pass Gaussian image pyramid and spatial image gradient pyramids based on image which dimension is given by nrows and ncols. The number of levels to construct is given by nlevels. Return an error if the pyramid construction can not be done.
|
|
Build a low-pass Gaussian image pyramid and spatial image gradient pyramids based on image .
|
|
Delete the space memory associate to the image pyramids.
|
|
Reaffect the pointer of the pyramids in order that the content of the pyramids are exchanged.
|
|
Return the address of the table containing the spatial gradient under the column axes for the specified pyramid level . The size of the table containing these data is given by the product getNumberOfRows(level) * getNumberOfCols(level). Different error messages could be returned.
|
|
Return the address of the table containing the low-pass Gaussian image for the specified pyramid level . The size of the table containing these data is given by the product getNumberOfRows(level) * getNumberOfCols(level). Different error messages could be returned.
|
|
Get the number of columns for the specified level in the pyramid. The floor level is referenced by the number zero. Different error messages could be returned.
|
|
Return the number of levels in a pyramid. |
|
Get the number of rows for the specified level in the pyramid. The floor level is referenced by the number zero. Different error messages could be returned.
|
|
Return the address of the table containing the spatial gradient under the row axes for the specified pyramid level . The size of the table containing these data is given by the product getNumberOfRows(level) * getNumberOfCols(level). Different error messages could be returned.
|