47
Procedure to Accumulate Lines
• Set accumulator array A to all zero.
    Set point list array PTLIST to all NIL.
• For each pixel (R,C) in the image {
• compute gradient magnitude GMAG
• if GMAG > gradient_threshold {
• compute quantized tangent angle THETAQ
• compute quantized distance to origin DQ
• increment A(DQ,THETAQ)
• update PTLIST(DQ,THETAQ) } }