Skip to main content
. 2019 Oct 12;19(20):4423. doi: 10.3390/s19204423
Algorithm 2 Edge Detection and Stixel Estimation-Based Segmentation
  1. Use yY=d×d to denote the segmentation mask, use yY={0,1}d×d for a binary edge map.

  2. Find the intensity gradients of the image. Generate candidate features x(i,j,k).

  3. Define a mapping Π:YZ.

  4. Run the structured edge detector on the original, half, and double resolution version of I and average the result of the three edge maps after resizing to the original image dimensions.

  5. Track the edges by hysteresis thresholding: Finalize the detection of the edges by suppressing all the other edges that are weak and not connected to strong edges.
    Hij=12πσ2exp((i(k+1))2+(j(k+1))22σ2);1i,j(2k+1)
  6. Generate bounding area of candidate points.
    Chorizon=ix12πσ2exp((i(k+1))2+(j(k+1))22σ2)Gx;1i,j(2k+1)
    Cvertical=jy12πσ2exp((i(k+1))2+(j(k+1))22σ2)Gy;1i,j(2k+1)
    where x,y are the coordinates of pixel, σ is the standard deviation of the Gaussian distribution, I is the matrix of the image, and Chorizon, Cvertical are the horizontal and vertical direction values of the histograms in Figure 2.