<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi, <br></div><div><br></div><div>I remembered I was having some issue on reading the tiff file which was trying to read in different bits per pixels such as 12 bits (for a type of CCD camera) , that's why created the tifread for reference as I believe it there would be much more different standard of images/data which are not covered by imread. (for e.g. I just came across YUV video which need to be read by Scilab basic IO)<br></div><div><br></div><div>As for standard RGB image (8-bits per channel), it should be fine, you might want to send a sample (upload somewhere) and let us have a look.<br></div><div><br></div><div>Thanks.<br></div><div><br></div><div>rgds,<br></div><div>CL</div><div><br></div><div><br></div><div data-zbluepencil-ignore="true" style="" class="zmail_extra"><div><br></div><div id="Zm-_Id_-Sgn1">---- On Fri, 10 Jul 2020 17:52:14 +0800 <b>P M <p.muehlmann@gmail.com></b> wrote ----<br></div><div><br></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0px 0px 0px 5px;"><div><div dir="ltr"><div>Dear experts,<br></div><div><br></div><div>I do have a tif-file....in fact: lot's of them and of different size.<br></div><div><br></div><div>Pixel values are:  <br></div><div>- red<br></div><div>- green<br></div><div>- white<br></div><div>- black<br></div><div><br></div><div>Now, I want to convert these files in Black/white images, such as:<br></div><div><br></div><div>- red pixels --> black<br></div><div>- green pixels --> white<br></div><div>- black pixels --> black<br></div><div>- white pixels --> black<br></div><div><br></div><div>in other words:    Only the green pixels are of interest.<br></div><div><br></div><div>Now, as I use IPCV:<br></div><div><br></div><div>- imread()...does not handle tif-files correctly<br></div><div><br></div><div>--> it does read the files, but the output is a boolean-matrix......that doesn't help<br></div><div><br></div><div>- tifread()...does only handle  images with size 
1024x1024 ... doesn't help<br></div><div><br></div><div>Is there a way to read TIF-files into Scilab and keep the R-G-B-channels?<br></div><div><br></div><div><br></div><div>Thank you,<br></div><div>Philipp<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div>_______________________________________________<br></div><div>users mailing list <br></div><div><a target="_blank" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a> <br></div><div><a target="_blank" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a> <br></div></div></blockquote></div><div><br></div></div><br></body></html>