-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi, I have this code running on KITTI 03, but I see an error and crash. This line
inline float GetPixelValue(const cv::Mat &img, float x, float y) {
// boundary check
if (x < 0) x = 0;
if (y < 0) y = 0;
if (x >= img.cols) x = img.cols - 1;
if (y >= img.rows) y = img.rows - 1;
// bi-linear interpolate
uchar *data = &img.data[int(y) * img.step + int(x)];
float xx = x - floor(x);
float yy = y - floor(y);
return float( //CRASH HERE
(1 - xx) * (1 - yy) * data[0] +
xx * (1 - yy) * data[1] +
(1 - xx) * yy * data[img.step] +
xx * yy * data[img.step + 1]
);
}
On a different frame every time, so it seems random, or a thread issue. What might be causing this?
Also, it looks like g20 is used in place of LEGO, is that correct?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels