Detecting center point of cross using Matlab

后端 未结 6 1433
南笙
南笙 2020-12-30 09:46

\"alt

Hello, I have an image as shown above. Is it possible for me to detect the center point of the cro

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 10:04

    What about this;

    a) convert to binary just to make the algorithm faster.

    b) Perform a find on the resulting array

    c) choose the element which has either lowest/highest row/column index (you would have four points to choose from then

    d) now keep searching neighbours

    • have a global criteria for search that if search does not result in more than a few iterations, the point selected is false and choose another extreme point

    e) going along the neighbouring points, you will end up at a point where you have three possible neighbours.That is you intersection

提交回复
热议问题