detect if a pixel in RGB image belong to a line between two other pixels (MATLAB)

前端 未结 2 443
天涯浪人
天涯浪人 2021-01-19 08:12

I have a problem in my matlab project

I have a RGB color image, and I have two specified pixel (x1,y1) and (x2,y2) I want to check each pixel in the image and determ

2条回答
  •  太阳男子
    2021-01-19 09:00

    You are, though you may not know it, trying to implement Bresenham's Algorithm or a similar algorithm.

提交回复
热议问题