Skip to content

Commit 0a46264

Browse files
committed
fix(image): set calibration for subtracted images
* Ensure the calibration of the first image is applied to the result of the subtraction.
1 parent 401b3c5 commit 0a46264

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/imcflibs/imagej/misc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ def subtract_images(imp1, imp2):
423423
)
424424
option = " stack" if imp1.getNSlices() > 1 else ""
425425
subtracted = ic.run("Subtract create" + option, imp1, imp2)
426+
subtracted.setCalibration(imp1.getCalibration())
426427

427428
return subtracted
428429

0 commit comments

Comments
 (0)