[Scilab-users] need help with image post processing

P M p.muehlmann at gmail.com
Wed Jul 15 17:58:05 CEST 2020


Dear Scilab community,

Thanks to Antoine's functions I am able to read tif-files as M x N x
Channel - matrix.

Px values are:

red       =>  255, 0, 0
green    =>  0, 255, 0
black     =>  0, 0, 0
white     =>  255, 255, 255

Now:   I want to only keep the green pixel values.
This can be done due to:  G = img(:,:,2);

However, this plane does also include the white pixels, since white has a
pixel value of 255 in the green plane.
This is Ok, as long as the white pixels are surrounded by the green area.

However there are also white pixels in the red and black area.
These white pixels should be set to 0.

I started to work with differential images , but somehow I can not get
around the problem.

Please find below an example of my output.

upper line:    RGB; R-plane; G-plane ; B-plane

As you can see, the G-plane contains white pixel (2 dots), which are within
the red-area
The desired output would be to have the G-plane without the 2 dots.

Any Idea?

Best Regards,
Philipp



[image: grafik.png]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200715/3feb1220/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grafik.png
Type: image/png
Size: 52541 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20200715/3feb1220/attachment.png>


More information about the users mailing list