jigl.image
Class ComplexMIPMap
java.lang.Object
|
+--jigl.image.ComplexMIPMap
- public class ComplexMIPMap
- extends Object
A MIPMap variation that stores sub-images reduced by the nth root
of 2 each time. Gaussian noise is added to the image to get each sub-image.
|
Method Summary |
float[] |
get(float x,
float y,
float reduction)
Returns the pixel value at (x,y) of the reduced image. |
RealColorImage |
getImage(float reduction)
Returns an image at reduction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_imageArray
private InterpolatedRealColorImage[] m_imageArray
m_imageSizeX
private float m_imageSizeX
m_imageSizeY
private float m_imageSizeY
m_inc
private float m_inc
m_min
private int m_min
m_n
private int m_n
ComplexMIPMap
public ComplexMIPMap(RealColorImage image,
int n)
- image must be square and a power of 2 in size
- Parameters:
image - RealColorImage to be used as the highest resolution image in the MIPMap.n - image is reduced by the nth root of 2 for each sub-image.
get
public float[] get(float x,
float y,
float reduction)
- Returns the pixel value at (x,y) of the reduced image.
- Parameters:
x - x valuey - y valuereduction - reduction amount of image (2.0 would return the point at the image reduced by 1/2). must be >= 1.
getImage
public RealColorImage getImage(float reduction)
- Returns an image at reduction.
Faster than calling get for each pixel.
- Parameters:
reduction - reduction amount of image (2.0 would return the image reduced by 1/2).
Must be >= 1.
Submit a bug or feature
Revised in May 2002 by Weiming Liu