19using namespace Magick;
21int main(
int argc,
char **argv)
25 cout <<
"Usage: " << argv[0] <<
" file..." << endl;
33 std::list<std::string> attributes;
35 attributes.push_back(
"TopLeftColor");
36 attributes.push_back(
"TopRightColor");
37 attributes.push_back(
"BottomLeftColor");
38 attributes.push_back(
"BottomRightColor");
39 attributes.push_back(
"filter:brightness:mean");
40 attributes.push_back(
"filter:brightness:standard-deviation");
41 attributes.push_back(
"filter:brightness:kurtosis");
42 attributes.push_back(
"filter:brightness:skewness");
43 attributes.push_back(
"filter:saturation:mean");
44 attributes.push_back(
"filter:saturation:standard-deviation");
45 attributes.push_back(
"filter:saturation:kurtosis");
46 attributes.push_back(
"filter:saturation:skewness");
48 char **arg = &argv[1];
53 cout <<
"File: " << fname << endl;
57 image.process(
"analyze",0,0);
59 list<std::string>::iterator pos = attributes.begin();
60 while(pos != attributes.end())
62 cout <<
" " << setw(16) << setfill(
' ') << setiosflags(ios::left)
63 << *pos <<
" = " << image.attribute(*pos) << endl;
69 cout << error_.what() << endl;