Added orx-integral-image

Fixed bug in JumpFlood
This commit is contained in:
Edwin Jakobs
2018-10-30 15:41:48 +01:00
parent 45fb27c8af
commit 40b8a8ace7
5 changed files with 98 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
# 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))
```