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