john.frink02-gM/Ye1E23mwN+
2012-05-11 10:19:06 UTC
Hi all,
I have a 16-bit image where - when I analyze the histogram - only bins in
the range say 45 to 300 are taken, i.e. it's a "shifted" 8-bit image in the
16-bit range. Now, I would like to convert this image to 8-bit without
rescaling but only setting the right range.
I've been trying this by writing the following macro (in fact, it's a batch
of such images):
for (i=100; i <= 200; i++) {
open("./Img" + i + ".tif");
run("Conversions...", " ");
run("8-bit");
saveAs("Tiff", "./Img" + i + ".8bit.tif");
close();
}
This, however only sets the range from 0-255, without taking the bins
256-300 into account.
Do you have any advice for me? I've been trying this now for a while...
In addition, I would like to go over my batch of 3d tiffs and find out the
minimal bin taken in the histogram before applying this macro.
Thanks in advance!
John
I have a 16-bit image where - when I analyze the histogram - only bins in
the range say 45 to 300 are taken, i.e. it's a "shifted" 8-bit image in the
16-bit range. Now, I would like to convert this image to 8-bit without
rescaling but only setting the right range.
I've been trying this by writing the following macro (in fact, it's a batch
of such images):
for (i=100; i <= 200; i++) {
open("./Img" + i + ".tif");
run("Conversions...", " ");
run("8-bit");
saveAs("Tiff", "./Img" + i + ".8bit.tif");
close();
}
This, however only sets the range from 0-255, without taking the bins
256-300 into account.
Do you have any advice for me? I've been trying this now for a while...
In addition, I would like to go over my batch of 3d tiffs and find out the
minimal bin taken in the histogram before applying this macro.
Thanks in advance!
John
--
Please avoid top-posting, and please make sure to reply-to-all!
Mailing list web interface: http://groups.google.com/group/fiji-users
Please avoid top-posting, and please make sure to reply-to-all!
Mailing list web interface: http://groups.google.com/group/fiji-users