about ImageMagick segmentation

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
chyaila

about ImageMagick segmentation

Post by chyaila »

Hi,

I am new to ImageMagick.
I want to give an image as an input to ImageMagick and get the number of segments present in the image.

1) I believe segment [ options ... ] input_file output_file would work for it. But I am not able to find how to start the command prompt for ImageMagick in Windows. Please guide me to start the command prompt.

2) Does this
MagickBooleanType SegmentImage(Image *image,
const ColorspaceType colorspace,const MagickBooleanType verbose,
const double cluster_threshold,const double smooth_threshold)
function get called when I write the above command at command prompt?
If yes, what is MagickBooleanType returntype? It seems to be a boolean, not an integer?

3) If I am proceeding in the wrong direction to find the number of segments in an image, please explain to me how should I go about it?


Thanks,
Post Reply