Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: IBA::to_OpenCV fails for ImageCache-backed images (#4013)
We were using parallel_convert_image but not realizing that asking for the IB::localpixels() would give us nullptr for an IC-backed image. Instead, "wrap" the cv::Mat with an IB and then use IBA::copy(). This handles both in-memory and IC-backed ImageBuf's, and also has many other advantages (such as format conversion) we may wish to take advantage of in the future. Fixes #3800 Signed-off-by: Larry Gritz <[email protected]>
- Loading branch information