Hi,<br><br>16bit tiff is suported.<br><br>You need your imagemagick to have 16bit enabled (which is usually default).<br><br>SIP code "normally normalizes" the ImageMagick image to a double representation between 0-1.<br>

The conversion is done in e.g. magick_truecolor_image_to_double_hypermat in the file<br>src/sip_common.c from SIP, and uses a constant called MaxRGB for normalization.<br><br>Therefore it is written to support 16bit.<br>
<br>
A test confirms that:<br><br>$ identify onca.tiff <br><br>onca.tiff TIFF 238x182 238x182+0+0<span style="background-color:rgb(255,255,0)"> 16-bit </span>Grayscale DirectClass 50KB 0.000u 0:00.00<br><br>--> a=imread('onca.tiff');<br>

--> imshow(a);<br><br>best,<br>Ricardo Fabbri<br>--<br>Linux registered user #175401<br><a href="http://www.lems.brown.edu/%7Erfabbri" target="_blank">www.lems.brown.edu/~rfabbri</a><br><a href="http://pt.wikipedia.org/wiki/IPRJ" target="_blank">pt.wikipedia.org/wiki/IPRJ</a><br>

<a href="http://labmacambira.sf.net" target="_blank">labmacambira.sf.net</a><br>
<br><br><div class="gmail_quote">On Tue, May 22, 2012 at 5:16 PM, Antoine Monmayrant <span dir="ltr"><<a href="mailto:antoine.monmayrant@laas.fr" target="_blank">antoine.monmayrant@laas.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Le 22/05/12 21:19, Ricardo Fabbri a écrit :<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
SIP uses ImageMagick which is basically a variant of GraphicsMagick<br>
(actually the other way around). ImageMagick is actually more advanced than<br>
GraphicsMagick, but a bit harder to keep track of backward compatibility<br>
(but that's a developer's little issue).<br>
<br>
You should direct your efforts to try to install/link SIP to your scilab,<br>
then you'll have a scilab API for libtiff (and hundreds of other image<br>
format libs as well).<br>
</blockquote></div>
Is there support for 16bit tiff?<br>
If yes, I'll dump all my buggy code and switch back to sip...<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
If you are not using Linux, you can still try to see what it takes to get<br>
SIP up and running in your Operating System, since it has all the machinery<br>
required to link to an external lib like libtiff.<br>
<br>
best,<br>
Ricardo Fabbri<br>
--<br>
Linux registered user #175401<br>
</div><a href="http://www.lems.brown.edu/%7Erfabbri" target="_blank">www.lems.brown.edu/~rfabbri</a><<a href="http://www.lems.brown.edu/%7Erfabbri" target="_blank">ht<u></u>tp://www.lems.brown.edu/%<u></u>7Erfabbri</a>><div class="im">

<br>
<a href="http://pt.wikipedia.org/wiki/IPRJ" target="_blank">pt.wikipedia.org/wiki/IPRJ</a><br>
<a href="http://labmacambira.sf.net" target="_blank">labmacambira.sf.net</a><br>
<br>
<br>
On Tue, May 22, 2012 at 3:58 PM, Antoine Monmayrant<<br>
<a href="mailto:antoine.monmayrant@laas.fr" target="_blank">antoine.monmayrant@laas.fr</a>>  wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Le 22/05/12 20:27, benes a écrit :<br>
<br>
  Hi. I´d like to call libtiff from Scilab but I don´t know how. Where do I<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
put<br>
litiff and How do I call it?<br>
<br>
</blockquote>
well, it's a convoluted process, you need to write a function (in C) and<br>
then make a wrapper that call this function and check everything fits<br>
scilab requirements.<br>
I have to work on my horrible code to be able to post it here.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another thing: I have libtiff-4.1 and Libtiff.NET. Which one better suited<br>
for Scilab?<br>
<br>
</blockquote>
I don't know. I have only used it on linux, so it was clearly not the .NET<br>
version ;-)<br>
But the way you compile and link it in scilab makes it fairly cross<br>
platform.<br>
<br>
Antoine<br>
<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Thanks for your help.<br>
<br>
--<br></div>
View this message in context: <a href="http://mailinglists.scilab." target="_blank">http://mailinglists.scilab.</a>**<br>
org/GraphicsMagic1-3-15-**<u></u>windows-source-in-Scilab-5-3-*<u></u>*<br>
3-tp4006029p4007177.html<<a href="http://mailinglists.scilab.org/GraphicsMagic1-3-15-windows-source-in-Scilab-5-3-3-tp4006029p4007177.html" target="_blank">http:<u></u>//mailinglists.scilab.org/<u></u>GraphicsMagic1-3-15-windows-<u></u>source-in-Scilab-5-3-3-<u></u>tp4006029p4007177.html</a>><div class="im">

<br>
Sent from the Scilab users - Mailing Lists Archives mailing list archive<br>
at Nabble.com.<br>
<br>
--<br>
To unsubscribe from this mailing-list, please send an empty mail to<br></div>
users-unsubscribe@lists.**<a href="http://scilab.org" target="_blank">scil<u></u>ab.org</a><<a href="mailto:users-unsubscribe@lists.scilab.org" target="_blank">users-unsubscribe@<u></u>lists.scilab.org</a>><div class="im">

<br>
To check the archives of this mailing list, see<br>
</div><a href="http://mailinglists.scilab." target="_blank">http://mailinglists.scilab.</a>**<u></u>org/<<a href="http://mailinglists.scilab.org/" target="_blank">http://mailinglists.<u></u>scilab.org/</a>><br>
<br>
<br>
<br>
</blockquote><div class="im">
--<br>
To unsubscribe from this mailing-list, please send an empty mail to<br></div>
users-unsubscribe@lists.**<a href="http://scilab.org" target="_blank">scil<u></u>ab.org</a><<a href="mailto:users-unsubscribe@lists.scilab.org" target="_blank">users-unsubscribe@<u></u>lists.scilab.org</a>><div class="im">

<br>
To check the archives of this mailing list, see<br>
</div><a href="http://mailinglists.scilab." target="_blank">http://mailinglists.scilab.</a>**<u></u>org/<<a href="http://mailinglists.scilab.org/" target="_blank">http://mailinglists.<u></u>scilab.org/</a>><br>
<br>
<br>
</blockquote></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
--<br>
To unsubscribe from this mailing-list, please send an empty mail to<br>
<a href="mailto:users-unsubscribe@lists.scilab.org" target="_blank">users-unsubscribe@lists.<u></u>scilab.org</a><br>
To check the archives of this mailing list, see<br>
<a href="http://mailinglists.scilab.org/" target="_blank">http://mailinglists.scilab.<u></u>org/</a><br>
<br>
</div></div></blockquote></div><br>