skyview.geometry.sampler
Class NNSampler

java.lang.Object
  extended by skyview.geometry.Sampler
      extended by skyview.geometry.sampler.NNSampler
All Implemented Interfaces:
java.io.Serializable, Component

public class NNSampler
extends Sampler

This class implements a nearest neighbor sampling

See Also:
Serialized Form

Field Summary
 
Fields inherited from class skyview.geometry.Sampler
bounds, inDepth, inHeight, inImage, inWidth, outDepth, outHeight, outImage, outWidth, trans
 
Constructor Summary
NNSampler()
           
 
Method Summary
 java.lang.String getDescription()
          Get the description of this component.
 java.lang.String getName()
          Get the name of this component.
 void sample(int pix)
          Sample at a specified pixel
 
Methods inherited from class skyview.geometry.Sampler
factory, setBounds, setInput, setOrder, setOutput, setTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NNSampler

public NNSampler()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Component
Get the name of this component.


getDescription

public java.lang.String getDescription()
Description copied from interface: Component
Get the description of this component.


sample

public void sample(int pix)
Sample at a specified pixel

Specified by:
sample in class Sampler
Parameters:
pix - The index into the output array.