/** Sets the display range of the current channel. With non-composite images it is identical to ip.setMinAndMax(min, max). */ public void setDisplayRange(double min, double max) { if (ip!=null) ip.setMinAndMax(min, max); }
/** Sets the display range of the current channel. With non-composite images it is identical to ip.setMinAndMax(min, max). */ public void setDisplayRange(double min, double max) { if (ip!=null) ip.setMinAndMax(min, max); }
@Override public ImageProcessor process(final ImageProcessor ip) { ip.setMinAndMax(0, ShortProcessor.class == ip.getClass() ? 65535 : 255); return ip; }
/** Sets the display range of specified channels in an RGB image, where 4=red, 2=green, 1=blue, 6=red+green, etc. With non-RGB images, this method is identical to setDisplayRange(min, max). This method is used by the Image/Adjust/Color Balance tool . */ public void setDisplayRange(double min, double max, int channels) { if (ip instanceof ColorProcessor) ((ColorProcessor)ip).setMinAndMax(min, max, channels); else ip.setMinAndMax(min, max); }
public ImageJVirtualStackUnsignedByte( RandomAccessibleInterval< S > source, Converter< S, UnsignedByteType > converter ) { super( source, converter, new UnsignedByteType(), ImagePlus.GRAY8 ); imageProcessor.setMinAndMax( 0, 255 ); } }
public void setMinAndMax(double min, double max) { record("setMinAndMax", new Object[] {new Double(min), new Double(max)}, new Class[] {double.class, double.class}); proc.setMinAndMax(min, max); }
public ImageJVirtualStackARGB( RandomAccessibleInterval< S > source, Converter< S, ARGBType > converter ) { super( source, converter, new ARGBType(), ImagePlus.COLOR_RGB ); imageProcessor.setMinAndMax( 0, 255 ); } }
public void setMinAndMax(double min, double max) { record("setMinAndMax", new Object[] {new Double(min), new Double(max)}, new Class[] {double.class, double.class}); proc.setMinAndMax(min, max); }
/** Sets the display range of specified channels in an RGB image, where 4=red, 2=green, 1=blue, 6=red+green, etc. With non-RGB images, this method is identical to setDisplayRange(min, max). This method is used by the Image/Adjust/Color Balance tool . */ public void setDisplayRange(double min, double max, int channels) { if (ip instanceof ColorProcessor) ((ColorProcessor)ip).setMinAndMax(min, max, channels); else ip.setMinAndMax(min, max); }
public ImageJVirtualStackUnsignedShort( RandomAccessibleInterval< S > source, Converter< S, UnsignedShortType > converter ) { super( source, converter, new UnsignedShortType(), ImagePlus.GRAY16 ); int maxDisplay = (1 << 16) - 1; final S s = Util.getTypeFromInterval( source ); if ( BitType.class.isInstance( s ) ) maxDisplay = 1; else if ( Unsigned12BitType.class.isInstance( s ) ) maxDisplay = 4095; imageProcessor.setMinAndMax( 0, maxDisplay ); } }
@Override public void update(MinMaxData m) { // Transform min and max from slider values to image values double[] mm = toImage(m.min, m.max); transformed.reset(); transformed.setMinAndMax(mm[0], mm[1]); super.transformedImage = makeImage(null, super.mask); } }
public void resetDisplayRange() { if (imageType==GRAY16 && default16bitDisplayRange>=8 && default16bitDisplayRange<=16 && !(getCalibration().isSigned16Bit())) ip.setMinAndMax(0, Math.pow(2,default16bitDisplayRange)-1); else ip.resetMinAndMax(); }
public void setLut(LUT lut) { if (lut==null) setColorModel(null); else { setColorModel(lut.getColorModel()); if (lut.min!=0.0 || lut.max!=0.0) setMinAndMax(lut.min, lut.max); } }
/** Returns a new, blank ByteProcessor with the specified width and height. */ public ImageProcessor createProcessor(int width, int height) { ImageProcessor ip2; ip2 = new ByteProcessor(width, height, new byte[width*height], getColorModel()); if (baseCM!=null) ip2.setMinAndMax(min, max); ip2.setInterpolationMethod(interpolationMethod); return ip2; }
public void setDisplayRange(double min, double max) { ip.setMinAndMax(min, max); int c = getChannelIndex(); lut[c].min = min; lut[c].max = max; if (getWindow()==null && cip!=null && c<cip.length) cip[c].setLut(lut[c]); }
public void setMax( double max ) { this.max = max; if( paletteImage != null ) { paletteImage.getProcessor().setMinAndMax(0,max); paletteImage.updateAndDraw(); } if( listener != null ) listener.newMaximum( max ); }
/** Returns a new, blank FloatProcessor with the specified width and height. */ public ImageProcessor createProcessor(int width, int height) { ImageProcessor ip2 = new FloatProcessor(width, height, new float[width*height], getColorModel()); ip2.setMinAndMax(getMin(), getMax()); ip2.setInterpolationMethod(interpolationMethod); return ip2; }
/** Returns a new, blank ShortProcessor with the specified width and height. */ public ImageProcessor createProcessor(int width, int height) { ImageProcessor ip2 = new ShortProcessor(width, height, new short[width*height], getColorModel()); ip2.setMinAndMax(getMin(), getMax()); ip2.setInterpolationMethod(interpolationMethod); return ip2; }
/** Returns a new, blank ShortProcessor with the specified width and height. */ public ImageProcessor createProcessor(int width, int height) { ImageProcessor ip2 = new ShortProcessor(width, height, new short[width*height], getColorModel()); ip2.setMinAndMax(getMin(), getMax()); ip2.setInterpolationMethod(interpolationMethod); return ip2; }
PatchIntensityRange( final Patch patch ) { this.patch = patch; a = patch.getMax() - patch.getMin(); final ImageProcessor ip = patch.getImageProcessor(); ip.resetMinAndMax(); min = ( ip.getMin() - patch.getMin() ) / a; max = ( ip.getMax() - patch.getMin() ) / a; ip.setMinAndMax( patch.getMin(), patch.getMax() ); } }