[orx-boofcv] Add colorBuffer resizeTo (#151)

This commit is contained in:
Ricardo Matias
2020-09-11 10:31:59 +02:00
committed by GitHub
parent 26de896756
commit 847ad68868
3 changed files with 95 additions and 5 deletions

View File

@@ -15,11 +15,11 @@ fun main() {
}
// Load an image, convert to BoofCV format using orx-boofcv
val input = loadImage("demo-data/images/image-001.png").toPlanarU8()
val input = loadImage("demo-data/images/image-001.png")
val scaled = input.resize(0.5).toColorBuffer()
val scaled2 = input.resize(0.25).toColorBuffer()
val scaled3 = input.resize(0.1).toColorBuffer()
val scaled = input.resizeBy(0.5)
val scaled2 = input.resizeBy(0.25, convertToGray = true)
val scaled3 = input.resizeBy(0.1)
extend {
drawer.clear(ColorRGBa.BLACK)