Files
orx/orx-integral-image
2019-01-17 19:39:31 +01:00
..
2019-01-17 19:39:31 +01:00
2018-10-30 15:41:48 +01:00

orx-integral-image

Usage

val image = colorBuffer( ... )
image.shadow.download()
val integralImage = IntegralImage.fromColorBufferShadow(image.shadow)

// -- the sum for a given area can be queried using
val sum = integralImage.sum(IntRectangle(20, 20, 100, 100))