ColumnMax

Author : Melanie Rhianna Lewis
Input Type : TrianaPixelMap
Output Type : TrianaPixelMap
Date :

Works down the columns of pixels in a TrianaPixelMap finding the maximum value of the pixels so far. Ie. the red, green and blue values in each in the resulting image are the maximum of all the red, green and blue values in the source image above the pixel in that column.

Mathematically:


    rr(i, j) = MAX(rs(i, 0), ... , rs(i, j - 1), rs(i, j))
    gr(i, j) = MAX(gs(i, 0), ... , gs(i, j - 1), gs(i, j))
    br(i, j) = MAX(bs(i, 0), ... , bs(i, j - 1), bs(i, j))

Example

Before operation After operation

See also

ColIntegrate, RowIntegrate, RowMax