Posted by
CARL Philippe (LBP) on
Jul 10, 2019; 2:59pm
URL: http://imagej.273.s1.nabble.com/Calibrate-function-for-32bits-images-tp5022314p5022316.html
Dear Marcel,
I'm not sure it is an issue with the picture type nor the Analyze>Calibrate... method.
I can reproduce the issue with the following small plugin:
import ij.*;
import ij.process.*;
import ij.gui.*;
import java.awt.*;
import ij.plugin.*;
import ij.measure.Calibration;
public class My_Plugin implements PlugIn {
public void run(String arg) {
ImagePlus imp = IJ.openImage("
http://wsr.imagej.net/images/m51.zip");
// IJ.run(imp, "32-bit", "");
Calibration cal = new Calibration(imp);
cal.pixelWidth = 1.5;
cal.pixelHeight = 1.4;
cal.setXUnit ("micronx");
cal.setYUnit ("microny");
cal.setValueUnit("µs");
imp.setCalibration(cal);
imp.show();
IJ.log(imp.getCalibration().getValueUnit());
IJ.run(imp, "Show Info...", "");
}
}
My best regards,
Philippe
----- Mail original -----
De: "Marcel." <
[hidden email]>
À: "imagej" <
[hidden email]>
Envoyé: Mercredi 10 Juillet 2019 11:11:32
Objet: Re: Calibrate function for 32bits images
I could reproduce this possible bug with this macro:
run("M51 Galaxy (177K, 16-bits)");
run("32-bit");
run("Calibrate...", "function=None unit=ms");
The documentation (and the warning dialog) write that it should be possible,
see:
https://imagej.nih.gov/ij/docs/guide/146-30.html#sub:Calibrate...
The macro recorder doesn't record a changed unit with 32-bit images, too.
--
Sent from:
http://imagej.1557.x6.nabble.com/--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html