Summary of the invention
Fundamental purpose of the present invention is exactly the deficiency to prior art, provides a kind of automatic aircraft pursuit course track to realize the method that revise the image border, guarantees the bigger accuracy of fair curve and simplifies user's operation.
For realizing above-mentioned purpose, the present invention adopts following technical scheme:
A kind of automatic aircraft pursuit course track is realized the method that revise the image border, may further comprise the steps:
The detection curve section is picked up the segment of curve of the image border of frame institute frame choosing;
In magnifier correction frame, show said segment of curve according to setting enlargement factor;
Said segment of curve in the magnifier correction frame is carried out the correction of needs;
When the adjusting point in the magnifier correction frame arrive a side relative with revising starting point the border or with said borderline phase apart from be predetermined threshold value apart from the time, cause that segment of curve picks up frame and moves setpoint distance along the direction of correction.
Preferably, segment of curve picks up in said the moving of frame, keeps segment of curve to be presented at optimum position placed in the middle in the magnifier correction frame.
Preferably, said mobile setpoint distance is on next segment of curve that moves to size such as current curves section.
A kind of automatic aircraft pursuit course track is realized the device that revise the image border, comprising:
Detection module is used for the segment of curve that the detection curve section is picked up the image border of frame institute frame choosing;
Display module is used for showing said segment of curve at magnifier correction frame according to setting enlargement factor;
Correcting module is used for the said segment of curve of magnifier correction frame is carried out the correction of needs;
Pick up the dynamic model piece of frameing shift, be used for when the adjusting point of magnifier correction frame arrive a side relative with revising starting point the border or with said borderline phase apart from for predetermined threshold value apart from the time, make segment of curve pick up frame and move setpoint distance along the direction of revising.
Beneficial technical effects of the present invention is:
According to the present invention; When the adjusting point in the magnifier correction frame arrive a side relative with revising starting point the border or with this borderline phase apart from be predetermined threshold value apart from the time; Cause that segment of curve picks up frame and moves setpoint distance along the direction of revising; Be that segment of curve picks up frame continues to use the family automatically when current curves section line tail paints into modification direction to advancing slip certain distance, for example slide to etc. on next section curve of size that this helps long or have and reduce user's cursor under multistage curve (the having at interval) situation and move number of times at modified line; And it is level and smooth that curve is connected, and reduces owing to the people causes the edge for pause place in the Freehandhand-drawing process is unsmooth and draw the problem that accuracy reduces.Segment of curve picks up the automatic taxiing range curvilinear path of frame; Improved continuity to the correction of multistage curve; Guaranteed the bigger accuracy of fair curve,, user's focus more can have been concentrated on line drawing operation itself and the raising line drawing precision because operation is more convenient.
Embodiment
Below combine accompanying drawing that the present invention is further specified through embodiment.
See also Fig. 1, in an embodiment, the aircraft pursuit course track realizes that the method that revise the image border may further comprise the steps automatically:
The detection curve section is picked up the segment of curve of the image border of frame institute frame choosing;
In magnifier correction frame, show said segment of curve according to setting enlargement factor;
Said segment of curve in the magnifier correction frame is carried out the correction of needs;
When the adjusting point in the magnifier correction frame arrive a side relative with revising starting point the border or with said borderline phase apart from be predetermined threshold value apart from the time, cause that segment of curve picks up frame and moves setpoint distance along the direction of correction.The segment of curve that is renewal that magnifier correction this moment frame shows also can be proceeded to revise.
Predetermined threshold value distance can be the user as required and the adjusting point of setting and any distance on said border.
In preferred embodiment, segment of curve picks up in said the moving of frame, keeps segment of curve to be presented at optimum position placed in the middle in the magnifier correction frame.
In preferred embodiment, segment of curve picks up on next section curve that all slides to when frame moves at every turn with size such as current curves section.Also can be that segment of curve picks up the tail end that will go up a segment of curve when frame moves at every turn and stays in the frame.
As shown in Figure 2, in a more concrete embodiment, handle according to following steps:
At first, the curve data of an image border or profile is provided, these data can be obtained by the rim detection scheduling algorithm;
The setting curve section is picked up the frame size;
Put segment of curve and pick up frame on the segment of curve of needs correction;
Set the multiple that magnifier correction frame shows;
Can check and revise segment of curve this moment in magnifier correction frame, correction result will be presented in the variation of boundary curve in the image in real time;
Correction direction regardless of the user; For example be from left to right or from right to left; When the adjusting point in the magnifier correction frame arrives distance and revises magnifier correction edge circle of the relative side of starting point, will cause that all segment of curve picks up frame and moves setpoint distance along user's correction direction continuation;
Picking up frame shift moving after, will show synchronously also in the magnifier correction frame that the current curves section picks up new images and the segment of curve in the frame, preferably, above-mentioned mobile maintenance segment of curve is shown in optimum position placed in the middle in the magnifier correction frame;
The user can proceed to revise this moment to this part new segment of curve;
Pick up the automatic slip of frame along with segment of curve and revise the multistage curve continuously, finish until image border curve correction.
In the process of user's fair curve, upgrade the complete in real time preservation of curve data, the user revises to finish and can directly obtain and use new curve data.
Shown in Figure 3 is that a kind of automatic aircraft pursuit course track is realized the device that revise the image border, and it comprises:
Detection module is used for the segment of curve that the detection curve section is picked up the image border of frame institute frame choosing;
Display module is used for showing said segment of curve at magnifier correction frame according to setting enlargement factor;
Correcting module is used for the said segment of curve of magnifier correction frame is carried out the correction of needs;
Pick up the dynamic model piece of frameing shift, be used for when the adjusting point of magnifier correction frame arrive a side relative with revising starting point the border or with said borderline phase apart from for predetermined threshold value apart from the time, make segment of curve pick up frame and move setpoint distance along the direction of revising.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.