Page 1 of 1

Average color/lightness over line/polygon/other_figure

Posted: 2015-11-02T08:30:53-07:00
by MadAlex
Is it possible to calculate within imagemagick?
I haven't found nothing

Re: Average color/lightness over line/polygon/other_figure

Posted: 2015-11-02T10:53:17-07:00
by fmw42
For a simple calculator:

see http://www.imagemagick.org/Usage/transform/#fx and http://www.imagemagick.org/script/fx.php

Code: Select all

convert xc: -format "%[fx:2*5]\n" info:
10

Re: Average color/lightness over line/polygon/other_figure

Posted: 2015-11-02T11:09:39-07:00
by fmw42
To compute the average over a region, see http://www.fmwconcepts.com/imagemagick/ ... shape_mean

Re: Average color/lightness over line/polygon/other_figure

Posted: 2015-11-02T11:12:46-07:00
by fmw42
For a new user, please read viewtopic.php?f=1&t=9620