enh(core): add a simpler function to set location of series instances
Description
These functions:
std::vector<double> Series::getImageOrientationPatient(std::size_t instance = 0);
void Series::setImageOrientationPatient(const std::vector<double>& imageOrientationPatient, std::size_t instance = 0);
std::vector<double> Series::getImagePositionPatient(std::size_t instance = 0);
void Series::setImagePositionPatient(const std::vector<double>& imageOrientationPatient, std::size_t instance = 0);
are not really intuitive and too close to the DICOM attributes. We want something easier to use.
Functional specifications
Gather all-in-one with a transform matrix as input. Keep old functions for backwards compatibility.
Technical specifications
sight::data::Matrix& Series::getImageTransformPatient(std::size_t instance = 0);
void Series::setImageTransformPatient(const sight::data::Matrix& transform, std::size_t instance = 0);
Test plan
Unit tests should be sufficient.