RowIntegrate

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

Works along the rows of pixels in a TrianaPixelMap integrating the pixels. Ie. the red, green and blue values in each in the resulting image are the sums of all the red, green and blue values in the source left of the pixel in the row.

Mathematically:


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

    0 <= rr(i, j) <= 255
    0 <= gr(i, j) <= 255
    0 <= br(i, j) <= 255

Example

Before operation After operation

See also

ColIntegrate, ColumnMax, RowIntegrate, RowMax