[Scilab-users] using SciCV
P M
p.muehlmann at gmail.com
Tue Mar 5 10:24:11 CET 2019
Dear all,
I read an RGB image with ScCV imread:
img = imread("path_to_image",CV_LOAD_IMAGE_COLOR);
The result is an image of type: CV_8UC3
I can display the image pixel values with: disp(img)
The image itself is of type: Mat (Mlist)
So far, so clear.
Now, I want to extract a single plane..lets say the R-plane
I would normally do something like this:
R = img( : , : , 1)
But for some reason it does not work.
It seems that one can only extract pixel values from all 3 planes
altogether.....If so, why?
So the question comes down to: How to extract/change a single pixel
value of a single plane in SciCV ?
Thank you,
Philipp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190305/3019cb9f/attachment.htm>
More information about the users
mailing list