segment generate different results using API and mogrify
Posted: 2007-01-12T15:12:39-07:00
hello,
i used C++ API, e.g. image.segment(cluster_size,1.5), and get a grayvalue image with only one graytone.
However, if I write it out "image.write("***.bmp"), and use Dos command, mogrify -segment cluster_size ***.bmp, it gives me a reasonable segmented image with a few graytones.
Could someone please tell me what went wrong? The image is a grayscale image.
Thanks
i used C++ API, e.g. image.segment(cluster_size,1.5), and get a grayvalue image with only one graytone.
However, if I write it out "image.write("***.bmp"), and use Dos command, mogrify -segment cluster_size ***.bmp, it gives me a reasonable segmented image with a few graytones.
Could someone please tell me what went wrong? The image is a grayscale image.
Thanks