Re: Conversion to 8-bit in java

Posted by Ignacio Arganda-Carreras-2 on
URL: http://imagej.273.s1.nabble.com/Conversion-to-8-bit-in-java-tp5015747p5015780.html

Hello Philippe,

Can you paste your code here? I just tried on a simple script and those
commands work as expected for me.

ignacio

On Mon, Feb 29, 2016 at 4:39 PM, Philippe CARL <[hidden email]>
wrote:

> Dear all,
>
> I have two ImagePlus i1 and i2 which I would like to convert from
> ImagePlus.GRAY32 to ImagePlus.GRAY8 by using IJ.run(i1, "8-bit", ""); and
> IJ.run(i2, "8-bit", "");
>
> But as the first picture gets correctly converted, the second one is
> staying
> in ImagePlus.GRAY32.
>
> So what am I missing here?
>
> I thank you very much in advance for your answer and help.
>
> My best regards,
>
> Philippe
>
>
>
> Philippe CARL
>
> Laboratoire de Biophotonique et Pharmacologie
>
> UMR 7213 CNRS - Université de Strasbourg
>
> Faculté de Pharmacie
>
> 74 route du Rhin
>
> 67401 ILLKIRCH
>
> Tel : +33(0)3 68 85 41 84
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--
Ignacio Arganda-Carreras, Ph.D.
Ikerbasque Research Fellow
Departamento de Ciencias de la Computacion e Inteligencia Artificial
Facultad de Informatica, Universidad del Pais Vasco
Paseo de Manuel Lardizabal, 1
20018 Donostia-San Sebastian
Guipuzcoa, Spain

Phone : +34 943 01 73 25
Website: http://sites.google.com/site/iargandacarreras/
<http://biocomp.cnb.csic.es/~iarganda/index_EN.html>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html