ColIntegrate

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

Works down the columns 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 image above the pixel in that column.

Mathematically:


    rr(i, j) = SUM(rs(i, 0), ... , rs(i, j - 1), rs(i, j))
    gr(i, j) = SUM(gs(i, 0), ... , gs(i, j - 1), gs(i, j))
    br(i, j) = SUM(bs(i, 0), ... , bs(i, j - 1), 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

ColumnMax, RowIntegrate, RowMax