[SOLVED]How avoid smudged edges produced from B&W silhouette
Posted: 2013-03-07T05:07:48-07:00
Hi,
I am using IM version 6.6.9-7 in Ubuntu Linux.
I have an image that I pre-processed using the following command:
I now want to take the resulting B&W silhouette and generate the edge.
I have tried the following commands:
As far as I can see, the B&W silhouette prior to edge detection, has a clean border with
no speckles or smudges. However, after edge detection the edges is smeared with
pixels. Is there any way I can generate "clean" edges? The examples in the IM site
don't seem to have this problem.
The following link show the files in question:
Original image:https://www.dropbox.com/s/o2wtirbc4ym3i25/original.jpg
Image after pre-processing:https://www.dropbox.com/s/vgafcn8noa1yl8n/clean_bw.jpg
The (smudgy) result:https://www.dropbox.com/s/w1wdvod9jh4wuv0/edge_bw.jpg
TIA,
Hugo
I am using IM version 6.6.9-7 in Ubuntu Linux.
I have an image that I pre-processed using the following command:
Code: Select all
convert $image_file -colorspace Gray $gray_image
Code: Select all
convert $gray_image -threshold 80% $bw_image
Code: Select all
convert $bw_image -morphology Smooth Octagon:3 $clean_bw_image
I have tried the following commands:
Code: Select all
convert $bw_image -edge 2 -negate $edge_bw_image
convert $clean_bw_image -negate -edge 2 -negate $edge_bw_image
convert $clean_bw_image -edge 1 -negate $edge_bw_image
convert $clean_bw_image -negate -morphology EdgeIn Diamond -negate $edge_bw_image
convert $clean_bw_image -negate -morphology Edge Diamond -negate $edge_bw_image
no speckles or smudges. However, after edge detection the edges is smeared with
pixels. Is there any way I can generate "clean" edges? The examples in the IM site
don't seem to have this problem.
The following link show the files in question:
Original image:https://www.dropbox.com/s/o2wtirbc4ym3i25/original.jpg
Image after pre-processing:https://www.dropbox.com/s/vgafcn8noa1yl8n/clean_bw.jpg
The (smudgy) result:https://www.dropbox.com/s/w1wdvod9jh4wuv0/edge_bw.jpg
TIA,
Hugo