Public Methods | |
CMotion2DWarping () | |
~CMotion2DWarping () | |
bool | initBackWarp (int dst_nrows, int dst_ncols, int dst_row_offset, int dst_col_offset) |
bool | backWarp (unsigned char *src, int src_nrows, int src_ncols, unsigned char *dst, CMotion2DModel model) |
bool | backWarp (short *src, int src_nrows, int src_ncols, short *dst, CMotion2DModel model) |
void | getBackWarpPosition (int row, int col, float &d_row, float &d_col) |
bool | warp (unsigned char *src, unsigned char *dst, int nrows, int ncols, CMotion2DModel model) |
Motion2D.cpp, and Warping.cpp.
|
Constructor. |
|
Destructor. Frees the allocated memory.
|
|
Generate a backwarped image in dst from the original image src, using the motion model model. The size of the images to backwarped is given by [src_nrows, src_ncols ]. The size of the backwarped image is to set by calling initBackWarp(). The 2D parametric motion model to use to backwarp the image src is specified by model.
|
|
Generate a backwarped image in dst from the original image src, using the motion model model. The size of the images to backwarped is given by [src_nrows, src_ncols ]. The size of the backwarped image is to set by calling initBackWarp(). The 2D parametric motion model to use to backwarp the image src is specified by model.
|
|
Gives the cumulated displacements of a pixel which position is defined by row, col, with respect to the reference image specified by initBackWarp(). The cumulated displacement along the row axis is stored in d_row, along the column axis in d_cols.
|
|
This function allocates the memory necessary to store the combination of the instantaneous motion displacements between two successive images and defines the reference image which respect to the motion compensation is performed. The size of the images to compensate is given by [src_nrows, src_ncols]. The size of the motion compensated image computed by warp() or backWarp() is given by [dst_nrows, dst_ncols]. His size can be greater than the image size. The parameters dst_row_offset and dst_col_offset, specify the position of the reference image in the motion compensated image. The considered origin is the upper-left corner of the source image. return true if the warping initialization succeed, false otherwise.
|
|
Warp the image src into dst using the motion model model. The parameter nrows refers to the number of lines in the images. ncols indicates the number of columns.
|