mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Disable phase corr if not used.
This commit is contained in:
parent
7cb0133bc9
commit
1935c34f4f
@ -139,6 +139,7 @@ void imlib_logpolar(image_t *img, bool linear, bool reverse)
|
||||
}
|
||||
#endif //defined(IMLIB_ENABLE_LOGPOLAR) || defined(IMLIB_ENABLE_LINPOLAR)
|
||||
|
||||
#ifdef IMLIB_ENABLE_FIND_DISPLACEMENT
|
||||
// Note that both ROI widths and heights must be equal.
|
||||
void imlib_phasecorrelate(image_t *img0, image_t *img1, rectangle_t *roi0, rectangle_t *roi1, bool logpolar, bool fix_rotation_scale,
|
||||
float *x_translation, float *y_translation, float *rotation, float *scale, float *response)
|
||||
@ -483,3 +484,4 @@ void imlib_phasecorrelate(image_t *img0, image_t *img1, rectangle_t *roi0, recta
|
||||
|
||||
if ((!logpolar) && fix_rotation_scale) fb_free();
|
||||
}
|
||||
#endif //IMLIB_ENABLE_FIND_DISPLACEMENT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user