Login  Register

Conversion to 8-bit in java

Posted by CARL Philippe (LBP) on Feb 29, 2016; 3:28pm
URL: http://imagej.273.s1.nabble.com/Conversion-to-8-bit-in-java-tp5015747.html

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