Bounded
struct
defined in module
FastVision
Bounded(block, size) <: WrapperBlock
A
WrapperBlock
for annotating spatial data blocks with size information for their spatial bounds. As an example,
Image{2}()
doesn't carry any size information since it supports variable-size images, but sometimes it can be useful to have the exact size as information where it can be known.
Encoding using
ProjectiveTransforms
returns
Bounded
s since it crops any input to the same size.
block
=
Image
{
2
}
(
)
# a 2D-image block with out size informatio
wrapper
=
Bounded
(
Image
{
2
}
(
)
,
(
128
,
128
)
)
# a 2D-image block with fixed size
@
test
checkblock
(
block
,
rand
(
10
,
10
)
)
@
test
!
checkblock
(
wrapper
,
rand
(
10
,
10
)
)
# Expects size `(128, 128)`
Wrapping a
Bounded
into another
Bounded
with the same dimensionality will update the bounds:
block
=
Image
{
2
}
(
)
Bounded
(
Bounded
(
block
,
(
16
,
16
)
)
,
(
8
,
8
)
)
==
Bounded
(
block
,
(
8
,
8
)
)
There are
2
methods for FastVision.Bounded
:
The following pages link back here:
FastVision.jl , blocks/bounded.jl , blocks/keypoints.jl , encodings/projective.jl , makie.jl