<!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,</div><div><br></div><div>I have not dive into different image formats but base on previous experience, i believe Stephane was right about this. So far when dealing with different bits per pixel, tif could be the way to go. The tif created by imwrite would be able to read by imread without any issue. <br></div><div><br></div><div>ps: In Scilab, binary image should be in %t, %f, however, some functions might not support binary so you might need to convert to relevant format before operation. <br></div><div><br></div><div>ps2: If I remember correctly %t %f were detected as int32 in C gateway. so, there might be something still not fully covered during conversion. <br></div><div><br></div><div>thanks.<br></div><div><br></div><div>rgds,<br></div><div>CL <br></div><div data-zbluepencil-ignore="true" style="" class="zmail_extra"><div><br></div><div id="Zm-_Id_-Sgn1">---- On Sat, 11 Jul 2020 00:42:14 +0800 <b>Stéphane Mottelet <stephane.mottelet@utc.fr></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><p>Hi,<br></p><p>True BW Jpeg is not possible. Use TIFF format instead.<br></p><p>S.<br></p><div class="x_-715657740moz-cite-prefix">Le 10/07/2020 à 15:52, P M a écrit :<br></div><blockquote><div dir="ltr"><div>Dear Experts,<br></div><div><br></div><div>I try to save a black/white image as a binary image.<br></div><div><br></div><div>That means: An image with bit depth of 1.<br></div><div><br></div><div>"imwrite" from IPCV however seems to save the image at
least as a 8-bit-image.<br></div><div><br></div><div>The array I want to save as an image consists of "0" and
"1" only.<br></div><div><br></div><div>The output file type must be ".jpg".<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><pre class="x_-715657740moz-quote-pre">_______________________________________________
users mailing list
<a target="_blank" href="mailto:users@lists.scilab.org" class="x_-715657740moz-txt-link-abbreviated">users@lists.scilab.org</a>
<a target="_blank" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users" class="x_-715657740moz-txt-link-freetext">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a>
<br></pre></blockquote><pre class="x_-715657740moz-signature">--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
<a target="_blank" href="http://www.utc.fr/~mottelet" class="x_-715657740moz-txt-link-freetext">http://www.utc.fr/~mottelet</a>
<br></pre></div><div>_______________________________________________<br></div><div>users mailing list <br></div><div>users@lists.scilab.org <br></div><div>http://lists.scilab.org/mailman/listinfo/users <br></div></blockquote></div><div><br></div></div><br></body></html>