<!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>These was a part in the code to check if the image read into Scilab only consist of 2 values, min and max, and it will be automatically converted to binary image. <br></div><div><br></div><div>If you're using Windows, consider to download version 4.1.2.3 from <a href="https://github.com/tanchinluh/IPCV/tags" target="_blank">https://github.com/tanchinluh/IPCV/tags</a> and use the extra input to force reading in 3 layers. <br></div><div><br></div><div>img = imread(imPath, IMREAD_COLOR = 1);<br></div><div><br></div><div>Hope this helps.<br></div><div><br></div><div>Regards,<br></div><div>Chin Luh</div><div><br></div><div class="zmail_extra" data-zbluepencil-ignore="true" style=""><div><br></div><div id="Zm-_Id_-Sgn1">---- On Wed, 11 Nov 2020 20:20:18 +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><br></div><div>please improve my understanding of the IPCV function imread for following context:<br></div><div><br></div><div>I have an image which is told to be a 3-channel image.<br></div><div><br></div><div>At least with IrfanView I get a bit depth of 24 ... so I expect it to be an RBG image.<br></div><div><br></div><div><br></div><div>However: The image contains - on purpose - only 2 colors.<br></div><div><br></div><div>Now:<br></div><div><br></div><div>img = imread(imPath); // reads image as boolean<br></div><div><br></div><div>img = double(img); // convert to double.<br></div><div><div><br></div><div><br></div><div>Question: Why does the imread-function read the image as a boolean image and not as a 3-channel image?<br></div><div><br></div><div>Note: I am totally fine with the result of imread..just being curious.<br></div><div><br></div><div>Thank you,<br></div><div>Philipp<br></div></div></div><div>_______________________________________________<br></div><div>users mailing list <br></div><div><a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a> <br></div><div><a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a> <br></div></div></blockquote></div><div><br></div></div><br></body></html>