|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jigl.image.SimpleOperator
|
+--jigl.image.ops.Convolve
Performs Convolution on an image using a supplied normalized kernel. Supports GrayImage, RealGrayImage, ColorImage, RealColorImage.
If the kernel is not normalized, the colvolution result may look strange.
| Nested Class Summary | |
(package private) class |
Convolve.Threader
Inner class for class Convolve. |
| Field Summary | |
private ImageKernel |
kernel
The image kernel for convolution |
| Constructor Summary | |
Convolve(ImageKernel k)
Initilizes Convolve. |
|
| Method Summary | |
protected Image |
apply(ColorImage image)
Applies the kernel to image. |
protected Image |
apply(ColorImage image,
ROI roi)
Applies the kernel to image with a Region of Interest. |
protected Image |
apply(GrayImage image)
Applies the kernel to image. |
protected Image |
apply(GrayImage image,
ROI roi)
Applies the kernel to image in a Region of
Interest. |
protected Image |
apply(RealColorImage image)
Applies the kernel to a RealColorImage. |
protected Image |
apply(RealColorImage image,
ROI roi)
Applies the kernel to a RealColorImage with a Region of Interest. |
protected Image |
apply(RealGrayImage image)
Applies the kernel to image. |
protected Image |
apply(RealGrayImage image,
ROI roi)
Applies the kernel to image in a Region of Interest. |
ColorImage |
applyThreaded(ColorImage gr)
Applys a threaded version for faster execution on machine supporting multi-threads. |
static void |
main(String[] argv)
Allows for command line options. |
| Methods inherited from class jigl.image.SimpleOperator |
apply, apply, apply, apply, apply, apply |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ImageKernel kernel
| Constructor Detail |
public Convolve(ImageKernel k)
k are odd, and the kernel is normalized.
| Method Detail |
protected Image apply(GrayImage image)
throws ImageNotSupportedException
image. The center of the kernel is
specified at the position of (kernel.X()/2, kernel.Y()/2).
Returned image is a GrayImage of
the same size as the original image. image is not modified.
apply in class SimpleOperatorimage - GrayImage to convolve.
ImageNotSupportedException
protected Image apply(GrayImage image,
ROI roi)
throws ImageNotSupportedException
image in a Region of
Interest.
The enter of the kernel is
specified at the position of (kernel.X()/2, kernel.Y()/2).
Returned image is a GrayImage of the same size with the area under the
roi are convolved. image is not modified.
apply in class SimpleOperatorimage - GrayImage to convolve.roi - Region of Interest of image.
ImageNotSupportedExceptionprotected Image apply(RealGrayImage image)
image. The center of the kernel is
specified at the position of (kernel.X()/2, kernel.Y()/2).
Returned image is a RealGrayImage
of the same size as the original image.
image is not modified.
apply in class SimpleOperatorimage - RealGrayImage to convolve.
protected Image apply(RealGrayImage image,
ROI roi)
image in a Region of Interest.
The center of the kernel is
specified at the position of (kernel.X()/2, kernel.Y()/2).
Returned image is a RealGrayImage of the same size with the area under the
roi are convolved. image is not modified.
apply in class SimpleOperatorimage - RealGrayImage to convolve.roi - Region of Interest of image.
protected Image apply(ColorImage image)
throws ImageNotSupportedException
image. Kernel is applied to each plane
of the image separately. The center of the kernel is
specified at the position of (kernel.X()/2, kernel.Y()/2).
Returned image is a ColorImage of the same size.
apply in class SimpleOperatorimage - ColorImage to convolve.
ImageNotSupportedException
protected Image apply(ColorImage image,
ROI roi)
throws ImageNotSupportedException
image with a Region of Interest.
Kernel is applied to each plane of the image separately.
The center of the kernel is
specified at the position of (kernel.X()/2, kernel.Y()/2).
Returned image is a ColorImage of the same size. image is not modified.
apply in class SimpleOperatorimage - ColorImage to convolve.roi - Region of Interest of image.
ImageNotSupportedExceptionprotected Image apply(RealColorImage image)
(kernel.X()/2, kernel.Y()/2).
image is not modified.
Returned image is a RealColorImage of the same size.
apply in class SimpleOperatorimage - RealColorImage to convolve.
protected Image apply(RealColorImage image,
ROI roi)
(kernel.X()/2, kernel.Y()/2).
Returned image is a RealColorImage of the same size. image is not modified.
apply in class SimpleOperatorimage - RealColorImage to convolve.roi - Region of Interest of image.
public ColorImage applyThreaded(ColorImage gr)
public static void main(String[] argv)
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||