Hello,
I have an RGB BufferedImage which has 4 solid colors including black.
The image looks something like a target with a bull's eye, one color in the
center, another ring of color surrounding that, and another color around
that, all on a black background.
When I run ConvolveOp.filter( ) with the following edge-detection kernel:
float [ ] edgeKernelArray =
{
-1.0f, -1.0f, -1.0f,
-1.0f, 8.0f, -1.0f,
-1.0f, -1.0f, -1.0f
};
each edge looks like a discrete color. However, examining the data that
results from the edge detection shows that there are actually 12 different
color values in the edge-detected image.
What I would like to do is to get an edge-detected image that has only the
same number of colors as in the original source image. (Because I want to
do some additional processing following the edge detection.)
Does anyone know of a way to do edge-detection on an RGB image and have some
control on the resulting colors?
Thank you,
Ted Hill
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".