BSI-OFIQ / OFIQ-Project

Open Source Facial Image Quality
Other
38 stars 12 forks source link

- error fix for not continuous matrix in OpenCV #25

Closed m-schaubert closed 3 months ago

m-schaubert commented 3 months ago

In some rare cases, image crops created using ROIs (cvImage(roi)) are not continuous matrices, this leads to an exception when this crop is reshaped for processing: OpenCV(4.5.5) .../src/modules/core/src/matrix.cpp:1175: error: (-13:Image step is wrong) The matrix is not continuous, thus its number of rows can not be changed in function 'reshape' This PR fixes that.