org.jaitools.imageutils
Class SamplingBorderExtender

java.lang.Object
  extended by javax.media.jai.BorderExtender
      extended by 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

Field Summary
 
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.
 
Method Summary
 void extend(WritableRaster raster, javax.media.jai.PlanarImage sourceImage)
           
 
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
 

Constructor Detail

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
Method Detail

extend

public void extend(WritableRaster raster,
                   javax.media.jai.PlanarImage sourceImage)
Specified by:
extend in class javax.media.jai.BorderExtender


Copyright © 2009-2013. All Rights Reserved.