|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Result of executing a VisionSequence on one frame. More...
#include <VisionContext.hpp>
Collaboration diagram for MayaFlux::Kinesis::Vision::VisionResult:Public Member Functions | |
| std::span< const float > | as_span () const noexcept |
| Zero-copy float span into pixel_image storage. | |
| bool | is_ready () const noexcept |
| True when the sequence reached its end and this result may be consumed, cached, or broadcast. | |
Public Attributes | |
| BufferOutputs | buffers |
| GPU-resident export buffers, one named slot per exporting op. | |
| std::vector< BoundingBox > | component_boxes |
| One BoundingBox per component from a ConnectedComponents step in this sequence, label 1..count, or empty. | |
| std::shared_ptr< Core::VKImage > | flow |
| Dense optical flow field from OpticalFlowDense, or null. | |
| std::shared_ptr< Core::VKImage > | gray |
| Output of a RgbaToGray step in this sequence, or null. | |
| uint32_t | h { 0 } |
| ImageOutputs | images |
| Image output of whichever image-producing ops ran in this sequence, one named slot per op. | |
| float | motion_energy { 0.0F } |
| Mean per-pixel intensity change from OpticalFlowDense's own frame-to-frame comparison, 0 when there is no previous frame. | |
| Kakshya::DataVariant | pixel_image { std::vector<float> {} } |
| std::vector< SnapshotEntry > | snapshots |
| VisionStatus | status { VisionStatus::COMPLETE } |
| StructuredOutput | structured { std::monostate {} } |
| size_t | suspended_at { 0 } |
| uint32_t | w { 0 } |
Result of executing a VisionSequence on one frame.
pixel_image holds the final normalised float pixel buffer as a DataVariant (active alternative: vector<float>). Empty when the terminal step produces only structured output.
Callers access pixel data via: EigenAccess(result.pixel_image).view<Eigen::VectorXf>(): zero-copy Eigen map std::get<std::vector<float>>(result.pixel_image): direct vector access
w and h are the dimensions of pixel_image. Both are 0 when pixel_image is empty.
Definition at line 130 of file VisionContext.hpp.