20.3 动态阈值

除其他外,以下代码也适用于边缘检测:

  read_image(&Image,"File_xyz");
  mean_image(Image,&Lp,11,11);
  dyn_threshold(Image,Lp,&Thres,5.0,"light");