syntax for -features?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

syntax for -features?

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: syntax for -features?

Post by magick »

This works for us:
  • identify logo: -features 1 -unique -verbose info:
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: syntax for -features?

Post by magick »

See http://www.imagemagick.org/script/identify.php:
  • identify -features 1 -unique -verbose rose:
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: syntax for -features?

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: syntax for -features?

Post by magick »

We'll add support to mogrify / convert for -feature.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: syntax for -features?

Post 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)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: syntax for -features?

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: syntax for -features?

Post by magick »

See Haralick, Textural features for image classification.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: syntax for -features?

Post 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
Post Reply