INNER CODE UNIT · C

offset_lu

chunquedong/mgp · core/3rd/edtaa3func.c:183

    offset_lu = -w-1;

    /* Initialize the distance images */
    for(i=0; i<w*h; i++) {
        distx[i] = 0; // At first, all pixels point to
        disty[i] = 0; // themselves as the closest known.
        if(img[i] <= 0.0)
        {
            dist[i]= 1000000.0; // Big value, means "not set yet"
        }
        else if (img[i]<1.0) {
            dist[i] = edgedf(gx[i], gy[i], img[i]); // Gradient-assisted estimate
        }
        else {
            dist[i]= 0.0; // Inside the object
        }
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…