Scale the region about its center by the given factors.
393 {
395 for (
size_t i = 0; i < std::min<size_t>(factors.size(),
start_coordinates.size()); i++) {
397 uint64_t half_span =
get_span(i) / 2;
398 auto new_half_span = static_cast<uint64_t>((double)half_span * factors[i]);
399
400 result.start_coordinates[i] = center - new_half_span;
401 result.end_coordinates[i] = center + new_half_span;
402 }
403 return result;
404 }
uint64_t get_span(uint32_t dimension_index=0) const
Get the span (length) of the region along a dimension.
std::vector< uint64_t > end_coordinates
Ending frame index (inclusive)
std::vector< uint64_t > start_coordinates
Starting frame index (inclusive)