In the paper by Suzuki Abe, I try the border following algorithm from their example:,
and here the algorithm:
My result from their algorithm is
It's different from the paper result, the result become -2 when in paper 2, when I process step 3.4 part a. Is it (i3,j3+1) mean coordinate column from current pixel+1?