画像の各ピクセルで接線を見つけたい。注:画像の背景は白で、図形の境界線の色はブロックです。
私がしたことは、アルゴです
While(true)
take pixel
if pixel color is black
make 3 X 3 matrix => fill the matrix by surrounding pixel color
...means assume white =0 and black=1 then keeping selected pixel
at center for 3 X 3 matrix and finding all other value;
----------------------------here i want to find tangent line to selected pixel;
end if
Move to next pixel.
End while
頭の上の試験を手伝ってください。