Posted by
Davíð Þór Bragason on
May 28, 2014; 11:10pm
URL: http://imagej.273.s1.nabble.com/Images-representing-physical-quantities-image-type-pixel-values-calibration-tp5007963.html
Dear list,
I hope my question is not too vague.
I have written a Java plugin which takes 16 bit grayscale images (plus some
non-image objects) as input and calculates several images from them that
represent physical quantities at every pixel. As the quantities are
represented as double values in the code, I have made FloatProcessors from
the arrays, so that the pixel values of the (now 32 or 64 bit) images
directly give the respective quantity.
Currently the resulting image stacks are about 130MB and will soon
quadruple. So, I would like to go down to 16 bit images to reduce memory
footprint, which would also allow the use of certain filter plugins that
don't take 32 bit images.
Say the quantity should lie between 0.0 and 1.0 (in which case I'd allow
for values from say -2.0 to +3.0 to have room for tails of the distribution
of values, clamping far outliers. Would it then be reasonable to linearly
map this range to say [ 10,000 to 60,000 ] in an short variable (unsigned
since ImageJ maps any negative values to the positives). Then I'd have to
calibrate the image, since the plugin reads the physical quantities from
the images for further processing. I'd need to repeat these steps for the
different physical quantities that the plugin works with.
Any tips on this would be appreciated! Thank you.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html