IM trying to exaplain with this image
get the color average for each column of pixel of complex image
and obtain a line that indicate which is the average pixel by column
this is similar to project image 2d to 1d and get the average color of this projection
I found some similar to this post
https://stackoverflow.com/questions/271 ... y-quantile
I only need obtain the colors average per column not the complete curve
Please help me
its possible get the average pixel of every columns of pixels?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: its possible get the average pixel of every columns of pixels?
Please always provide your IM version and platform/OS when asking questions, since syntax may vary.
or
The latter will give you text listing of each pixel in the 1D average.
Code: Select all
convert image.png -scale x1 1Dimage.png
Code: Select all
convert image.png -scale x1 txt:
Re: its possible get the average pixel of every columns of pixels?
yes I not refer exactly to this but your answer help me thank you
I use a command like this for reduce dimension to a line
I use a command like this for reduce dimension to a line
Code: Select all
convert image.png -scale 100x3% xr2d.png
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: its possible get the average pixel of every columns of pixels?
x1 means one row by full number of columns, (Wx1)