<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<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 class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Subject:
</th>
<td>Re: [Scilab-users] scilab and tif-files</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Date: </th>
<td>Sun, 12 Jul 2020 20:39:20 +0200</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">From: </th>
<td>Antoine Monmayrant <a class="moz-txt-link-rfc2396E" href="mailto:antoine.monmayrant@laas.fr"><antoine.monmayrant@laas.fr></a></td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">To: </th>
<td>P M <a class="moz-txt-link-rfc2396E" href="mailto:p.muehlmann@gmail.com"><p.muehlmann@gmail.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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 class="moz-cite-prefix">On 10/07/2020 11:52, P M wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACf7ODsFqagmrZ1C7-UPzjzdd1L48TGCwQnOKBf6eHUMfsF1gw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<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 class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org" moz-do-not-send="true">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</body>
</html>