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

◆ set_region_data()

void MayaFlux::Kakshya::TensorContainer::set_region_data ( const Region & region,
const std::vector< TensorData > & data )
overridevirtual

Overwrite the box a Region selects.

Parameters
regionDestination box.
dataExactly one tensor with the box's shape and the container's dtype.
Note
Anything else leaves the tensor unchanged.

Implements MayaFlux::Kakshya::NDDataContainer< TensorData >.

Definition at line 164 of file TensorContainer.cpp.

165{
166 if (data.size() != 1)
167 return;
168
169 const auto source = data.front().access();
170 if (!source)
171 return;
172
173 TensorInsertion(m_data).assign_window(region, *source);
174}
Source source()
Begin a Source chain.
Definition Plot.hpp:127

References MayaFlux::Kakshya::TensorInsertion::assign_window(), and m_data.

Here is the call graph for this function: