[orx-boofcv] Add colorBuffer resizeTo (#151)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user