Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageJ: fix display of composite virtual stacks #1774

Merged
merged 3 commits into from
May 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions components/bio-formats-plugins/src/loci/plugins/in/Colorizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,28 @@ public void close() {
super.close();
toClose.close();
}

@Override
public void show(String message) {
super.show(message);

// ensure that the display settings are consistent across channels
// autoscaling takes care of this for non-virtual stacks
// see ticket #12267
if (toClose instanceof VirtualImagePlus) {
int channel = getChannel();
double min = getDisplayRangeMin();
double max = getDisplayRangeMax();

for (int c=0; c<cSize; c++) {
setPositionWithoutUpdate(c + 1, getSlice(), getFrame());
setDisplayRange(min, max);
}
reset();
setPosition(channel, getSlice(), getFrame());
}
}

};
compImage.setProperty(ImagePlusReader.PROP_SERIES, series);
if (luts != null) compImage.setLuts(luts);
Expand Down
Binary file modified jar/ij.jar
Binary file not shown.