skyview.geometry.sampler
Class LanczosSampler

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

public class LanczosSampler
extends Sampler

This class implements a nearest neighbor sampling scheme.

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
LanczosSampler()
          Create a three lobe lanczos sampler as a default width.
 
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 a single pixel
 void setOrder(int n)
          Create a Lanczos sample of specified width sampler The data will be set later.
 
Methods inherited from class skyview.geometry.Sampler
factory, setBounds, setInput, setOutput, setTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanczosSampler

public LanczosSampler()
Create a three lobe lanczos sampler as a default width.

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.


setOrder

public void setOrder(int n)
Create a Lanczos sample of specified width sampler The data will be set later.

Overrides:
setOrder in class Sampler

sample

public void sample(int pix)
Sample a single pixel

Specified by:
sample in class Sampler
Parameters:
coords - The x,y coordinates of the center of the pixel.