A kind of method of automatic aircraft pursuit course path implementation image border amendment and device
Technical field
The present invention relates to image processing field, particularly relate to a kind of method and device of automatic aircraft pursuit course path implementation image border amendment.
Background technology
All kinds of image processing system all needs to carry out post-processed to Nonlinear magnify, particularly in medical image processing system, often needs to carry out image border amendment by after Nonlinear magnify.No. 201110183696.2nd, Chinese patent application discloses a kind of Nonlinear magnify measuring method and device (content disclosed in the document quote in full mode be incorporated to herein), and the method comprises: detect and determine the current position coordinates scope in image display area of virtual image magnifier that user chooses; Intercept the image in described choice box and show in the amplification display box of virtual image magnifier; Carry out the image amplified in display box measuring the actual measured value of drawing and obtaining measured value and image, record this actual measured value.But, by people for Freehandhand-drawing is revised in the line drawing operating process of image border, as longer in image border curve or have multistage curve (having interval), user just needs repeatedly to move cursor number of times, produce and repeatedly pause, make multistage curve junction unsmooth, cause image border to draw accuracy and reduce, and user operation is also made troubles.
Summary of the invention
Fundamental purpose of the present invention is exactly for the deficiencies in the prior art, provides a kind of method of automatic aircraft pursuit course path implementation image border amendment, guarantees the larger accuracy of fair curve and simplify user operation.
For achieving the above object, the present invention is by the following technical solutions:
A method for automatic aircraft pursuit course path implementation image border amendment, comprises the following steps:
The segment of curve of the image border of detection curve section pickup frame institute frame choosing;
Described segment of curve is shown according to setting enlargement factor in magnifier correction frame;
To the correction that the described segment of curve in magnifier correction frame needs;
When the adjusting point in magnifier correction frame arrives magnifier correction edge circle of the side relative with revising starting point or is apart predetermined threshold value distance with described correction edge circle, cause segment of curve to pick up frame and move setpoint distance along the direction revised.
Preferably, in the described movement of segment of curve pickup frame, segment of curve is kept to be presented at optimum position placed in the middle in magnifier correction frame.
Preferably, described mobile setpoint distance moves to on next segment of curve of current curves section equal length.
A device for automatic aircraft pursuit course path implementation image border amendment, comprising:
Detection module, for the segment of curve of the image border of detection curve section pickup frame institute frame choosing;
Display module, for showing described segment of curve according to setting enlargement factor in magnifier correction frame;
Correcting module, for the correction needed the described segment of curve in magnifier correction frame;
Pickup frame mobile module, for arrive when the adjusting point in magnifier correction frame with revise the relative side of starting point magnifier correction edge circle or with described correction edge circle in time be predetermined threshold value distance, make segment of curve pickup frame move setpoint distance along the direction of correction.
The technique effect that the present invention is useful is:
According to the present invention, when the adjusting point in magnifier correction frame arrives the border of the side relative with revising starting point or is apart predetermined threshold value distance with this border, cause segment of curve to pick up frame and move setpoint distance along the direction revised, namely segment of curve pickup frame when current curves section line tail paints into automatically along the amendment direction of user to advancing slip certain distance, such as to slide to etc. on next section of curve of size, this contributes to longer at modified line or reduces user's cursor under having multistage curve (having interval) situation and move number of times, and it is level and smooth to make curve connect, reduce due to people for pause place in Freehandhand-drawing process is unsmooth and cause edge draw accuracy reduce problem.Segment of curve pickup frame automatic sliding aircraft pursuit course track, improve the continuity to multistage curve amendment, ensure that the larger accuracy of fair curve, because operation is more convenient, also make user's focus more can concentrate on line drawing operation itself and improve in line drawing precision.
Accompanying drawing explanation
Fig. 1 is the basic flow sheet of the inventive method;
Fig. 2 is the process flow diagram of the inventive method embodiment;
Fig. 3 is the structural representation of apparatus of the present invention embodiment.
Embodiment
By reference to the accompanying drawings the present invention is described in further detail by the following examples.
Refer to Fig. 1, in an embodiment, the method for automatic aircraft pursuit course path implementation image border amendment comprises the following steps:
The segment of curve of the image border of detection curve section pickup frame institute frame choosing;
Described segment of curve is shown according to setting enlargement factor in magnifier correction frame;
To the correction that the described segment of curve in magnifier correction frame needs;
When the adjusting point in magnifier correction frame arrives magnifier correction edge circle of the side relative with revising starting point or is apart predetermined threshold value distance with described correction edge circle, cause segment of curve to pick up frame and move setpoint distance along the direction revised.The segment of curve being renewal of now magnifier correction frame display also can proceed to revise.
Predetermined threshold value distance can be the user's adjusting point of setting and any distance on described border as required.
In preferred embodiment, in the described movement of segment of curve pickup frame, segment of curve is kept to be presented at optimum position placed in the middle in magnifier correction frame.
In preferred embodiment, all slide to on next section of curve of current curves section equal length when segment of curve pickup frame moves at every turn.Also can be when segment of curve pickup frame moves at every turn, the tail end of a upper segment of curve is stayed in frame.
As shown in Figure 2, in one comparatively specific embodiment, process according to following steps:
First, provide the curve data of an image border or profile, these data can be obtained by rim detection scheduling algorithm;
Setting curve section pickup frame size;
Putting segment of curve pickup frame is needing on the segment of curve revised;
The multiple of setting magnifier correction frame display;
Now can check in magnifier correction frame and revise segment of curve, correction result will present in the change of boundary curve in the picture in real time;
Regardless of the correction direction of user, such as from left to right or from right to left, when the adjusting point in magnifier correction frame arrives apart from when revising magnifier correction edge circle of the relative side of starting point, segment of curve all will be caused to pick up frame and to continue mobile setpoint distance along the correction direction of user;
After pickup is frameed shift and moved, also by the new images in simultaneous display current curves section pickup frame and segment of curve in magnifier correction frame, preferably, the above-mentioned mobile segment of curve that keeps is shown in optimum position placed in the middle in magnifier correction frame;
User now can proceed to revise to this part new segment of curve;
Along with the automatic slip serial update multistage curve of segment of curve pickup frame, until image border curve amendment is complete.
In the process of user's fair curve, upgrade curve data complete preservation in real time, user revises and completely directly can obtain and use new curve data.
Figure 3 shows that a kind of device of automatic aircraft pursuit course path implementation image border amendment, it comprises:
Detection module, for the segment of curve of the image border of detection curve section pickup frame institute frame choosing;
Display module, for showing described segment of curve according to setting enlargement factor in magnifier correction frame;
Correcting module, for the correction needed the described segment of curve in magnifier correction frame;
Pickup frame mobile module, for arrive when the adjusting point in magnifier correction frame with revise the relative side of starting point magnifier correction edge circle or with described correction edge circle in time be predetermined threshold value distance, make segment of curve pickup frame move setpoint distance along the direction of correction.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.