This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

VLIB VLIB_goodFeaturestoTrack error

VLIB_goodFeaturestoTrack(const uint16_t im[restrict],
         uint8_t out[restrict],
         int32_t width,
         int32_t height,
         int16_t thresh,
         uint8_t patch,
         uint8_t qualitypar,
         int16_t topNfeatures,
         uint8_t mindist,
         uint16_t outTemp[],
         int32_t * restrict good_points_number,
         int16_t pixIndex[restrict],
         uint16_t internalBuf[restrict],
         int32_t ind[restrict]);

when I set the params width and height with 160 and 120, the result out is ok . But when I set width and height with 320 and 240, the out is wrong.

Why is it so?