Class Crimmins
java.lang.Object
|
+--Crimmins
- public class Crimmins
- extends java.lang.Object
Crimmins is an operator that applies the Crimmins Speckle Reduction
Algorithm.
- Author:
- Simon Horne.
|
Constructor Summary |
Crimmins()
Default no-arg constructor. |
|
Method Summary |
int[] |
crimmins_image(int[] input,
int width,
int height,
int iterations)
Takes a 1d image and applies Crimmins to it. |
int[][] |
crimmins(int[][] input,
int width,
int height,
int iterations)
Takes a 2d image and applies Crimmins to it. |
int[][] |
crimminsImage(int[][] image,
int width,
int height,
int iterations)
Takes a 2d array of grey level values and applies the
Crimmins Speckle Reduction algorithm to it for a
specified number of iterations. |
static int[] |
greysToPixels(int[][] outputArrays,
int width,
int height)
Converts a 2D array of grey level values into a continuous 1D array
of pixels. |
static int[][] |
pixelsToGreys(int[] input,
int width,
int height)
Converts a 1D array of pixels to a 2D array of grey level values. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Crimmins
public Crimmins()
- Default no-arg constructor.
pixelsToGreys
public static int[][] pixelsToGreys(int[] input,
int width,
int height)
- Converts a 1D array of pixels to a 2D array of grey level values.
- Parameters:
input - The 1D array.width - The width of the 2D array.height - The height of the 2D array.- Returns:
- The 2D array.
greysToPixels
public static int[] greysToPixels(int[][] outputArrays,
int width,
int height)
- Converts a 2D array of grey level values into a continuous 1D array
of pixels.
- Parameters:
outputArrays - The 2D array.width - The width of the 2D array.height - The height of the 2D array.- Returns:
- The 1D array.
crimminsImage
public int[][] crimminsImage(int[][] image,
int width,
int height,
int iterations)
- Takes a 2d array of grey level values and applies the
Crimmins Speckle Reduction algorithm to it for a
specified number of iterations.
- Parameters:
image - the input imagewidth - of the input imageheight - of the input imageiterations - to be applied- Returns:
- the new Crimminsed image
crimmins_image
public int[] crimmins_image(int[] input,
int width,
int height,
int iterations)
- Takes a 1d image and applies Crimmins to it.
- Parameters:
input - the input imagewidth - of the input imageheight - of the input imageiterations - to be applied- Returns:
- the new image
crimmins
public int[][] crimmins(int[][] input,
int width,
int height,
int iterations)
- Takes a 2d image and applies Crimmins to it.
- Parameters:
input - the input imagewidth - of the input imageheight - of the input imageiterations - to be applied- Returns:
- the new image