<div dir="ltr"><div>Hi Antoine,</div><div></div><div><br></div><div>This does help indeed...</div><div><br></div><div>with<span style="color:rgb(0,0,0)">    tiff_get_image_prop()     I get the correct RGB-image from the TIf-file.<br></span></div><div><br></div><div>Thank you very much. <br></div><div><br></div><div>Best Regards,<br></div><div>Philipp<br></div><div><br></div><div><br></div><div><br></div><div><div><div><br></div></div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 13. Juli 2020 um 08:25 Uhr schrieb Antoine Monmayrant <<a href="mailto:antoine.monmayrant@laas.fr">antoine.monmayrant@laas.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div>
    <p>Houps,</p>
    <p>I mailed Philipp directly, so here is a copy of my answer and
      available script to read a subset of TIFF.<br>
      It might be useful for some of you...<br>
      <br>
      Antoine<br>
    </p>
    <div><br>
      <br>
      -------- Forwarded Message --------
      <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" nowrap align="RIGHT">Subject:
            </th>
            <td>Re: [Scilab-users] scilab and tif-files</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap align="RIGHT">Date: </th>
            <td>Sun, 12 Jul 2020 20:39:20 +0200</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap align="RIGHT">From: </th>
            <td>Antoine Monmayrant <a href="mailto:antoine.monmayrant@laas.fr" target="_blank"><antoine.monmayrant@laas.fr></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap align="RIGHT">To: </th>
            <td>P M <a href="mailto:p.muehlmann@gmail.com" target="_blank"><p.muehlmann@gmail.com></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      
      <p>Hello Philipp,</p>
      <p>I played a bit with tiff format a while ago (as none of the
        image processing toolboxes could be installed on my work
        computers).<br>
        The long story short: one of our microscope is storing data in a
        format (*.ols) that is just tiff file with some metadata.<br>
        I hacked a bit of the tiff specification to only support the
        subset of tiff used by this microscope.<br>
        So it might not be exactly what you need, it depends on the tiff
        files you are using.<br>
        But maybe it can help you design your own homemade solution.</p>
      <p>Cheers,</p>
      <p>Antoine<br>
      </p>
      <div>On 10/07/2020 11:52, P M wrote:<br>
      </div>
      <blockquote type="cite">
        
        <div dir="ltr">
          <div>Dear experts,</div>
          <div><br>
          </div>
          <div>I do have a tif-file....in fact: lot's of them and of
            different size.</div>
          <div><br>
          </div>
          <div>Pixel values are:  <br>
          </div>
          <div>- red</div>
          <div>- green</div>
          <div>- white</div>
          <div>- black</div>
          <div><br>
          </div>
          <div>Now, I want to convert these files in Black/white images,
            such as:</div>
          <div><br>
          </div>
          <div>- red pixels --> black</div>
          <div>- green pixels --> white</div>
          <div>- black pixels --> black</div>
          <div>- white pixels --> black</div>
          <div><br>
          </div>
          <div>in other words:    Only the green pixels are of interest.</div>
          <div><br>
          </div>
          <div>Now, as I use IPCV:</div>
          <div><br>
          </div>
          <div>- imread()...does not handle tif-files correctly</div>
          <div>--> it does read the files, but the output is a
            boolean-matrix......that doesn't help</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?</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Thank you,</div>
          <div>Philipp<br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
        <br>
        <fieldset></fieldset>
        <pre>_______________________________________________
users mailing list
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
      </blockquote>
    </div>
  </div>

_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>