-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support for Scalar in inRange and setTo missing? #101
Comments
Not really missing no, but the inRange(intensity, new Mat(new Size(4, 1), CV_64FC1, zeroScalar), new Mat(new Size(4, 1), CV_64FC1, black_level), mask);
image.setTo(new Mat(new Size(4, 1), CV_64FC1, blackColor), mask); Or create |
@saudet this code is not working
my |
What is not working exactly? |
I want to turn that blue line to red. Now consider the upper image which is a blue line at
and Mask as a white line image which is at the bottom.
Now I call
But |
Let's see, it looks like main_image1.setTo(new Mat(4, 1, CV_64FC1, new DoublePointer(255, 0, 0, 255)), dst); |
|
You're going to need to obey the rules of whatever programming language you're using! |
I'm trying to use
inRange()
andMat.setTo()
to color in some areas in an image but I'm encountering problems when usingScalar
in the functions:Errors:
I've used OpenCV4Android before and it works in that. From what I can see in the C++ documentation it should work as well
Is it missing from JavaCV or am I using the functions wrong?
The text was updated successfully, but these errors were encountered: