Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Implementation Issues #5

Open
dkunsberg opened this issue Sep 30, 2017 · 0 comments
Open

Windows Implementation Issues #5

dkunsberg opened this issue Sep 30, 2017 · 0 comments

Comments

@dkunsberg
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant