On Wednesday 13 Jun 2012 21:03:48 daggaz wrote:
> I have 16bit images. I would very much like to threshold these, effectively
> setting any pixels below my threshold limit to zero, while keeping the rest
> of the data intact. Setting the correct threshold is simple, but applying
> the changes not only forces a save into 8bit, it rewrites all the
> thresholded values as 255. (I simply cannot understand why this is the
> default setting, why force a user to wipe data?)
The default behaviour is correct, it is just that what you want to do is not
really thresholding .
If you know the values (lets say from 0 to 260) then you can change those by
running a 1 line macro:
changeValues(0, 260, 0);
This will zero all the pixels between 0 and 260.
http://imagej.nih.gov/ij/developer/macro/functions.html#CCheers
G.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html