Pixels between 2 intersecting lines
问题 I need to find pixel values that are between the intersection of 2 lines. The following image shows the points that I want namely the brown region. These 4 co-ordinates can change and are not necessarily the corner points. What is the fastest way to get the pixel values ? Is there any function that can give me the necessary mask. 回答1: You should calculate for each point, whether it is above the line or below. If the line is given in its equation form Ax+By+C , then it is as simple as