org.jaitools.imageutils
Class RandomBorderExtender

java.lang.Object
  extended by javax.media.jai.BorderExtender
      extended by org.jaitools.imageutils.RandomBorderExtender
All Implemented Interfaces:
Serializable

public class RandomBorderExtender
extends javax.media.jai.BorderExtender

A BorderExtender that generates uniform random pixel values in a user-specified range

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
RandomBorderExtender(Number minValue, Number maxValue)
          Creates a border extender that will buffer an image with values uniformly drawn from the range minValue (inclusive) to maxValue (exclusive).
 
Method Summary
 void extend(WritableRaster raster, javax.media.jai.PlanarImage sourceImage)
          Creates the extended border.
 
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

RandomBorderExtender

public RandomBorderExtender(Number minValue,
                            Number maxValue)
Creates a border extender that will buffer an image with values uniformly drawn from the range minValue (inclusive) to maxValue (exclusive).

Parameters:
minValue - lowest value that can be generated
maxValue - highest value that can be generated
Method Detail

extend

public void extend(WritableRaster raster,
                   javax.media.jai.PlanarImage sourceImage)
Creates the extended border.

Specified by:
extend in class javax.media.jai.BorderExtender
Parameters:
raster - the destination raster
sourceImage - the source image


Copyright © 2009-2013. All Rights Reserved.