Added orx-integral-image
Fixed bug in JumpFlood
This commit is contained in:
12
orx-integral-image/README.md
Normal file
12
orx-integral-image/README.md
Normal 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))
|
||||
```
|
||||
Reference in New Issue
Block a user