[magick-users] Brightest Pixel Location

Fred Weinhaus fmw at alink.net
Tue Apr 15 17:22:09 PDT 2008


This also works:

convert rose: -type Grayscale -fx "u==rgb(255,255,255)?debug(u):1; u" null:


so I suppose you should be able to do (or any other rgb(r,g,b) combination:

convert rose: -fx "u==rgb(255,255,255)?debug(u):1; u" null:

currently I have reported a bug (IM 6.4.0-6) that is giving bad 
values for -verbose info: on the rose: image


convert rose: -verbose info:
Image: rose:
   ...
   Channel statistics:
     red:
       min: 8995.5 (0.137263)
       max: 65535.5 (1.00001)
       mean: 37448.5 (0.571428)
       standard deviation: 17808.9 (0.271746)
     green:
       min: 5654.5 (0.0862821)
       max: 65535.5 (1.00001)
       mean: 22940.4 (0.350048)
       standard deviation: 13484.7 (0.205764)
     blue:
       min: 6168.5 (0.0941253)
       max: 65535.5 (1.00001)
       mean: 20680.9 (0.31557)
       standard deviation: 14163.6 (0.216123)

where the max is larger than 1.0.  thus this does not seem to work 
without first converting to grayscale.

Hopefully this will be fixed shortly.


More information about the Magick-users mailing list