NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 22 - 3D Stitching does not set the calibration for the resulting image
3D Stitching does not set the calibration for the resulting image
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Linux
: P2 normal
Assigned To: Mark Longair
Depends on:
Blocks:
 
Reported: 2008-11-02 19:41 CST by Albert Cardona
Modified: 2009-01-19 14:35 CST
0 users

See Also:

Description Albert Cardona 2008-11-02 19:41:48 CST
The two input stacks to stitch will very likely (almost always) have the same calibration, so it makes perfect sense (and I expected it) that the calibration of, say, the first stack is set to the resulting, stitched stack.

Suppose one has:
ImagePlus imp1 = ...
ImagePlus imp2 = ...
ImagePlus result = ....

Then all the program needs to do
result.setCalibration(imp1.getCalibration());

A warning could be issued if the calibration of the two input stacks are different to each other. Can be easily tested with:

Calibration cal1 = imp1.getCalibration();
Calibration cal2 = imp2.getCalibration();
if (!cal1.equals(cal2)) {
  YesNoCancelDialog yn = new YesNoCancelDialog(IJ.getInstance(), "Warning!", "The calibration of the two input images is different. Proceed to stich anyway?")
  if (!(yn.yesPressed()) {
    return;
  }
}

I guess all other stitching plugins from src-plugins/Stitching_/ package have the same problem.
Comment 1 Johannes Schindelin 2009-01-19 14:35:30 CST
Stephan fixed this in 00a4a93(Updated Stitching package, new plugin for unknown image configurations)