public class Interleave extends Object
Constructor | Description |
---|---|
Interleave() |
Create a default interleaver with that can handle 512x512 images in a single
iteration.
|
Interleave(int order) |
Create an interleaver with a specified buffer size for the array lookups.
|
Modifier and Type | Method | Description |
---|---|---|
long |
ImgToRing(long pix,
int size) |
Given the index in natural image order (y*nx+x), get the
nested index.
|
int[] |
indices(long pixel) |
Separate interleaved pixels bits into the
x and y values.
|
static void |
main(String[] args) |
|
long |
pixel(int x,
int y) |
|
int |
quickImgToRing(int pix) |
This method can only be used if the dimension exactly
matches the order for the Interleave.
|
int |
quickRingToImg(int pix) |
This method can only be used if the Interleave order exactly
matches the dimesion of the image.
|
long |
ringToImg(long pix,
int size) |
Given an a pixel with an interleaved index.
|
public Interleave(int order)
order
- The number of bits in to be [de]interleaved in an iteration.public Interleave()
public long pixel(int x, int y)
public int[] indices(long pixel)
pixel
- public long ringToImg(long pix, int size)
pix
- size
- public int quickRingToImg(int pix)
pix
- public long ImgToRing(long pix, int size)
public int quickImgToRing(int pix)