MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ process_to_container() [1/2]

std::shared_ptr< Kakshya::TextureCollection > MayaFlux::Yantra::Vision::VisionWorkflow::process_to_container ( const std::shared_ptr< Kakshya::TextureContainer > &  frames,
Kinesis::Vision::VisionQuery  query,
VisionExtractMode  extract,
Kakshya::TextureCollectionSpec  spec = {} 
)
static

Run query over the layers of frames in order and record what extract takes from each into a collection.

Same as the image list overload, with the layers as the frames. A width or height of zero in spec takes the container's.

Returns
The filled collection, or null when frames is null.

Definition at line 596 of file VisionWorkflow.cpp.

601{
602 if (!frames) {
604 "VisionWorkflow::process_to_container: no frames");
605 return nullptr;
606 }
607
608 if (spec.width == 0 || spec.height == 0) {
609 spec.width = frames->get_width();
610 spec.height = frames->get_height();
611 }
612
613 return record_frames(frames->get_layer_count(),
614 [&frames](size_t i) { return frames->to_image(static_cast<uint32_t>(i)); },
615 frames, VisionMatrix::create(query, extract), spec);
616}
#define MF_WARN(comp, ctx,...)
static std::shared_ptr< ComputeMatrix > create()
Create a new ComputeMatrix instance.
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP)
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.

References MayaFlux::Journal::ComputeMatrix, MayaFlux::Kakshya::TextureCollectionSpec::height, MF_WARN, MayaFlux::Kakshya::TextureCollectionSpec::width, and MayaFlux::Journal::Yantra.