CN1125875A - Two-dimensional rotary method of image synthetic device two-demensional conversion device - Google Patents
Two-dimensional rotary method of image synthetic device two-demensional conversion device Download PDFInfo
- Publication number
- CN1125875A CN1125875A CN 94113519 CN94113519A CN1125875A CN 1125875 A CN1125875 A CN 1125875A CN 94113519 CN94113519 CN 94113519 CN 94113519 A CN94113519 A CN 94113519A CN 1125875 A CN1125875 A CN 1125875A
- Authority
- CN
- China
- Prior art keywords
- vertical
- horizontal
- aforementioned
- step value
- order
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The 2-D rotation method for image synthesizer features that settings are in advance calculated and stored based on rotation angle, rotation center, position on screen and magnification times during vertical blanking; at the beginning of each scan line, the horizontal and vertical coordinates of scan line starting point relative to image origins are loaded respectively in horizontal and vertical position registers; and a horizontal and a vertical step values are respectively accumulated to horizontal and vertical registers to generate horizontal and vertical position each time when a graphic dot is added.
Description
The invention relates to a kind of two-dimensional transformations method of image synthesizer, particularly about the two-dimentional spinning solution of application image synthesizer two-dimensional transformations device.
At present, image forming appts in the general electronic game machine, as the game machine of Nintendo (FamiCOM) of Japan, Sega game machine (MegaDrive), and NEC game machine (PC-Engi-ne) etc., not possessing the image of making amplifies arbitrarily, dwindles and function such as rotation, it all only possesses the function of displacement scrolling usually, and therefore the style that can change in the design of recreation is also just very limited.But along with popularizing of electronic game machine, user's demand is also just more and more many, therefore can provide the electronic game machine that changes the recreation of enriching also just to be the user's favorite, and also is the target that the fabricator lays siege to simultaneously.
In general electronic game machine, for the picture that makes recreation changes than horn of plenty, normally in the program of recreation, increase the more procedure code or the data of figure, but so can make recreation on display speed, can't reach i.e. requirement, also cause the increase of card casket cost simultaneously because of the capacity that must increase storer to showing.
In order to improve the display effect of knowing electronic game machine, the inventor has proposed a kind of two-dimensional transformations device, shown in Fig. 1 a and Fig. 1 b, it comprises: a horizontal reference position generation device 10, in order to produce the graphic level reference position that a screen scanning line is corresponded to; One horizontal step value generation device 50 is in order to produce the graphic level step value that the screen scanning line is corresponded to; One horizontal level LD device 60 stores aforementioned levels reference position and the temporary transient result who stores first adder in order to be written into; One first adder 40 in order to the content addition with aforementioned levels step value and aforementioned levels location register device 60, and then exports aforementioned levels location register device 60 to; One vertical reference position generation device 110 is in order to produce the vertical reference position of figure that the screen scanning line is corresponded to; One vertical step value generation device 150 is in order to produce the vertical step value of figure that the screen scanning line is corresponded to; One upright position LD device 160 stores vertical reference position and the temporary transient result who stores second adder in order to be written into; One second adder 140 in order to the content addition with aforementioned vertical step value and aforementioned upright position LD device 160, and then exports aforementioned upright position LD device 160 to.
Aforementioned levels location register device 60 is subjected to a horizontal control signal XLD control to be written into the output data XSTART of aforementioned levels reference position generation device 10 with decision or is written into the operation result of aforementioned first adder 40.Also has a horizontal clock signal XCK in addition, in order to touch the action that is written into of aforementioned levels location register device 60.In the same manner, aforementioned upright position LD device 160 control that is subjected to a vertical control signal YLD is written into the output data YSTART of aforementioned vertical reference position generation device 110 with decision or is written into the operation result of aforementioned second adder 140.And a vertical clock signal YCK is arranged, in order to touch the action that is written into of aforementioned upright position LD device 160.
Aforementioned levels location register device 60 and upright position LD device 160 are exported a horizontal level X and a upright position Y respectively, read a figure point data and export on the aforementioned display according to aforementioned levels position and upright position (not to be shown on the figure).
See also Fig. 1 a, aforementioned levels reference position generation device 10 comprises: one first multiplexer 15, receive horizontal reference position in order to handle the path, and the level that is subjected to is selected the horizontal reference position of the control of signal XMSEL with decision output via many; One first horizontal generation device 20, its horizontal reference position is for to produce in the mode that adds up automatically; One second horizontal generation device 30, its horizontal reference position is an operation result.Wherein, the aforementioned first horizontal generation device 20 comprises: one first horizontal LD device 25, in order to deposit the horizontal level of screen starting point on figure; One second horizontal LD device 22 is in order to deposit a step value that adds up automatically; One the 3rd horizontal LD device 23, be written into the value of the aforementioned first horizontal LD device 25 or the result who deposits the 3rd adder 21 in order to the control that is subjected to a horizontal LD device control signal XCLD with decision, and have a horizontal LD device clock signal XCCK to touch the action that is written into that aforementioned the 3rd level is posted device 23; One the 3rd adder 21 is in order to the step value in the aforementioned second horizontal LD device 22 and the content addition of the aforementioned the 3rd horizontal LD device 23.The generation device of the horizontal reference position of the aforementioned second horizontal generation device 30 then comprises: the aforementioned first horizontal LD device 25, in order to deposit the horizontal level of screen starting point on figure; One the 4th horizontal LD device 31 is in order to deposit the data that are written into from a storer; One the 4th adder 33 in order to the content addition with the aforementioned first horizontal LD device 25 and the aforementioned the 4th horizontal LD device 31, is used the horizontal reference position that produces the second horizontal generation device 30; And a horizontal blanking device 32, with the aforementioned the 4th horizontal LD device 31 forbidden energy, making its value is 0 in order to foundation one horizontal enable signal XOEN.
See also Fig. 1 b, structure shown in similar Fig. 1 a, aforementioned vertical reference position generation device 110 comprises: one second multiplexer 115 receives vertical reference position in order to handle the path via many, and is subjected to a vertical vertical reference position of selecting the control of signal YMSEL with decision output; One first vertical generation device 120, its vertical reference position is for to produce in the mode that adds up automatically; One second vertical generation device 130, its vertical reference position is an operation result.Wherein, the aforementioned first vertical generation device 120 comprises: one first vertical LD device 125, in order to deposit the upright position of screen starting point on figure; One second vertical LD device 122 is in order to deposit a step value that adds up automatically; One the 3rd vertical LD device 123, be written into the value of the aforementioned first vertical LD device 125 with decision or deposit the result of slender acanthopanax subtraction unit 121 in order to the control that is subjected to a vertical LD device control signal YCLD, and touch the action that is written into of the aforementioned the 3rd vertical LD device 123 by a vertical LD device clock signal YCCK, one slender acanthopanax subtraction unit 121 is in order to the step value in the aforementioned second vertical LD device 122 and the content addition of the aforementioned the 3rd vertical LD device 123.The aforementioned the 3rd vertical generation device 130 then comprises: the aforementioned first vertical LD device 125, in order to deposit the upright position of screen starting point on figure; One the 4th vertical LD device 131 is in order to deposit the data that are written into from a storer; One the 6th adder 133 in order to the content addition with the aforementioned first vertical LD device 125 and the aforementioned the 4th vertical LD device 131, is used the vertical reference position that produces the second vertical generation device 130; And a vertical blanking device 132, with the aforementioned the 4th vertical LD device 131 forbidden energy, making its value is 0 in order to foundation one vertical enable signal YOEN.
The two-dimensional transformations device that utilizes the aforementioned inventor to propose though can more easily image be amplified or dwindle, if desire to make the image of demonstration to produce rotate effect, then still must cooperate specific two-dimensional transformations method, otherwise just can't make the image rotation.
In view of this, purpose of the present invention promptly is to propose a two-dimentional spinning solution, and it is applicable to the two-dimensional transformations device of aforementioned image synthesizer, and makes the image that shows can at random amplify, dwindle and rotate.
Generally speaking, the parameter that influences image rotation is: the anglec of rotation, rotation center and the rotation center position on screen.These three parameters have determined the mode of rotation, and when these parameter changes, image just can demonstrate different rotate effects.If add convergent-divergent (scale) parameter, then can simultaneously the image that rotates be amplified or dwindle.
Two-dimentional spinning solution of the present invention is applied in the aforesaid two-dimensional transformations device, see also Fig. 2, its with a figure coordinate (RX, RY) as rotation center, and the screen coordinate that this rotation center is presented on the screen is (HC, VC), the anglec of rotation is θ, and the convergent-divergent multiplying power is scale, and the method comprises the following steps: that (1) utilizes the initial coordinate XSTART of selection signal sets level, vertical initial coordinate YSTART, the generation path of horizontal step value XSTEP and vertical step value YSTEP; (2) utilize a central processing unit to calculate or be taken at by memory read and produce the initial coordinate XSTART of aforementioned levels, aforementioned vertical initial coordinate YSTART, register on the path of aforementioned levels step value XSTEP and aforementioned vertical step value YSTEP and storer must setting value, and during vertical blanking period or horizontal blanking, each setting value is deposited in respectively in each register and the storer; When (3) each bar sweep trace begins on screen, initial coordinate XSTART of aforementioned levels and aforementioned vertical initial coordinate YSTART are loaded into respectively in horizontal level register and the upright position register; (4) when every increase by one figure point, add up respectively a horizontal step value to the aforementioned levels location register producing a horizontal level, and add up a vertical step value to aforementioned upright position register to produce a upright position.Wherein, aforementioned levels reference position XSTART, aforementioned vertical reference position YSTART, aforementioned levels step value XSTEP and aforementioned vertical step value YSTEP need satisfy following relationship:
XSTEP=cosθ×(1/scale);
YSTEP=sinθ×(1/scale);
XSTART=SPX+VC×XCS;
YSTART=SPY+VC×YCS。
Wherein
XCS=-sinθ×(1/scale);
YCS=cosθ×(1/scale);
SPX=RX-VC×XCS-HC×XSTEP;
SPY=RY-VC×YCS-HC×YSTEP;
By in each register and storer, writing suitable value, make horizontal reference position, horizontal step value, vertical reference position and vertical step value satisfy aforesaid relation, just may command is via the rotation of the image of aforementioned two-dimensional transformations device conversion and amplification or the display effect of dwindling.
In order to be illustrated more clearly in method of the present invention, structure and characteristics, it is as follows that conjunction with figs. describes preferred embodiment in detail now:
Brief Description Of Drawings:
Fig. 1 a is the block scheme of the level conversion part in the two-dimensional transformations device that uses of two-dimentional spinning solution of the present invention;
Fig. 1 b is the block scheme of the vertical transition part in the two-dimensional transformations device that uses of two-dimentional spinning solution of the present invention;
Fig. 2 is the anglec of rotation, rotation center and the rotation center relation between position on the screen and rotation figure in pattern space and screen space;
Fig. 3 is that the screen coordinate point corresponds to the graphic of the formed array of coordinate points on the figure.
See also Fig. 3, the while is with reference to the structure of two-dimensional transformations device shown in earlier figures 1a and Fig. 1 b.Wherein the direction of arrow 200 is the direction of sweep trace, and to the relation between the figure point sweep trace relative position and two kinds of more following relative positions on next bar sweep trace more up and down arranged at the last figure point of screen, can represent with vectorial A and B respectively, vector A is illustrated in the step value between the last figure point of one scan line, and vectorial B represents the step value between sweep trace.Wherein, vectorial A can be expressed as (XSTEP, YSTEP), vectorial B can be expressed as (XCS, YCS), aforementioned XSTEP is horizontal step value, YSTEP is vertical step value, and XCS and YCS are the step value that adds up automatically.Therefore, to an anglec of rotation θ, then there is following relationship:
XSTEP=cosθ
YSTEP=sinθ
XCS=-sinθ
YCS=cos θ is if desire to add the effect of convergent-divergent (scaling) simultaneously when conversion, and then aforesaid relation can change into
XSTEP=cosθ×(1/scale)
YSTEP=sinθ×(1/scale)
XCS=-sinθ×(1/scale)
YCS=cosθ×(1/scale)
The figure coordinate that one screen coordinate position of arbitrary sweep trace is corresponded to (X, Y) can show be
X=XSTART+hc×XSTEP (1)
Y=YSTART+hc×YSTEP (2)
Wherein, (XSTART YSTART) represents the starting point of this one scan line, and (XSTEP YSTEP) then represents the step value of this one scan line.And as Fig. 1 a and Fig. 1 b, (XSTART YSTART) can be by the first horizontal generation device and the first vertical generation device or the second horizontal generation device and the second vertical generation device generation for the starting point of sweep trace.
(XSTART is by the first horizontal generation device and the first vertical survivor that generation device produces YSTART), and it is for utilizing the mode that adds up automatically, and then the figure coordinate that corresponded to of a screen coordinate position of arbitrary sweep trace can be expressed as when the starting point of sweep trace
X=SPX+VC×XCS+hc×XSTEP (3)
Y=SPY+VC×YCS+hc×YSTEP (4)
Wherein, SPX is the horizontal level of screen starting point on figure, and SPY is the upright position of screen starting point on figure.Because rotation center (RX, RY) and (HC is known VC), so formula (3) and (4) can change in the position of rotation center on screen
RX=SPX+VC×XCS+HC×XSTEP (5)
RY=SPY+VC * YCS+HC * YSTEP (6) so
SPX=RX-VC×XCS-HC×XSTEP (7)
SPY=RY-VC×YCS-HC×YSTEP (8)
And if the starting point (XSTART of sweep trace, YSTART) be by the second horizontal generation device and the second vertical survivor that generation device produces, then it is to use the mode that reads in storer, and the figure coordinate that a screen coordinate position of arbitrary sweep trace is corresponded to can be expressed as:
X=SPX+XOM+hc×XSTEP (9)
Y=SPY+YOM+hc×YSTEP (10)
Wherein, XOM and YOM are the data that read in a storer, and these data are to calculate earlier good and exist in the storer and must satisfy
XSTART=SPX+XOM=RX-VC×XCS-HC×XSTEP+VC×XCS
YSTART=SPY+YOM=RX-VC×YCS-HC×YSTEP+VC×YCS
Horizontal location data XOM in the aforesaid storer and upright position data Y OM can be and calculate earlier well and deposit in one and table look-up, and be designated as index to read automatically with the vertical base of screen, or by central processing unit during horizontal blanking in the write store, when needs, read in by storer again.
Please consult Fig. 1 a and Fig. 1 b again, wherein, SPX is stored in the first horizontal LD device 25, XCS is stored in the second horizontal LD device 22, and XOM is stored in the 4th horizontal LD device 31, SPY is stored in the first vertical LD device 125 in addition, and YCS is stored in the second vertical LD device 122, and YOM is stored in the 4th vertical LD device 131.
By the explanation of front as can be known, if setting value with XCS and YCS, the setting value of XSTEP and YSTEP, the SPX of formula (7) and (8), SPY, and XOM and YOM deposit in respectively in LD device and the storer earlier, then just can produce the rotation of image via the computing of aforesaid two-dimensional transformations device, the effect of amplifying, dwindling.Therefore two-dimentional spinning solution of the present invention comprises the following steps:
(1) utilizes a level to select signal XMSEL to control the horizontal reference position XSTART that first multiplexer selects the output first horizontal generation device to produce earlier, and utilize a vertical signal YMSEL that selects to control the vertical reference position YSTART that second multiplexer selects the output first vertical generation device to produce;
(2) according to anglec of rotation θ, rotation center RX, RY, the position HC of rotation center on screen, VC, and convergent-divergent multiplying power scale calculates step value XCS and the YCS that adds up automatically respectively, the step value XSTEP and the YSTEP of sweep trace, and position SPX and the SPY of screen starting point on figure, and it is inserted in the register at vertical blanking period;
(3) when each bar sweep trace begins, be loaded into respectively in horizontal level register and the upright position register with respect to initial coordinate of the level on the figure and vertical initial coordinate via the first horizontal generation device and the first vertical generation device starting point with sweep trace;
(4) then when every increase by one figure point, the horizontal step value XSTEP that can add up respectively produces a horizontal level to the horizontal level register, and the vertical step value YSTEP that adds up produces a upright position to the upright position register;
(5), can in a pattern data memory (not shown), read a figure point data, and export on the screen according to aforementioned levels position and upright position.
Another preferred embodiment of two-dimentional spinning solution of the present invention comprises the following steps:
(1) utilizes a level to select signal XMSEL to control the horizontal reference position XSTART that first multiplexer selects the output second horizontal generation device to produce earlier, and utilize a vertical signal YMSEL that selects to control the vertical reference position YSTART that second multiplexer selects the output second vertical generation device to produce;
(2) at foundation anglec of rotation θ, rotation center RX, RY, rotation center RX, the position HC of RY on screen, VC, and convergent-divergent multiplying power scale, calculate the step value XCS and the YCS that add up automatically respectively, the step value XSTEP and the YSTEP of sweep trace, and position SPX and the SPY of screen starting point on figure, and at vertical blanking period it is inserted in the register, calculate data XOM and the YOM that deposits in the storer in addition, and in the write store;
(3) when each bar sweep trace begins, be loaded into respectively in horizontal level register and the upright position register with respect to initial coordinate of the level on the figure and vertical initial coordinate via the second horizontal generation device and the second vertical generation device starting point with sweep trace;
(4) then when every increase by one figure point, the horizontal step value XSTEP that can add up respectively produces a horizontal level to the horizontal level register, and the vertical step value YSTEP that adds up produces a upright position to the upright position register;
(5), in a pattern data memory (not shown), read a figure point data, and export on the screen according to aforementioned levels position and upright position.
Because of the first horizontal generation device in the aforementioned two-dimensional transformations device, the first vertical generation device, the second horizontal generation device and the second vertical generation device are subjected to the control of enable signal and control signal again, so the setting value of its each register has a little difference, yet it all need satisfy:
XSTEP=cosθ×(1/scale);
YSTEP=sinθ×(1/scale);
XCS=-sinθ×1/scale;
YCS=cosθ×1/scale;
XSTART=RX-VC×XCS-HC×XSTEP+VC×XCS;
YSTART=RX-VC×YCS-HC×YSTEP+VC×YCS。
Via the reference position and the step value of the resulting sweep trace of aforementioned relation, the effect that can make image show rotation and amplify or dwindle.
The another preferred embodiment of two-dimentional spinning solution of the present invention comprises the steps:
(I) at vertical blanking period, according to anglec of rotation θ, rotation center RX, RY, the rotation center position HC on screen, VC, and convergent-divergent multiplying power scale calculate and deposit in the setting value of each LD device in the aforementioned two-dimensional transformations device in advance;
(II) when each bar sweep trace VC begins, the starting point of sweep trace is loaded in aforementioned levels location register device and the upright position LD device with respect to initial coordinate XSTART of the level on figure and vertical initial coordinate YSTART;
(III) then when every increase by one figure point, add up respectively horizontal step value XSTEP to the aforementioned levels location register producing a horizontal level, and add up a vertical step value YSTEP to aforementioned upright position LD device to produce a upright position;
And aforementioned two-dimentional spinning solution need satisfy following condition:
XSTEP=cosθ×(1/scale),
YSTEP=sinθ×(1/scale),
XSTART=RX-VC×XCS-HC×XSTEP+VC×XCS,
YSTART=RY-VC×YCS-HC×YSTEP+VC×YCS。
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; any those who are familiar with this art; a little change of being done does not all break away from design of the present invention and scope with retouching, so protection scope of the present invention is as the criterion when looking the claim scope person of defining of the present invention.
Claims (7)
1, a kind of two-dimentional spinning solution of image synthesizer is applicable to a two-dimensional transformations device, can be in order to screen coordinate be converted to the figure coordinate, and this kind two-dimensional transformations device comprises a level conversion part and a vertical transition part; The aforementioned levels conversion portion comprises one first multiplexer, one first adder, one horizontal step value generation device, one horizontal level LD device, one by the first horizontal LD device, the second horizontal LD device, the first horizontal generation device that the 3rd horizontal LD device and the 3rd adder are formed, reach one by the first horizontal LD device, one the 4th horizontal LD device, the second horizontal generation device that horizontal blanking device and the 4th adder are formed; Aforementioned vertical transition partly comprises one second multiplexer, one second adder, one vertical step value generation device, one upright position LD device, one by the first vertical LD device, the second vertical LD device, the first vertical generation device that the 3rd vertical LD device and slender acanthopanax subtraction unit are formed, reach one by the first vertical LD device, one the 4th vertical LD device, the second vertical generation device that a vertical blanking device and one the 6th adder are formed; It is characterized in that, wherein, comprise the following steps:
(I) the horizontal reference position of utilizing a level to select signal controlling first multiplexer to select the output first horizontal generation device to produce earlier, and utilize a vertical vertical reference position of selecting signal controlling second multiplexer to select the output first vertical generation device to produce;
(II) according to anglec of rotation θ, rotation center RX, RY, rotation center RX, the RY position HC on screen, VC, and convergent-divergent multiplying power scale, calculate the step value XCS, the YCS that add up automatically respectively, step value XSTEP, the YSTEP of sweep trace, and position SPX, the SPY of screen starting point on figure, and it is inserted in the LD device at the vertical blanking period of screen;
(III) when each bar sweep trace begins, be loaded into respectively in horizontal level register and the upright position register with respect to initial coordinate XSTART of the level on the figure and vertical initial coordinate YSTART via the first horizontal generation device and the first vertical generation device starting point with sweep trace;
(IV) when every increase by one figure point, the horizontal step value XSTEP that adds up respectively produces a horizontal level to the horizontal level register, and the vertical step value YSTEP that adds up produces a upright position to the upright position register;
Aforementioned two-dimentional spinning solution need satisfy:
XSTEP=cosθ×(1/scale),
YSTEP=sinθ×(1/scale),
XCS=-sinθ×(1/scale),
YCS=cosθ×(1/scale),
SPX=RX-VC×XCS-HC×XSTEP,
SPY=RY-VC * YCS-HC * YSTEP, and to each sweep trace VC, it satisfies
XSTART=SPX+VC×XCS,
YSTART=SPY+VC×YCS。
2, method as claimed in claim 1, it is characterized in that, wherein, aforementioned step value XCS, the YCS that adds up automatically deposited in the second horizontal LD device and the second vertical LD device respectively, and position SPX, the SPY of screen starting point on figure then deposited in the first horizontal LD device and the first vertical LD device respectively.
3, a kind of two-dimentional spinning solution of image synthesizer is applicable to a two-dimensional transformations device, can be in order to screen coordinate be converted to the figure coordinate, and this kind two-dimensional transformations device comprises a level conversion part and a vertical transition part; The aforementioned levels conversion portion comprises one first multiplexer, one first adder, one horizontal step value generation device, one horizontal level LD device, one by the first horizontal LD device, the second horizontal LD device, the first horizontal generation device that the 3rd horizontal LD device and the 3rd adder are formed, reach one by the first horizontal LD device, one the 4th horizontal LD device, the second horizontal generation device that horizontal blanking device and the 4th adder are formed; Aforementioned vertical transition partly comprises one second multiplexer, one second adder, one vertical step value generation device, one upright position LD device, one by the first vertical LD device, the second vertical LD device, the first vertical generation device that the 3rd vertical LD device and slender acanthopanax subtraction unit are formed, reach one by the first vertical LD device, one the 4th vertical LD device, the second vertical generation device that a vertical blanking device and one the 6th adder are formed; It is characterized in that, wherein, comprise the following steps:
(I) the horizontal reference position of utilizing a level to select signal controlling first multiplexer to select the output second horizontal generation device to produce earlier, and utilize a vertical vertical reference position of selecting signal controlling second multiplexer to select the output second vertical generation device to produce;
(II) according to anglec of rotation θ, rotation center RX, RY, rotation center RX, the position HC of RY on screen, VC, and convergent-divergent multiplying power scale, calculate the step value XCS, the YCS that add up automatically respectively, step value XSTEP, the YSTEP of sweep trace, and position SPX, the SPY of screen starting point on figure, and at the vertical blanking period of screen it is inserted in the LD device, calculate the data XOM, the YOM that deposit in the storer in addition, and in the write store;
(III) when each bar sweep trace begins, be loaded into respectively in horizontal level register and the upright position register with respect to the initial coordinate XSTART of the level on the figure, vertical initial coordinate YSTART via the second horizontal generation device and the second vertical generation device starting point with sweep trace;
(IV) when every increase by one figure point, the horizontal step value XSTEP that adds up respectively produces a horizontal level to the horizontal level register, and the vertical step value YSTEP that adds up produces a upright position to the upright position register;
Aforementioned two-dimentional spinning solution need satisfy:
XSTEP=cosθ×(1/scale)
YSTEP=sinθ×(1/scale)
XCS=-sinθ×(1/scale)
YCS=cos θ * (1/scale) and to each bar sweep trace VC satisfies
XSTART=SPX+XOM=RX-VC×XCS-HC×XSTEP+VC×XCS;
YSTART=SPY+YOM=RY-VC×YCS-HC×YSTEP+VC×YCS。
4, method as claimed in claim 3, it is characterized in that, wherein, the data XOM, the YOM that are stored in the storer calculate earlier well and deposit in the storer, are loaded into respectively in the time will producing the starting point of sweep trace in the 4th horizontal LD device and the 4th vertical LD device again.
5, a kind of two-dimentional spinning solution of image synthesizer, be applicable to a two-dimensional transformations device, can be in order to screen coordinate be converted to the figure coordinate, this kind two-dimensional transformations device comprises: a horizontal reference position generation device, in order to produce the graphic level reference position XSTART that a screen scanning line is corresponded to; One horizontal step value generation device is in order to produce the graphic level step value XSTEP that aforementioned screen scanning line is corresponded to; One horizontal level LD device stores aforementioned levels reference position and the temporary transient horizontal location data that stores other in order to be written into; One first adder in order to the content addition with aforementioned levels step value and aforementioned levels location register device, and then exports addition result in the aforementioned levels location register device to; One vertical reference position generation device is in order to produce the vertical reference position YSTART of a figure that aforementioned screen scanning line is corresponded to; One vertical step value generation device is in order to produce the vertical step value YSTEP of a figure that aforementioned screen scanning line is corresponded to; One upright position LD device stores aforementioned vertical reference position and the temporary transient upright position data that store other in order to be written into; One second adder in order to the content addition with aforementioned vertical step value and aforementioned upright position LD device, and then exports addition result in the LD device of aforementioned upright position to; It is characterized in that, wherein, comprise the following steps:
(I) at vertical blanking period, according to anglec of rotation θ, rotation center RX, RY, the rotation center position HC on screen, VC, and convergent-divergent multiplying power scale calculate and deposit in the setting value of each LD device in the aforementioned two-dimensional transformations device in advance;
(II) when each bar sweep trace VC begins, the starting point of sweep trace is loaded in aforementioned levels location register device and the upright position LD device with respect to initial coordinate XSTART of the level on figure and vertical initial coordinate YSTART;
(III) then when every increase by one figure point, add up respectively horizontal step value XSTEP to the aforementioned levels location register producing a horizontal level, and add up a vertical step value YSTEP to aforementioned upright position LD device to produce a upright position;
And aforementioned two-dimentional spinning solution need satisfy following condition:
XSTEP=cosθ×(1/scale),
YSTEP=sinθ×(1/scale),
XSTART=RX-VC×XCS-HC×XSTEP+VC×XCS,
YSTART=RY-VC×YCS-HC×YSTEP+VC×YCS。
6, method as claimed in claim 5 is characterized in that, wherein, aforementioned levels reference position generation device comprises: one first horizontal LD device, in order to deposit the horizontal level SPX of screen starting point on figure; One second horizontal LD device is in order to deposit a step value XCS who adds up automatically; One the 3rd horizontal LD device, be written into the value of the aforementioned first horizontal LD device with decision or deposit the horizontal location data that adds up automatically in the aforementioned second horizontal LD device in order to the control that is subjected to a horizontal LD device control signal, and touch it by a horizontal LD device clock signal and be written into action; One the 3rd adder, in order to the content addition with step value in the aforementioned second horizontal LD device and aforementioned the 3rd horizontal LD device, the result with addition deposits the aforementioned the 3rd horizontal LD device in again; And aforementioned vertical reference position generation device comprises: one first vertical LD device, in order to deposit the upright position SPY of screen starting point on figure; One second vertical LD device is in order to deposit a step value YCS who adds up automatically; One the 3rd vertical LD device, be written into the value of the aforementioned first horizontal LD device with decision or deposit the upright position data that add up automatically in the aforementioned second vertical LD device in order to the control that is subjected to a vertical LD device control signal, and touch it by a vertical LD device clock signal and be written into action; One slender acanthopanax subtraction unit, in order to the step value in the aforementioned second vertical LD device and the content addition of aforementioned the 3rd vertical LD device, the result with addition deposits the aforementioned the 3rd vertical LD device in again; In abovementioned steps (I), the setting value of each LD device more need satisfy following relationship:
XCS=-sinθ×1/scale,
YCS=cosθ×1/scale,
XSTART=RX-VC×XCS-HC×XSTEP+VC×XCS;
YSTART=RY-VC×YCS-HC×YSTEP+VC×YCS。
7, method as claimed in claim 5 is characterized in that, wherein, aforementioned levels reference position generation device comprises: one first horizontal LD device, in order to deposit the horizontal level SPX of screen starting point on figure; One the 4th horizontal LD device is in order to deposit a step value XOM who adds up automatically; One the 4th subtraction unit in order to the content addition with the aforementioned first horizontal LD device and aforementioned the 4th horizontal LD device, uses producing a horizontal reference position XSTART; And aforementioned vertical reference position generation device comprises: one first vertical LD device, in order to deposit the horizontal level SPY of screen starting point on figure; One the 4th vertical LD device is in order to deposit the data Y OM that is written into from a storer; One the 6th adder in order to the content addition with the aforementioned first vertical LD device and the aforementioned the 4th vertical LD device, uses producing a vertical reference position YSTART; In abovementioned steps (I), calculate
XCS′=-sinθ×(1/scale),
YCS′=cosθ×(1/scale),
SPX′=RX-VC×XCS′-HC×XSTEP,
SPY′=RY-VC×YCS′-HC×YSTEP。
XSTART=SPX+XOM,
YSTART=SPY+YOM, so the content of the setting value of LD device and storer need satisfy following relationship:
SPX+XOM=SPX′+VC×XCS′;
SPY+YOM=SPY′+VC×YCS′。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN94113519A CN1081369C (en) | 1994-12-27 | 1994-12-27 | Two-dimensional rotary method of image synthetic device two-demensional conversion device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN94113519A CN1081369C (en) | 1994-12-27 | 1994-12-27 | Two-dimensional rotary method of image synthetic device two-demensional conversion device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1125875A true CN1125875A (en) | 1996-07-03 |
CN1081369C CN1081369C (en) | 2002-03-20 |
Family
ID=5036742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN94113519A Expired - Lifetime CN1081369C (en) | 1994-12-27 | 1994-12-27 | Two-dimensional rotary method of image synthetic device two-demensional conversion device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1081369C (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207818B (en) * | 2006-12-20 | 2010-08-11 | 普诚科技股份有限公司 | Data conversion apparatus |
CN101893997A (en) * | 2010-02-23 | 2010-11-24 | 华为终端有限公司 | Video control method and electronic device |
CN104913722A (en) * | 2015-07-01 | 2015-09-16 | 江南大学 | True position detecting method for pin of socket connector of vehicle controller |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2550360B1 (en) * | 1983-05-23 | 1989-12-01 | Hitachi Ltd | PROCESSING PROCESS FOR ROTATING AN IMAGE |
JPS61199175A (en) * | 1985-02-28 | 1986-09-03 | Mitsubishi Electric Corp | System for rotating image by optional angle |
US4850028A (en) * | 1985-09-04 | 1989-07-18 | Canon Kabushiki Kaisha | Image processing method and apparatus therefor |
-
1994
- 1994-12-27 CN CN94113519A patent/CN1081369C/en not_active Expired - Lifetime
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207818B (en) * | 2006-12-20 | 2010-08-11 | 普诚科技股份有限公司 | Data conversion apparatus |
CN101893997A (en) * | 2010-02-23 | 2010-11-24 | 华为终端有限公司 | Video control method and electronic device |
CN104913722A (en) * | 2015-07-01 | 2015-09-16 | 江南大学 | True position detecting method for pin of socket connector of vehicle controller |
CN104913722B (en) * | 2015-07-01 | 2017-08-22 | 江南大学 | A kind of car body controller connector pin normotopia degree detection method |
Also Published As
Publication number | Publication date |
---|---|
CN1081369C (en) | 2002-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1022351C (en) | Image processing apparatus | |
CN101046891A (en) | Texture mapping apparatus and method | |
CN1265319C (en) | Method for zooming | |
CN1070383C (en) | Background picture display apparatus and external storage used therefor | |
CN1008486B (en) | Image processing system | |
EP1345179A3 (en) | Method and apparatus for computer graphics animation | |
CN1684497A (en) | Image pantography and image pantograph device system | |
CN1351326A (en) | Image display device | |
CN1081369C (en) | Two-dimensional rotary method of image synthetic device two-demensional conversion device | |
CN1458316A (en) | Sewing data producing device and sewing data producing program | |
CN1138235C (en) | Image creating apparatus, image creating method, and computer-readable recording medium containing image creating program | |
CN1128381A (en) | Image generation apparatus | |
CN1741067A (en) | Method and apparatus for expanding image data to create enlarged images for dispaly | |
CN1153163C (en) | Graphic preparing device | |
CN1106628C (en) | Apparatus and method for displaying contour lines and contour line display apparatus control program stored medium | |
CN1510924A (en) | Image processor | |
JP4492671B2 (en) | Image processing program | |
CN1637843A (en) | Gradation image forming apparatus and gradation image forming method | |
CN1203452C (en) | Graphic describing device for processing describing data containing image target | |
CN1885900A (en) | Method and apparatus to generate a pattern image | |
CN1223940C (en) | Image processing apparatus and image processing method | |
CN1110774C (en) | Information processor, information processing method and transmission medium | |
CN102074035A (en) | Panoramic image distortion-based mobile phone cartoon character creating method | |
CN1121653C (en) | Two-dimensional converting device and method of picture composing equipment | |
CN1351736A (en) | Method and apparatus for generating outlines |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CX01 | Expiry of patent term |
Expiration termination date: 20141227 Granted publication date: 20020320 |