/** Resets the minimum and maximum displayed pixel values of the specified image to be the same as the min and max pixel values. */ public static void resetMinAndMax(ImagePlus img) { img.resetDisplayRange(); img.updateAndDraw(); }
/** Resets the minimum and maximum displayed pixel values of the specified image to be the same as the min and max pixel values. */ public static void resetMinAndMax(ImagePlus img) { img.resetDisplayRange(); img.updateAndDraw(); }
private void updateImg(){ thr=((Scrollbar)sliders.elementAt(0)).getValue(); imp.setSlice(((Scrollbar)sliders.elementAt(1)).getValue()); imp.resetDisplayRange(); ip.setThreshold(thr, max, ImageProcessor.RED_LUT); } }
imp.resetDisplayRange(); imp.updateAndDraw();
@Override public void run(String arg) { if ("cache".equals(arg)) { fetchSamples(); return; } File cached = getCached(arg); if (cached != null) try { final ImagePlus imp = IJ.openImage(cached.getPath()); if (imp != null) { switch (imp.getBitDepth()) { case 16: imp.resetDisplayRange(); break; case 24: // *sigh* This is copied from the ImagePlus(String pathOrUrl) constructor: Opener.convertGrayJpegTo8Bits(imp); break; } imp.show(); return; } } catch(Exception e) { e.printStackTrace(); } new URLOpener().run(arg); }
public static void show( final RandomAccessibleInterval< FloatType > img, final String title ) { ImagePlus imp = ImageJFunctions.wrapFloat( img, title ); imp.setDimensions( 1, imp.getStackSize(), 1 ); imp.setSlice( imp.getStackSize() / 2 ); imp.resetDisplayRange(); imp.show(); }
void reset(ImagePlus imp, ImageProcessor ip) { if (RGBImage) ip.reset(); int bitDepth = imp.getBitDepth(); if (bitDepth==16 || bitDepth==32) { imp.resetDisplayRange(); defaultMin = imp.getDisplayRangeMin(); defaultMax = imp.getDisplayRangeMax(); plot.defaultMin = defaultMin; plot.defaultMax = defaultMax; } min = defaultMin; max = defaultMax; setMinAndMax(imp, min, max); updateScrollBars(null, false); plotHistogram(imp); autoThreshold = 0; }
void reset(ImagePlus imp, ImageProcessor ip) { if (RGBImage) ip.reset(); int bitDepth = imp.getBitDepth(); if (bitDepth==16 || bitDepth==32) { imp.resetDisplayRange(); defaultMin = imp.getDisplayRangeMin(); defaultMax = imp.getDisplayRangeMax(); plot.defaultMin = defaultMin; plot.defaultMax = defaultMax; } min = defaultMin; max = defaultMax; setMinAndMax(imp, min, max); updateScrollBars(null, false); plotHistogram(imp); autoThreshold = 0; }
imp.resetDisplayRange(); imp.updateAndDraw();
imp.resetDisplayRange(); imp.updateAndDraw();
imp.resetDisplayRange(); defaultMin = imp.getDisplayRangeMin(); defaultMax = imp.getDisplayRangeMax();
ImageStatistics stats = imp.getProcessor().getStats(); if (imp.getDisplayRangeMin()<stats.min || imp.getDisplayRangeMax()>stats.max) { imp.resetDisplayRange(); imp.updateAndDraw();
imp.resetDisplayRange(); defaultMin = imp.getDisplayRangeMin(); defaultMax = imp.getDisplayRangeMax();
resetDisplayRange(); updateAndDraw();
ImageStatistics stats = imp.getProcessor().getStats(); if (imp.getDisplayRangeMin()<stats.min || imp.getDisplayRangeMax()>stats.max) { imp.resetDisplayRange(); imp.updateAndDraw();
resetDisplayRange(); updateAndDraw();
Calibration cal = imp!=null?imp.getCalibration():null; if (range1!=range2 && imp!=null && imp.getType()==ImagePlus.GRAY16 && !cal.isSigned16Bit()) { imp.resetDisplayRange(); if (rangeIndex2==0 && imp.isComposite() && luts!=null) ((CompositeImage)imp).setLuts(luts);
Calibration cal = imp!=null?imp.getCalibration():null; if (range1!=range2 && imp!=null && imp.getType()==ImagePlus.GRAY16 && !cal.isSigned16Bit()) { imp.resetDisplayRange(); if (rangeIndex2==0 && imp.isComposite() && luts!=null) ((CompositeImage)imp).setLuts(luts);
Calibration cal = imp!=null?imp.getCalibration():null; if (imp!=null && imp.getType()==ImagePlus.GRAY16 && !cal.isSigned16Bit()) { imp.resetDisplayRange(); if (rangeIndex==0 && imp.isComposite() && luts!=null) ((CompositeImage)imp).setLuts(luts);
Calibration cal = imp!=null?imp.getCalibration():null; if (imp!=null && imp.getType()==ImagePlus.GRAY16 && !cal.isSigned16Bit()) { imp.resetDisplayRange(); if (rangeIndex==0 && imp.isComposite() && luts!=null) ((CompositeImage)imp).setLuts(luts);