Skip to content

[OpenCV] Issue with SetTo Method in Mat Class. #1344

Answered by saudet
Omar122 asked this question in Q&A
Discussion options

You must be logged in to vote

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);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Omar122
Comment options

@saudet
Comment options

Answer selected by Omar122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants