-
Notifications
You must be signed in to change notification settings - Fork 851
Fix Matrix::Row() and Matrix::Col() to return proper BGR pixel values for images #2
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
Conversation
Fix Matrix::Row() and Matrix::Col() to return proper BGR pixel values for images
|
Thanks for the merge. Any chance of getting a version bump and npm republish for this? |
|
sorry, thought I'd done this. Done! |
|
I've been using this a bit, and I'm not convinced that this is the right interface for row and col. It's weird that they return more vals than you expect. Unless you have any objections, I'm gonna roll back, but I'll make a pixelRow and pixelCol method that do what you suggest. |
|
I am good with any approach that exposes the RGB values for each pixel On Thu, May 31, 2012 at 6:58 PM, Peter Braden
|
|
Good point, I didn't realise opencv stored images in matrices that way. |
|
Perhaps you can help me understand:
I don't want to return a greyscale value, rather I'd like to return the 32 bit unsigned int that corresponds to #aabbcc for the color? |
|
See c4a1c71 for changes to row and col. |
Added example for video feed applying gaussianBlur and canny edges filte...
[20160421] sync to upstream/master
|
How does one get rgb or r g and b from a jpg, for example? It's confusing and there are lots of similarly named methods... |
Different library include methods for windows vs osx
Yes,me too. Can somebody give me an example to access rgb data from am image? |
This forces images to be stored in memory as three channel (blue/green/red) images and fixes the Matrix::Row() and Matrix::Col() functions to return real 0-255 pixel values. The returned arrays will have a length of width_3 or height_3.