Page 1 of 1

syntax for -features?

Posted: 2012-06-15T11:35:44-07:00
by fmw42
IM 6.7.7.7 Q16 Mac OSX Snow Leopard

from viewtopic.php?f=1&t=21229
anthony wrote:
Actually IM does have something along those lines, I just don't understand them

The operation is -features and -unique
and they produce verbose identify output.
See http://www.imagemagick.org/script/comma ... p#features

I have tried several commands and cannot figure out the syntax. What is the proper syntax?

convert shape_ellipse_mask.gif -features 10 null:
convert: unrecognized option `-features' @ error/convert.c/ConvertImageCommand/1570.


convert shape_ellipse_mask.gif -features 10 -verbose info:
convert: unrecognized option `-features' @ error/convert.c/ConvertImageCommand/1570.

Re: syntax for -features?

Posted: 2012-06-15T13:35:01-07:00
by magick
This works for us:
  • identify logo: -features 1 -unique -verbose info:

Re: syntax for -features?

Posted: 2012-06-15T13:37:07-07:00
by magick
See http://www.imagemagick.org/script/identify.php:
  • identify -features 1 -unique -verbose rose:

Re: syntax for -features?

Posted: 2012-06-15T14:06:29-07:00
by fmw42
magick wrote:See http://www.imagemagick.org/script/identify.php:
  • identify -features 1 -unique -verbose rose:

Thanks. That does work.

I did not know it was limited only to identify and not also to convert. Is that true or should it work with convert as well, since it is listed on the convert options page?

The convert options page needs to note that. I will make a change there.

Re: syntax for -features?

Posted: 2012-06-15T16:12:35-07:00
by magick
We'll add support to mogrify / convert for -feature.

Re: syntax for -features?

Posted: 2012-06-18T22:44:25-07:00
by anthony
It does work for "magick" in IMv7.

Code: Select all

  magick rose: -features 1 -unique -verbose info:
But then I have almost no 'per-command' syntax check in IMv7 as it syntax checks at it works.
(Required for pipelined and file reading of options)

Re: syntax for -features?

Posted: 2012-06-19T10:12:00-07:00
by fmw42
magick wrote:We'll add support to mogrify / convert for -feature.

Do you have any reference paper that you coded from that might explain or identify the metrics. I know they are mostly based upon the cooccurrence matrix.

Re: syntax for -features?

Posted: 2012-06-19T11:28:22-07:00
by magick
See Haralick, Textural features for image classification.

Re: syntax for -features?

Posted: 2012-06-19T14:25:33-07:00
by fmw42
magick wrote:See Haralick, Textural features for image classification.
Yes, that makes sense. Haralick was the one I remember from my earlier days and the cooccurrence matrix.

For those interested, here is another link with perhaps more explanation.

http://www.fp.ucalgary.ca/mhallbey/tutorial.htm