OpenCV distance transform outputting an image that looks exactly like the input image

前端 未结 4 2388
情话喂你
情话喂你 2021-02-20 09:58

I am doing some detection work using OpenCV, and I need to use the distance transform. Except the distance transform function in opencv gives me an image that is exactly the sam

4条回答
  •  终归单人心
    2021-02-20 10:10

    You can print this values using this code before normalize function:

    for(int x=0; x<10;x++)
      { 
         cout<(x, y);
      }
    

提交回复
热议问题