<div dir="ltr"><div>Quote:</div><div><br></div><div dir="ltr">[...] 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.</div><div dir="ltr"><br></div><div>Quote End</div><div><br></div><div>I thought about this, but did not expect it to be true.  :-)</div><div><br></div><div>Thanks for clarification.</div><div><br></div><div>Philipp</div><div><br></div><div><br></div><div dir="ltr"><br></div><div dir="ltr"><span><span><br></span></span></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">Am Do., 12. Nov. 2020 um 12:32 Uhr schrieb Chin Luh Tan <<a href="mailto:chinluh.tan@bytecode-asia.com">chinluh.tan@bytecode-asia.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><u><div><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><div><br></div><div id="gmail-m_-2195302490689409743Zm-_Id_-Sgn1">---- On Wed, 11 Nov 2020 20:20:18 +0800 <b>P M <<a href="mailto:p.muehlmann@gmail.com" target="_blank">p.muehlmann@gmail.com</a>></b> wrote ----<br></div><div><br></div><blockquote style="margin:0px 0px 0px 5px;padding-left:6px;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><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></div></u></blockquote></div>