Change tensorimpl opencv `future_std::span<cv::Mat>` to `cv::Mat`
Why ?
TensorImpl_opencv attribute future_std::span<cv::Mat> mData;
is not relevant.
MR Content :
-
Change to cv::Mat mData;
-
Adapt functions of TensorImpl_opencv -
Adapt tests -
Change the opencv::imread
flag fromIMREAD_COLOR
toIMREAD_UNCHANGED
and adpat tests. The flagIMREAD_COLOR
was always loading 3 channels, even for grayscale images whileIMREAD_UNCHANGED
adapts to the input file. See : https://docs.opencv.org/4.x/d8/d6a/group__imgcodecs__flags.html#ga61d9b0126a3e57d9277ac48327799c80
Implement the solution presented in issue #3 (closed).
-
Change the constructor of TensorImpl to take the dimensions of the tensor as argument instead of the number of elements. For tensorImpl_opencv : - Add mDims attribute in the class to use in Lazy_init (Instanciation of cv::Mat)
- Override the resize function from TensorImpl.hpp to update mDims
Edited by Thibault Allenet