Re: convert 12 bit to 8 bit images faithfully
Posted by
Cammer, Michael on
Oct 21, 2014; 5:47pm
URL: http://imagej.273.s1.nabble.com/convert-12-bit-to-8-bit-images-faithfully-tp5010135p5010137.html
I think this is what you want to do:
macro "Convert 12 to 8 bits linear" {
setMinAndMax(0, 4095);
call("ij.ImagePlus.setDefault16bitRange", 12);
run("8-bit");
}
===========================================================================
Michael Cammer, Microscopy Core & Skirball Institute, NYU Langone Medical Center
Cell: 914-309-3270 note that we do not receive messages left at 212-263-3208
http://ocs.med.nyu.edu/microscopy &
http://microscopynotes.com/-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Hao Wu
Sent: Tuesday, October 21, 2014 1:09 PM
To:
[hidden email]
Subject: convert 12 bit to 8 bit images faithfully
Hi, everyone!
I have been using ImageJ to export my 12 bit images for a long time. Today I find out it is not a good idea because the "8 bit" function is not working the way I thought. Instead of converting 0~4095 to 0~255, actually it converts from min~max of that particular image to 0~255. I am wondering, does anybody happen to know any plugins, macros or software to faithfully do the conversion? Thank you very much!
Best,
Hao
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html