User guide (TODO)

Library

Projective transformations

Preprocessing

Reference

private makeboundsfunction

makebounds(sz[, T])
makebounds(ranges[, T])

Helper for creating spatial bounds.

Examples

using DataAugmentation: makebounds, showbounds
makebounds((100, 100), Float32)
2×2 Matrix{StaticArrays.SVector{2, Float32}}:
 [0.0, 0.0]    [0.0, 100.0]
 [100.0, 0.0]  [100.0, 100.0]
makebounds((100, 100)) == makebounds((1:100, 1:100))
true
bounds = makebounds((100, 100))
showbounds(bounds)
LoadError("string", 2, MethodError(zeros, (ColorTypes.RGBA{FixedPointNumbers.N0f8}, (100, 100), StaticArrays.SVector{2, Float32}[[0.0, 0.0] [0.0, 100.0]; [100.0, 0.0] [100.0, 100.0]]), 0x0000000000008235))