LazyBoundingBoxSequence
@fovea/annotation-tool / interpolation / LazyBoundingBoxSequence
Class: LazyBoundingBoxSequence
Defined in: src/utils/interpolation.ts:680
LazyBoundingBoxSequence
Description
Lazy evaluation wrapper for bounding box sequences with caching.
Constructors
Constructor
new LazyBoundingBoxSequence(
keyframes
,segments
):LazyBoundingBoxSequence
Defined in: src/utils/interpolation.ts:692
Create a lazy bounding box sequence.
Parameters
keyframes
Keyframe bounding boxes
segments
Interpolation segments
Returns
LazyBoundingBoxSequence
Methods
getBoxAtFrame()
getBoxAtFrame(
frameNumber
):null
|BoundingBox
Defined in: src/utils/interpolation.ts:704
Get bounding box at a specific frame with caching.
Parameters
frameNumber
number
Frame number
Returns
null
| BoundingBox
Bounding box at frame
getCacheSize()
getCacheSize():
number
Defined in: src/utils/interpolation.ts:810
Get cache statistics.
Returns
number
Cache size
invalidateCache()
invalidateCache(
affectedFrameRange?
):void
Defined in: src/utils/interpolation.ts:794
Invalidate cache for specific frame range.
Parameters
affectedFrameRange?
[number
, number
]
Optional frame range to invalidate
Returns
void