/** Sets the default fill/draw value. */ public void setColor(int value) { setValue(value); }
/** Sets the default fill/draw value. */ public void setColor(double value) { setValue(value); }
/** Sets the default fill/draw value. */ public void setColor(int value) { setValue(value); }
public void setValue(double value) { record("setValue", new Double(value), double.class); proc.setValue(value); }
public void setValue(double value) { record("setValue", new Double(value), double.class); proc.setValue(value); }
void setForegroundColor(ImageProcessor ip) { if (defaultColor!=null) ip.setColor(defaultColor); else if (!Double.isNaN(defaultValue)) ip.setValue(defaultValue); else ip.setColor(Toolbar.getForegroundColor()); colorSet = true; }
void setForegroundColor(ImageProcessor ip) { if (defaultColor!=null) ip.setColor(defaultColor); else if (!Double.isNaN(defaultValue)) ip.setValue(defaultValue); else ip.setColor(Toolbar.getForegroundColor()); colorSet = true; }
void drawRoiFilledParticle(ImageProcessor ip, Roi roi, ImageProcessor mask, int count) { int grayLevel = (count < 65535) ? count : 65535; ip.setValue((double) grayLevel); ip.setRoi(roi.getBounds()); ip.fill(mask); }
void createHistogramImage(String title) { if (title == null) title = "Histogram Plot"; hist_img = NewImage.createByteImage(title,width,height,1,0); ip = hist_img.getProcessor(); ip.setValue(BACKGROUND); ip.fill(); }
public ImageProcessor expandImage(ImageProcessor ipOld, int wNew, int hNew, int xOff, int yOff) { ImageProcessor ipNew = ipOld.createProcessor(wNew, hNew); if (zeroFill) ipNew.setValue(0.0); else ipNew.setColor(Toolbar.getBackgroundColor()); ipNew.fill(); ipNew.insert(ipOld, xOff, yOff); return ipNew; }
public ImageProcessor expandImage(ImageProcessor ipOld, int wNew, int hNew, int xOff, int yOff) { ImageProcessor ipNew = ipOld.createProcessor(wNew, hNew); if (zeroFill) ipNew.setValue(0.0); else ipNew.setColor(Toolbar.getBackgroundColor()); ipNew.fill(); ipNew.insert(ipOld, xOff, yOff); return ipNew; }
private ImageProcessor createImage_Square4x4 () { ImageProcessor image = new ByteProcessor(10, 10); image.setValue(0); image.fill(); for (int y = 3; y < 7; y++) { for (int x = 3; x < 7; x++) { image.set(x, y, 255); } } return image; }
private ImageProcessor createImage_Square10x10 () { ImageProcessor image = new ByteProcessor(30, 30); image.setValue(0); image.fill(); for (int y = 10; y < 20; y++) { for (int x = 10; x < 20; x++) { image.set(x, y, 255); } } return image; } }
private ImageProcessor createImage_Square4x4 () { ImageProcessor image = new ByteProcessor(10, 10); image.setValue(0); image.fill(); for (int y = 3; y < 7; y++) { for (int x = 3; x < 7; x++) { image.set(x, y, 255); } } return image; }
private ImageProcessor createImage_Square4x4 () { ImageProcessor image = new ByteProcessor(10, 10); image.setValue(0); image.fill(); for (int y = 3; y < 7; y++) { for (int x = 3; x < 7; x++) { image.set(x, y, 255); } } return image; }
private ImageProcessor createImage_Square4x4 () { ImageProcessor image = new ByteProcessor(10, 10); image.setValue(0); image.fill(); for (int y = 3; y < 7; y++) { for (int x = 3; x < 7; x++) { image.set(x, y, 255); } } return image; }
private ImageProcessor createImage_Square4x4 () { ImageProcessor image = new ByteProcessor(10, 10); image.setValue(0); image.fill(); for (int y = 3; y < 7; y++) { for (int x = 3; x < 7; x++) { image.set(x, y, 255); } } return image; }
private ImageProcessor createImage_Square10x10 () { ImageProcessor image = new ByteProcessor(30, 30); image.setValue(0); image.fill(); for (int y = 10; y < 20; y++) { for (int x = 10; x < 20; x++) { image.set(x, y, 255); } } return image; }
private ImageProcessor createImage_Square4x4 () { ImageProcessor image = new ByteProcessor(10, 10); image.setValue(0); image.fill(); for (int y = 3; y < 7; y++) { for (int x = 3; x < 7; x++) { image.set(x, y, 255); } } return image; }
private ImageProcessor createImage_Square10x10 () { ImageProcessor image = new ByteProcessor(30, 30); image.setValue(0); image.fill(); for (int y = 10; y < 20; y++) { for (int x = 10; x < 20; x++) { image.set(x, y, 255); } } return image; }