我执行距离变换后,结果图像有步骤4我希望将它乘以图像与步骤3如何做到它们具有相同的尺寸
代码:
Mat& bwImgIn, Mat& bwImgOut;
distanceTransform(bwImgIn, bwImgOut, distType, maskSize);
Mat colorimg;
normalize(colorimg, colorimg, 0, 1, CV_MINMAX);// iwant image to be beteeen 0-1 is it correct ?
multiply(colorimg, bwImgOut, d1); //crash
colorimg 200*100 , dims=2 , step 300,3
bwImgOut 200*100 , dims 2, step 400,4 --> not same !!!