[magick-users] RE: Averaging 8x8 blocks (Wolfgang Hugemann)

Anthony Thyssen anthony at griffith.edu.au
Tue Sep 18 18:27:36 PDT 2007


Fred Weinhaus on  wrote...
| Hello Wolfgang
| I believe that you may be able to do this as follows:
| 
| 1. To get the 8x8 downsized block average of the pixel values in an 
| image do the following:
| 
| convert image.jpg -filter box -resize 128x96 average.jpg
| 
If the image size is not known (but is a multiple of 8) you can use...

    convert image.jpg -filter box -resize 12.5% average.jpg


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
     Wecome to the Internet Scratch-It       ###  ###  ###  ###  ###  ###
     Any three matches to win!   -------->   ###  ###  ###  ###  ###  ###
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list