[OpenCV] Issue with SetTo Method in Mat Class. #1344
Answered
by
saudet
AlfuraydiO
asked this question in
Q&A
-
Hello, I am not sure if this is a technical issue or a functional one. I have an issue with SetTo method. output is always greyscaled not sure why.
This is my Code:
|
Beta Was this translation helpful? Give feedback.
Answered by
saudet
Apr 5, 2023
Replies: 1 comment 2 replies
-
On which line are you getting this error? If you're having issues with Mat.setTo(), did you try to call it more simply like this? output = output.setTo(new Mat(rng.uniform(0, 255), rng.uniform(0, 255), rng.uniform(0, 255), 255), mask); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
AlfuraydiO
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On which line are you getting this error?
If you're having issues with Mat.setTo(), did you try to call it more simply like this?