Exception ERROR in ColorSpaces: interactiveColorDetect.cpp#780
Open
PrimusSPS wants to merge 1 commit intospmallick:masterfrom
Open
Exception ERROR in ColorSpaces: interactiveColorDetect.cpp#780PrimusSPS wants to merge 1 commit intospmallick:masterfrom
PrimusSPS wants to merge 1 commit intospmallick:masterfrom
Conversation
Current code throw an exception error when cursor is moved in the "placeholder" area. It can be fixed by updating the if condition on line 12: FROM: LINE 12: if( event == EVENT_MOUSEMOVE) TO: LINE 12: if( event == EVENT_MOUSEMOVE and (x<img.rows and y<img.cols))
Owner
|
Thanks for the fix attempt. The reported crash is real, but I don’t think this condition is correct yet. In the mouse callback,
which is swapped. It only appears to work here because the image is resized to Could you please update it to something like: if (event == EVENT_MOUSEMOVE && x >= 0 && x < img.cols && y >= 0 && y < img.rows) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current code throw an exception error when cursor is moved in the "placeholder" area. It can be fixed by updating the if condition on line 12:
FROM:
LINE 12:
if( event == EVENT_MOUSEMOVE)TO:
LINE 12:
if( event == EVENT_MOUSEMOVE and (x<img.rows and y<img.cols))