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.
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2012-06-15T11:35:44-07:00
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.
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2012-06-15T13:35:01-07:00
This works for us:
identify logo: -features 1 -unique -verbose info:
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2012-06-15T14:06:29-07:00
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.
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2012-06-15T16:12:35-07:00
We'll add support to mogrify / convert for -feature.
anthony
Posts: 8883 Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia
Post
by anthony » 2012-06-18T22:44:25-07:00
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)
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2012-06-19T10:12:00-07:00
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.
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2012-06-19T11:28:22-07:00
See Haralick, Textural features for image classification.
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2012-06-19T14:25:33-07:00
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