You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been sincerely trying to implement this code for windows and have run into a few challenges. I'm not sure what the correct fix is for this and I would greatly appreciate any help. (I try to provide line numbers but they may be off for my minor modification codes)
When running the program, I recieve a Mat out of range-like error stemming from this line of code (around line 356 in contour2ucm.cpp) for (size_t j = 0; j < labels.cols; j++) labels.at<int>(labels.rows - 1, j - 1) = labels.at<int>(labels.rows - 1, j - 2);
I'm not totally sure about what is exactly going on here, but I'm quite certain that the Mat Labels does not have a point at (x, -2). I can bypass the error change the for statement to: for (size_t j = 2; j < labels.cols; j++)
Is this the right implementation? Do you have any suggestions for the correct fix to this?
If I bypass the error the program continues to run until it is held up in the ucm_mean_pb.cpp file at around line 300: (*R[c].boundary.begin()).cc_neigh;
my debugger gives the error: list iterator not dereferencable. I have no idea how to bypass this or what the correct implementation is.
Thank you for putting this together! Let me know if I can provide more information.
The text was updated successfully, but these errors were encountered:
Hi there!
I've been sincerely trying to implement this code for windows and have run into a few challenges. I'm not sure what the correct fix is for this and I would greatly appreciate any help. (I try to provide line numbers but they may be off for my minor modification codes)
When running the program, I recieve a Mat out of range-like error stemming from this line of code (around line 356 in contour2ucm.cpp)
for (size_t j = 0; j < labels.cols; j++) labels.at<int>(labels.rows - 1, j - 1) = labels.at<int>(labels.rows - 1, j - 2);
I'm not totally sure about what is exactly going on here, but I'm quite certain that the Mat Labels does not have a point at (x, -2). I can bypass the error change the for statement to:
for (size_t j = 2; j < labels.cols; j++)
Is this the right implementation? Do you have any suggestions for the correct fix to this?
If I bypass the error the program continues to run until it is held up in the ucm_mean_pb.cpp file at around line 300:
(*R[c].boundary.begin()).cc_neigh;
my debugger gives the error: list iterator not dereferencable. I have no idea how to bypass this or what the correct implementation is.
Thank you for putting this together! Let me know if I can provide more information.
The text was updated successfully, but these errors were encountered: