**Algorithm 2. Polygonal approximation by computing the significant measure of IDP.**

Input: Digital curve *Cd*, Number of dominant points (*k*) in the output polygon. Output: Output polygon with the specified number of dominant points (*k*). **Begin.**

Step 1: Invoke the function *CIDP.*

Step 2: Compute significant measure associated with all initial dominant points (*sk's*).

Step 3: Repeat.


```
Until (No. of DPs == k).
End
```