d/ht: planarize takes const input

This commit is contained in:
Simon Zeni 2021-11-08 15:00:34 -05:00
parent 986cde6750
commit 32330d467c
2 changed files with 2 additions and 2 deletions

View file

@ -224,7 +224,7 @@ rotatedRectFromJoints(struct ht_view *htv, xrt_vec2 center, xrt_vec2 wrist_to_mi
}
void
planarize(cv::Mat &input, uint8_t *output)
planarize(const cv::Mat &input, uint8_t *output)
{
// output better be the right size, because we are not doing any bounds checking!
assert(input.isContinuous());

View file

@ -61,4 +61,4 @@ struct DetectionModelOutput
rotatedRectFromJoints(struct ht_view *htv, xrt_vec2 center, xrt_vec2 wrist_to_middle, DetectionModelOutput *out);
void
planarize(cv::Mat &input, uint8_t *output);
planarize(const cv::Mat &input, uint8_t *output);