cv-rs icon indicating copy to clipboard operation
cv-rs copied to clipboard

Mat::zeros does not accept enum

Open geoeo opened this issue 6 years ago • 4 comments

Expected:

let image_type = cv::CvType::Cv8SC3; let output = cv::Mat::zeros(rows, cols, image_type);

Actual: let image_type = 17 let output = cv::Mat::zeros(rows, cols, image_type);

geoeo avatar Mar 09 '19 11:03 geoeo

If this is classified as an issue, I can take a look at it

geoeo avatar Mar 19 '19 15:03 geoeo

I think enums are always better than mere numbers. But there is a huge refactoring of all the things so I think before #117 is resolved all other changes are frozen.

Pzixel avatar Mar 19 '19 16:03 Pzixel

I can take a look at this after the refactor is done. I am spending a lot of time on it today to hopefully get through that.

vadixidav avatar Mar 19 '19 23:03 vadixidav

9 days later it looks like its ready to merge. Once it is good to go I will look into this.

vadixidav avatar Mar 28 '19 21:03 vadixidav