|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cbr.util.BlurFilter
This class implements a simple convolution filter with a kernal consisting entirely of ones. The border lines and columns are not blurred. The kernal is a square of size three.
Constructor Summary | |
private |
BlurFilter()
No-one may instantiate this class. |
Method Summary | |
static int[] |
getBlurredPixels(Image im)
This method blurs the given image based on a simple convolution filter with a 3x3 kernal. |
static int[] |
getBlurredPixels(int[] px,
int width,
int height)
This method blurs the given pixels based on a simple convolution filter with a 3x3 kernal consisting only of ones. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private BlurFilter()
Method Detail |
public static int[] getBlurredPixels(Image im) throws ImageException, InterruptedException
Images
class to load it and
wait for completion.
im
- The image to blur.
ImageException
- if something is wrong
with the image.
InterruptedException
- if an interrupt
occurs while loading the image data (unlikely).public static int[] getBlurredPixels(int[] px, int width, int height)
px
- The array of RGB pixel values.width
- The width of the image in pixels.height
- The height of the image in pixels.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |