We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f524db commit c87b295Copy full SHA for c87b295
modules/ximgproc/src/thinning.cpp
@@ -69,6 +69,7 @@ static void thinningIteration(Mat img, int iter, int thinningType){
69
// Apply the thinning procedure to a given image
70
void thinning(InputArray input, OutputArray output, int thinningType){
71
Mat processed = input.getMat().clone();
72
+ CV_Assert(processed.type == CV_8UC1);
73
// Enforce the range of the input image to be in between 0 - 255
74
processed /= 255;
75
0 commit comments