Skip to content

Commit

Permalink
2019.03.22 (1.52n; Create Mask regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasband committed Mar 22, 2019
1 parent 9cab2c8 commit 18f822e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ij/ImageJ.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public class ImageJ extends Frame implements ActionListener,
MouseListener, KeyListener, WindowListener, ItemListener, Runnable {

/** Plugins should call IJ.getVersion() or IJ.getFullVersion() to get the version string. */
public static final String VERSION = "1.52m";
public static final String BUILD = ""; //46
public static final String VERSION = "1.52n";
public static final String BUILD = "";
public static Color backgroundColor = new Color(237,237,237);
/** SansSerif, 12-point, plain font. */
public static final Font SansSerif12 = new Font("SansSerif", Font.PLAIN, 12);
Expand Down
1 change: 0 additions & 1 deletion ij/ImagePlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,6 @@ public void setProcessor(String title, ImageProcessor ip) {
}
setProcessor2(title, ip, null);
}
static int counter = 1;

void setProcessor2(String title, ImageProcessor ip, ImageStack newStack) {
//IJ.log("setProcessor2: "+ip+" "+this.ip+" "+newStack);
Expand Down
10 changes: 9 additions & 1 deletion ij/plugin/Selection.java
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,15 @@ void createMaskFromThreshold(ImagePlus imp) {
ByteProcessor mask = imp.createThresholdMask();
if (!Prefs.blackBackground)
mask.invertLut();
new ImagePlus("mask",mask).show();
ImagePlus maskImp = new ImagePlus("mask",mask);
Calibration cal = imp.getCalibration();
if (cal.scaled()) {
Calibration cal2 = maskImp.getCalibration();
cal2.pixelWidth = cal.pixelWidth;
cal2.pixelHeight = cal.pixelHeight;
cal2.setUnit(cal.getUnit());
}
maskImp.show();
Recorder.recordCall("mask = imp.createThresholdMask();");
}

Expand Down
7 changes: 7 additions & 0 deletions release-notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
</head>
<body>

<li> <u>1.52n 22 March 2019</u>
<ul>
<li> Thanks to Ellen T Arena, fixed a 1.52m regression that caused the
<i>Edit&gt;Selection&gt;Create Mask</i> command to not
preserve spatial calibration.
</ul>

<li> <u>1.52m 20 March 2019</u>
<ul>
<li> ROI improvements thanks to Michael Schmid, including more accurate
Expand Down

0 comments on commit 18f822e

Please sign in to comment.