How to judge whether a rectangle in the figure is inside the given point cloud? For example, in this figure, the red rectangle is outside the point cloud and the green rectangle is outside the point cloud.
closed as unclear what you're asking by D.W.♦ Aug 25 '16 at 20:37
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
The point cloud can define a polygon. After you define a polygon you can use the point inside polygon test on the four corners of the rectangle and see if all the points are inside the polygon.