MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / resetDisplayRange

Method resetDisplayRange

ij/src/main/java/ij/ImagePlus.java:3270–3277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3268 }
3269
3270 public void resetDisplayRange() {
3271 if (defaultMin!=0.0 || defaultMax!=0.0)
3272 setDisplayRange(defaultMin, defaultMax);
3273 else if (imageType==GRAY16 && default16bitDisplayRange>=8 && default16bitDisplayRange<=16 && !(getCalibration().isSigned16Bit()))
3274 ip.setMinAndMax(0, Math.pow(2,default16bitDisplayRange)-1);
3275 else
3276 ip.resetMinAndMax();
3277 }
3278
3279 public void setDefaultDisplayRange(double min, double max) {
3280 this.defaultMin = min;

Callers 8

showMethod · 0.95
showDialogMethod · 0.95
dialogItemChangedMethod · 0.95
resetMinAndMaxMethod · 0.45
resetMethod · 0.45
calibrateMethod · 0.45
runMethod · 0.45
convertToGray32Method · 0.45

Calls 5

setDisplayRangeMethod · 0.95
getCalibrationMethod · 0.95
isSigned16BitMethod · 0.45
setMinAndMaxMethod · 0.45
resetMinAndMaxMethod · 0.45

Tested by

no test coverage detected