METHOD AND APPARATUS FOR ADSORBING STRAIGHT LINE/LINE SEGMENT, METHOD AND APPARATUS FOR CONSTRUCTING POLYGON
First Claim
1. A method for adsorbing a straight line/line segment in an image, comprising:
- displaying, by a device comprising a processor, a preset straight line/line segment;
dragging, by the device, the straight line/line segment when a first part of the straight line/line segment is selected and moved, andwhen a second part of the straight line/line segment is in the vicinity of a detected line segment in an image, setting the preset straight line/line segment to be superposed with the detected line segment, wherein the vicinity refers to that a minimum distance between the second part of the straight line/line segment and the detected line segment meets a preset rule.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention discloses a method for adsorbing a straight line/line segment in an image, including: presetting a straight line/line segment, dragging the straight line/line segment by selecting a first part of the line segment, and when a second part of the straight line/line segment is dragged to the vicinity of a line segment in an image, setting the preset line segment to be superposed with the line segment, the vicinity referring to that a minimum distance between the second part of the straight line/line segment and the line segment meets a preset rule. In the present invention, by means of the foregoing technical solution, a user can be conveniently assisted, according to a line segment that exists in an image, to define a polygon frame, so that subsequent image processing can be conveniently performed.
6 Citations
12 Claims
-
1. A method for adsorbing a straight line/line segment in an image, comprising:
- displaying, by a device comprising a processor, a preset straight line/line segment;
dragging, by the device, the straight line/line segment when a first part of the straight line/line segment is selected and moved, and when a second part of the straight line/line segment is in the vicinity of a detected line segment in an image, setting the preset straight line/line segment to be superposed with the detected line segment, wherein the vicinity refers to that a minimum distance between the second part of the straight line/line segment and the detected line segment meets a preset rule. - View Dependent Claims (2, 3, 4, 5, 11)
- displaying, by a device comprising a processor, a preset straight line/line segment;
-
6. A method for adsorbing a straight line/line segment in an image, comprising:
-
displaying, by a device comprising a processor, a preset straight line/line segment; dragging, by the device, the straight line/line segment by selecting a first part of the straight line/line segment, and when dragging ends, a second part of the straight line/line segment is in the vicinity of a corresponding second part of a detected line segment in an image, setting the preset straight line/line segment to be superposed with the detected line segment, wherein the vicinity refers to that a minimum distance between the second part of the straight line/line segment and the detected line segment meets a preset rule. - View Dependent Claims (7, 8, 9, 10)
-
-
12-18. -18. (canceled)
Specification