我想在图像中的每个像素处找到切线。注意:图像具有白色背景,形状边框颜色为块状。
我所做的是,阿尔戈
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
请帮助头上的考试。