mdoube/BoneJ — pull request #13 by tjrantal (2011-10-20 23:54:28+00:00)
Title: Results output and 16bit image

Hello Michael,

I finished changing the image to 16bit and using the Calibration (to some extent..). Since Stratec data is in fact signed 16 bit int, I had to actually still use the same scaling I used before (i.e. not with the Calibration). At the moment, the image will be opened and Calibration applied to make ImageJ show proper attenuation coefficients. To scale the values to BMDs, I had to first manually subtract the 2^15 to make the values signed and subsequently apply the scaling. Seems to me that I can't apply the calibration twice (i.e. all of the subsequent calibrations are executed with the original values).

For ResultsTable, I had difficulties in having more than one string column (i.e. only one label column is implemented in ImageJ). I want to have more than that and I ended up using TextPanel for the results. It looks nice on screen and saves the results correctly. However, since it's not a ResultsTable, you can't get "measurements" (or any other plugin results I guess) results into the same table. Unfortunate. This could be circumvented by changing the implementation of the ResultsTable from having a double[][] for storing the results to having a String[][] for the same purpose. Most of the functions would be relatively easy to change accordingly.