RowMax

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

Works along the rows of pixels in a TrianaPixelMap finding the maximum value of the pixels. 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 left of the pixel in that column.

Mathematically:


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

Example

Before operation After operation

See also

ColIntegrate, ColumnMax, RowIntegrate