tjrantal/BoneJ — pull request #6 by mdoube (2011-10-26 20:08:22+00:00)
Title: Testing

A few minor changes.

I wonder whether it's best to leave this stuff to the reader, and not present it as user options in the GUI:
(from a recorded macro)
scaling_coefficient=1.7240 scaling_constant=-322.0000 in-plane_pixel_size=0.8000

In other words, the reader gets the metadata and calibrates the image (using the slope and offset and pixel size presented here), then the analysis just uses the Calibration object in the ImagePlus and the user doesn't have to care about it. I see though that the calibration coefficients are hard-coded in, so I guess you expect these will be different between instruments?

calibrationCoefficients[0] = -322.0;
calibrationCoefficients[1] = 1.724;

I already took out the spatial scaling option from the GUI, since this is set in parent metadata and read by your reader.

Michael