<div dir="ltr"><div>Dear Scilab community,</div><div><br></div><div>Thanks to Antoine's functions I am able to read tif-files as M x N x Channel - matrix.</div><div><br></div><div>Px values are:</div><div><br></div><div>red      => 255, 0, 0<br></div><div>green  Â
=>Â 0, 255, 0
</div><div>black
  Â
=> 0, 0, 0 </div><div>white   Â
=>Â 255, 255, 255
</div><div></div><div><br></div><div>Now:Â Â I want to only keep the green pixel values.</div><div></div><div>This can be done due to:Â G = img(:,:,2);</div><div><br></div><div>However, this plane does also include the white pixels, since white has a pixel value of 255 in the green plane.</div><div>This is Ok, as long as the white pixels are surrounded by the green area.</div><div><br></div><div>However there are also white pixels in the red and black area.</div><div>These white pixels should be set to 0.</div><div><br></div><div>I started to work with differential images , but somehow I can not get around the problem.</div><br><div>Please find below an example of my output.</div><div><br></div><div>upper line:Â Â Â RGB; R-plane; G-plane ; B-plane</div><div><br></div><div>As you can see, the G-plane contains white pixel (2 dots), which are within the red-area</div><div></div><div>The desired output would be to have the G-plane without the 2 dots.<br></div><div>
<div><br></div><div>Any Idea?</div><div><br></div><div>Best Regards,</div><div>Philipp<br></div>
</div><div><br></div><div><br></div><div><br></div><div><div><img src="cid:ii_kcnjkeni0" alt="grafik.png" style="margin-right: 0px;" width="1121" height="670"><br></div></div></div>