/** * Returns the source to be offset. */ public Filter getSource(){ return (Filter)getSources().get(0); }
/** * Sets the source to be offset. * @param src image to offset. */ public void setSource(Filter src){ init(src, null); }
public MorphologyRable8Bit(Filter src, double radiusX, double radiusY, boolean doDilation){ super(src, null); setRadiusX(radiusX); setRadiusY(radiusY); setDoDilation(doDilation); }
aoi = getBounds2D(); ri = getSource().createRendering(new RenderContext(srcAt, r, rh)); if (ri == null) return null;
/** * The switch that determines if the operation * is to "dilate" or "erode". * @param doDilation do "dilation" when true and "erosion" when false */ public void setDoDilation(boolean doDilation){ touch(); this.doDilation = doDilation; }
/** * Pass-through: returns the source's bounds */ public Rectangle2D getBounds2D(){ return getSource().getBounds2D(); }
= new MorphologyRable8Bit(pad, radii[0], radii[1], isDilate);
aoi = getBounds2D(); ri = getSource().createRendering(new RenderContext(srcAt, r, rh)); if (ri == null) return null;
/** * The switch that determines if the operation * is to "dilate" or "erode". * @param doDilation do "dilation" when true and "erosion" when false */ public void setDoDilation(boolean doDilation){ touch(); this.doDilation = doDilation; }
/** * Pass-through: returns the source's bounds */ public Rectangle2D getBounds2D(){ return getSource().getBounds2D(); }
= new MorphologyRable8Bit(pad, radii[0], radii[1], isDilate);
public MorphologyRable8Bit(Filter src, double radiusX, double radiusY, boolean doDilation){ super(src, null); setRadiusX(radiusX); setRadiusY(radiusY); setDoDilation(doDilation); }
aoi = getBounds2D(); ri = getSource().createRendering(new RenderContext(srcAt, r, rh)); if (ri == null) return null;
/** * The switch that determines if the operation * is to "dilate" or "erode". * @param doDilation do "dilation" when true and "erosion" when false */ public void setDoDilation(boolean doDilation){ touch(); this.doDilation = doDilation; }
/** * Returns the source to be offset. */ public Filter getSource(){ return (Filter)getSources().get(0); }
/** * Pass-through: returns the source's bounds */ public Rectangle2D getBounds2D(){ return getSource().getBounds2D(); }
/** * Sets the source to be offset. * @param src image to offset. */ public void setSource(Filter src){ init(src, null); }
= new MorphologyRable8Bit(pad, radii[0], radii[1], isDilate);
public MorphologyRable8Bit(Filter src, double radiusX, double radiusY, boolean doDilation){ super(src, null); setRadiusX(radiusX); setRadiusY(radiusY); setDoDilation(doDilation); }
/** * The radius along the y axis, in user space. * @param radiusY should be greater than zero. */ public void setRadiusY(double radiusY){ if(radiusY <= 0){ throw new IllegalArgumentException(); } touch(); this.radiusY = radiusY; }