20.2   Detecting Edges

The following HALCON/C sequence is suitable for edge detection:

  read_image(&Image,"File_xyz");
  sobel_amp(Image,&Sobel,"sum_abs",3);
  threshold(Sobel,&Max,30.0,255.0);
  skeleton(Max,&Edges);

Some remarks about the code: