Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 280 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 280 Bytes

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))