org.jaitools.imageutils
Class SamplingBorderExtender
java.lang.Object
javax.media.jai.BorderExtender
org.jaitools.imageutils.SamplingBorderExtender
- All Implemented Interfaces:
- Serializable
public class SamplingBorderExtender
- extends javax.media.jai.BorderExtender
A BorderExtender that generates pixel values by randomly sampling
the source image within a threshold distance of each border pixel
- Since:
- 1.1
- Version:
- $Id$
- Author:
- Michael Bedward
- See Also:
BorderExtender,
Serialized Form
| Fields inherited from class javax.media.jai.BorderExtender |
BORDER_COPY, BORDER_REFLECT, BORDER_WRAP, BORDER_ZERO |
|
Constructor Summary |
SamplingBorderExtender(int maxDistance)
Creates a border extender that generate a value for each border pixel by
randomly sampling the area of the source image that lies within
maxDistance pixels of the border pixel. |
| Methods inherited from class javax.media.jai.BorderExtender |
createInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SamplingBorderExtender
public SamplingBorderExtender(int maxDistance)
- Creates a border extender that generate a value for each border pixel by
randomly sampling the area of the source image that lies within
maxDistance pixels of the border pixel.
- Parameters:
maxDistance - the maximum distance from a border pixel of source
image pixels that are sampled
extend
public void extend(WritableRaster raster,
javax.media.jai.PlanarImage sourceImage)
- Specified by:
extend in class javax.media.jai.BorderExtender
Copyright © 2009-2015. All Rights Reserved.