SU1695294A1 - Device for conversion of coordinates - Google Patents
Device for conversion of coordinates Download PDFInfo
- Publication number
- SU1695294A1 SU1695294A1 SU894738097A SU4738097A SU1695294A1 SU 1695294 A1 SU1695294 A1 SU 1695294A1 SU 894738097 A SU894738097 A SU 894738097A SU 4738097 A SU4738097 A SU 4738097A SU 1695294 A1 SU1695294 A1 SU 1695294A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- register
- input
- output
- abscissa
- ordinate
- Prior art date
Links
Landscapes
- Image Generation (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано в специализированных вычислител х . Целью изобретени вл етс 2 расширение класса решаемых задач за счет возможности поворота изображени в пр моугольных координатах. Устройство содержит первый блок 1 поворота вектора, содержащий первый регистр абсциссы 2, первый регистр ординаты 3, первый вычиталеь 4, первый сумматор 5, второй блок 6 поворота вектора, содержащий второй регистр абсциссы 7, второй регистр ординаты 8, второй вычитатель 9, второй сумматор 10, первый счетчик угла 11, регистр угла 12, второй счетчик угла 13, счетчик дистанции 1, первый дешифратор 15, схему сравнени 16, второй дешифратор 17, блок управлени 18, вход аргумента 19. 2 ил. (ЛThe invention relates to computing and can be used in specialized computers. The aim of the invention is to expand the class of 2 tasks due to the possibility of rotating the image in rectangular coordinates. The device contains the first vector rotation unit 1 containing the first abscissa register 2, the first ordinate register 3, the first subtractor 4, the first adder 5, the second vector rotation unit 6 containing the second abscissa register 7, the second ordinate register 8, the second subtractor 9, the second adder 10, the first angle counter 11, the angle register 12, the second angle counter 13, the distance counter 1, the first decoder 15, the comparison circuit 16, the second decoder 17, the control unit 18, the input of the argument 19. 2 Il. (L
Description
О ОOh oh
сл юthe next
CD J-CD J-
% Ъ% B
316316
Изобретение относитс к вычисли- тельной технике и может быть исполь- зовано в специализированных вычислител х ,The invention relates to computing technology and can be used in specialized computers.
Цель изобретени - расширение класса решаемых задач за счет возможности поворота изображени в пр моугольных координатах.The purpose of the invention is the expansion of the class of tasks to be solved due to the possibility of rotating the image in rectangular coordinates.
На фиг,1 представлена фуикциональ на схема устройства; на фиг. 2 - пример реализации блока управлени .Fig, 1 shows the fuctional scheme of the device; in fig. 2 shows an example implementation of a control unit.
Устройство дл преобразовани координат содержит первый блок поворот вектора 1, состо щий из первого регистра абсциссы 2, первого регистра ординаты 3, первого вычитател 4 и первого сумматора 5, второй блок поворота вектора 6, состо щий из второго регистра абсциссы 7, второго ре гистра ординаты 8, второго вычитател 9 и второго сумматора 10, а также первый счетчик угла 11, регистр угла 12, второй счетчик угла 13,счетчик дистанции 14, первый дешифратор 15, схему сравнени 16, второй дешифратор 1 блок управлени 18, вход аргумента 19, первый выход абсциссы 20, первый выход ординаты 21, второй выход абсциссы 22, второй выход ординаты 23, выход запрета 2k и выход разрешени 25The device for converting coordinates contains the first block of rotation of vector 1, consisting of the first register of abscissa 2, first register of ordinates 3, first subtractor 4 and the first adder 5, the second block of rotation of vector 6, consisting of the second register of abscissas 7, second register of ordinates 8, the second subtractor 9 and the second adder 10, as well as the first angle counter 11, the angle register 12, the second angle counter 13, the distance counter 14, the first decoder 15, the comparison circuit 16, the second decoder 1 control unit 18, the argument input 19, the first abscissa output 20, the first output of the ordinate 21, the second output of the abscissa 22, the second output of the ordinate 23, the output of the prohibition 2k and the output of the resolution 25
Блок управлени 18 содержит первый триггер 26, элемент НЕ 27, генератор импульсов 28, распределитель импульсов 29, первый элемент И 30, второй элемент И 31 третий элемент И 32, второй триггер 33, вход режима работы 34, вход признака граничного значени угла 35, вход признака граничного значени дистанции 36, с первого по четвертый тактовые выходы 37, выход запрета 24 и выход разрешени 25.The control unit 18 contains the first trigger 26, the element NOT 27, the pulse generator 28, the pulse distributor 29, the first element 30, the second element 31 and the third element 32 and the second trigger 33, the mode input 34, the input of the angle threshold value 35, the input of the sign of the boundary value of the distance 36, the first to the fourth clock outputs 37, the output of the prohibition 24 and the output of the resolution 25.
Устройство функционирует следующим образом.The device operates as follows.
Устройство работает в соответствии с алгоритмомThe device operates according to the algorithm.
Гк,Gk,
+ ( 1 + (1
U i iU i i
X ; X;
- У У:- U:
xixi
22
-К-TO
Otu, Od; -t- A oiOtu, Od; -t- A oi
t-Ht-h
(1)(one)
гдеWhere
.-К.-TO
2 const - квант дискретизации по углу (V 2 const - quantum discretization angle (V
х;,&Г.x;, & g.
1-Н1-H
х; уг2ЛоЛ геx; corner2
II
у;,(;сбy;, (; sat
у;y
+ X+ X
,0Л , 0Л
хx
А + 1A + 1
tfi, rf;+uo/,(2)tfi, rf; + uo /, (2)
Где б - угол поворота изображени ,Where b is the angle of rotation of the image,
Rj4, Ri t ARRj4, Ri t AR
где Д R - квант дискретизации поwhere D R - quantum discretization
J J
i i
квант дискретизации дистанции RR sampling quantum
1,2,3,...) RK/AF1,2,3, ...) RK / AF
0,1 ,2,.. . ,tfK /Доб0.1, 2, ... , tfK / Add
0 0
5five
00
5five
00
4545
5050
5555
при j 1,2,3,..., К«/ДРat j 1,2,3, ..., K «/ DR
0 0
R UR,R ur,
Ri, У, Ri, W,
0 90 9
О 4J J О r 0About 4J J About r 0
Алгоритм описывает процесс син хронного вращени двух векторов со сдвигом по углу на величину 0 .Тем самым в устройстве обеспечиваетс формирование двух пар адресов, точки исходного и повернутого изображений соответственно.The algorithm describes the process of synchronous rotation of two vectors with a shift in the angle by an amount of 0. The very device in the device ensures the formation of two pairs of addresses, points of the source and rotated images, respectively.
При величине угла поворота, равного 9 , устройство должно вырабатывать сигнал разрешени выдачи информации разрешено, если (У; 0 . В противном случае, или при должен вырабатыватьс сигнал запрета выдачи информации Запрет.When the rotation angle is equal to 9, the device should produce an information release signal if the signal is permitted (Y; 0. Otherwise, or an output information prohibition signal should be generated when the information is disabled).
Перед началом вычислений на вход аргумента 19 устройства подаетс значение угла поворота Q , которое записываетс в регистре угла 12, на входы сброса счетчиков углов 11 и 13 поступает сигнал с третьего тактового выхода блока управлени 18 и счетчики углов 11 и 13 обнул ютс , а счетчик дистанции 14 устанавливаетс в исходное состо ние UR (АР- единица младшего разр да). Ла- лее, перед началом каждого очередного шага (j 2,3...) по условию :сче с ц на счетный вход счетчика дистанции 14 поступает сигнал с третьего тактового -выхода блока управлени 18, содержимое счетчика 14Before starting the calculations, the input of the device argument 19 is supplied with the value of the angle of rotation Q, which is recorded in the angle register 12, the reset inputs of the angle meters 11 and 13 receive a signal from the third clock output of the control unit 18 and the angle meters 11 and 13 are zeroed, and the distance counter 14 is set to the initial state UR (AP-unit of the lower order). Further, before the beginning of each next step (j 2,3 ...) according to the condition: score from c, the counting input of the distance counter 14 receives a signal from the third clock output of the control unit 18, the contents of the counter 14
i-и и у i-iполучаемые на вычитателе Ц и сумматоре 5, перезаписываютс в регистры 2 и 3 соответственно и выдаютс на выходы 20 и 21 соответственно. Одновременно содержимое счетчика 13 сравниваетс в схеме сравнени 16 с величиной 9 , записанной в регистре угла 12. Результат сравнени поступает на вход режима работы блока управлени 18. Если содержимое счетчика (,тов блоке управлени 18 не вырабатываетс сигнал приращени на счетчик 11 угла и в блоке поворота вектора 6 преобразовани не происходит согласно процедуре (2). Таким образом, происходит отставание с исходного вектора от искомого на угол, равный заданному углу поворота б . Если же содержимое счетчика 13 сч( , то. на выходе 25 блока управлени 18 вырабатываетс сигнал Разрешение и с первого тактового выхода блока управлению 18 поступает +1 ((№) на с ч ет- чик 11 угла ОС и синхронизирующий сигнал на регистры 7 и 8. Во втором блоке поворота вектора 6 выполн етс процедура (2). При этом на второй вычитатель 9 из регистра 7 поступает координата Xj, а из регистра 8 - вычитаемое yj 1 . На второй сумматор 10 из регистра 8 поступает координата yj , а из регистра 7 - слагаемое х ; . Новые значени х +( и y, + , получаемые на вычитателе 9 и сумматоре 10, перезаписываютс в регистры 7 и 8 соответственно и выдаютс на выi-and i-i on the subtractor C and the adder 5 are rewritten into registers 2 and 3, respectively, and output to outputs 20 and 21, respectively. At the same time, the contents of counter 13 are compared in comparison circuit 16 with the value 9 recorded in the register of angle 12. The result of the comparison is fed to the input of the operating mode of control unit 18. If the contents of the counter (that is, the control unit 18 does not generate an increment signal to the angle counter 11 and in the block the rotation of the transformation vector 6 does not occur according to the procedure (2). Thus, there is a lag from the original vector from the desired vector by an angle equal to the given angle of rotation B. If the contents of the counter are 13 midrange (, then, at the output 25 of the control unit of event 18, a signal is produced Resolution and from the first clock output of the control unit 18 is fed +1 (() to the clock 11 of the OS angle and the clock signal to the registers 7 and 8. In the second block of rotation of the vector 6, the procedure (2) At the same time, the second subtractor 9 from the register 7 receives the coordinate Xj, and from register 8 - the subtracted yj 1. The second adder 10 from the register 8 receives the coordinate yj, and from register 7 - the term x; . The new values of + (and y, +, obtained at subtractor 9 and adder 10, are overwritten into registers 7 and 8, respectively, and are output to you
увеличиваетс на +1 , а счетчики углов 11 и 13 обнул ютс . По сигналу с четвертого тактового выхода блока управлени 18 новое содержание счетчика 1 перезаписываетс в регистры абсциссы 2 и 7, а регистры 3 и 8 обнул ютс . С второго тактового выхода блока управлени 18 поступает +1 ( Д&0 на счетный вход счетчика 13- угла # и синхронизирующий сигнал на регистры 2 и 3. В блоке поворота вектора 1 выполн етс процедур ( 1). При этом на первый вычитатель k из регистра 2 поступает координат X; , а из регистра 3 - вычитаемое у1. 7. . На первый сумматор 5 из регистра 3 поступает координата у( , а из регистра 2 - слагаемое х.-2 Новые значени координат х«., и у;.increases by +1, and the angle meters 11 and 13 are zeroed. On a signal from the fourth clock output of the control unit 18, the contents of the counter 1 are overwritten into the registers of abscissas 2 and 7, and the registers 3 and 8 are zeroed out. The second clock output of the control unit 18 is +1 (D & 0) to the counting input of the 13-angle counter # and the clock signal to registers 2 and 3. In the block of rotation of vector 1, procedures (1) are performed. At the same time, the first subtractor k from register 2 receives the coordinates X; and from register 3 subtracts y 1. 7. The first adder 5 from register 3 receives the coordinate y (and from register 2 the term x.-2 New values of the x coordinates. and y; .
00
00
5five
ходы 22 и 23 соответственно. Одновременно на дешифраторе 15 анализируетс равенство содержимого счетчика 11 конечному значению (х ц ( результат поступает на вход граничного значени угла блока управлени 18. Если счр{ K , процесс повтор етс , начина с добавлени +1 в счетчик 11. Если . счс (Х к , то на выходе блока управлени 18 вырабатываетс сигнал Запрет ( и на выходе 2k), на дешифраторе 17 анализируетс равенство содержимого счетчика дистанции 1 конечному значению R, результат поступает на вход признака граничного значени дистанции блока управлени 18, Если ЈсчЮ RK, процесс повтор етс , начина с обнулени счетчиков 11 и 13 и добавлени +1 в счетчик 1. Если счК R, что означает выполнение поворота дл всех значений R, включа R, процесс заканчиваетс .moves 22 and 23 respectively. Simultaneously, the decoder 15 analyzes the equality of the contents of counter 11 to the final value (x c (the result goes to the input of the boundary value of the angle of the control unit 18. If sc {K, the process is repeated, starting with the addition of +1 to counter 11. If. Fc (X c , then the prohibition signal (and output 2k) is generated at the output of the control unit 18, the decoder 17 analyzes the equality of the contents of the distance meter 1 to the final value R, the result is fed to the input of the sign of the boundary value of the distance of the control unit 18, If RK, process n This is repeated, starting with zeroing the counters 11 and 13 and adding +1 to counter 1. If RK, which means the rotation is performed for all R values, including R, the process ends.
При занесении в регистр 12 нул перед началом вычислений устройство выполн ет преобразование пол рных координат в пр моугольные.When entered in the register 12 zero before starting the calculations, the device performs the conversion of polar coordinates into rectangular coordinates.
Блок управлени 18 функционирует следующим образом.The control unit 18 operates as follows.
При наличии сигнала на входе 3, соответствующего условию (X5 Q , включаетс триггер 26, сигнал Запрет на выходе 2 снимаетс и выставл етс сигнал разрешени на выходе 25, который поступает на первый элемент И 30, где начинаетс выработка сигналов -приращени , поступающих на первый тактовый выход. Содержимое счетчика 11 начинает увеличиватьс и при 1счо 0i ( по сигналу с выхода элемента НЕ 27 переключаетс триггер 26. При этом снимаетс сигнал раз- 5 решени , выставл етс сигнал Запрет и прекращаетс выработка сигналов на выходе первого элемента И 30. По сигналу на входе 35, соответствующему условию сч& хо разрешаетс выработка вторым элементом И 31 сигналов на втором тактовом выходе и через элемент НЕ 2/ прерываетс выработка третьим элементом И 32 сигнала на третьем тактовом выходе, по которому также обнул ютс счетчики 11 и 13. Одновременно включаетс триггер 33, на четвертом тактовом выходе вырабатываетс потенциал перезаписи содержимого счетчика дистан0When there is a signal at input 3 corresponding to the condition (X5 Q, the trigger 26 is turned on, the prohibition signal at output 2 is removed and the enable signal is set at output 25, which goes to the first element AND 30, where the generation of the increment signals to the first clock output. The contents of counter 11 begin to increase and when 1x0i 0 (the trigger 26 is switched by the signal from the output of the element 27, the resolution signal is removed, the prohibition signal is set and the generation of the signals at the output of the first element 30 is stopped. The signal at input 35, which corresponds to the condition mc & xo, allows the second element AND 31 to generate signals at the second clock output and, through the NOT 2 / element, the third element AND 32 output of the signal at the third clock output, which also counters 11 and 13 interrupt. At the same time, the trigger 33 is turned on; at the fourth clock output, the potential for rewriting the contents of the distance meter is generated.
5five
00
00
5five
ции 1 в регистры абсциссы 2 и обну- л ютс регистры ординаты 3 и 8.1 in the abscissa registers 2 and the ordinate registers 3 and 8 are reset.
Импульсы, вырабатываемые генератором импульсов 28, поступают на вход запуска распределител импульсов 29 и передаютс с первого, второго и третьего выходов на вторые входы первого 30, второго 31 и третьего 32 элементов И соответственно. Сиг- налы с четвертого выхода распределител импульсов 29 поступают на вход сброса триггера 33. На выходах элементов И 30, 31 и 32 и на выходе триггера 33 вырабатываютс сигналы, которые поступают на с первого по четвертый тактовые выходы 37 блока 18. По сигналу на входе 36, поступающему на второй элемент И 31 и соответствующему условию счК --RK, прекращаетс функционирование устройства .The pulses produced by the pulse generator 28 are fed to the trigger input of the pulse distributor 29 and transmitted from the first, second and third outputs to the second inputs of the first 30, second 31 and third 32 And elements, respectively. The signals from the fourth output of the pulse distributor 29 are fed to the reset input of the trigger 33. The outputs of the elements 30, 31 and 32 and the output of the trigger 33 generate signals that are received from the first to the fourth clock outputs 37 of the block 18. By the input signal 36, arriving at the second element AND 31 and the corresponding condition RV —RK, the device is no longer functioning.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894738097A SU1695294A1 (en) | 1989-07-19 | 1989-07-19 | Device for conversion of coordinates |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894738097A SU1695294A1 (en) | 1989-07-19 | 1989-07-19 | Device for conversion of coordinates |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1695294A1 true SU1695294A1 (en) | 1991-11-30 |
Family
ID=21470074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU894738097A SU1695294A1 (en) | 1989-07-19 | 1989-07-19 | Device for conversion of coordinates |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1695294A1 (en) |
-
1989
- 1989-07-19 SU SU894738097A patent/SU1695294A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР V Й60720, кл. О Об F 7/5М, 1989. Авторское свидетельство СССР W 1295386, кл. G Об F 7/W, 1 J8&. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6131489B2 (en) | ||
JPH0480815A (en) | Absolute value computing circuit | |
SU1695294A1 (en) | Device for conversion of coordinates | |
SU1034175A1 (en) | Code/frequency converter | |
SU750491A1 (en) | Coordinate transforming device | |
SU1596323A1 (en) | Device for computing logarithmic function | |
SU873239A1 (en) | Digital coordinate converter | |
SU748463A1 (en) | Device for displaying information on crt screen | |
Schmid | An operational hybrid computing system provides analog-type computation with digital elements | |
SU898426A1 (en) | Device for converting coordinates | |
SU731435A1 (en) | Device for displaying graphic information on crt screen | |
SU1472902A1 (en) | Coordinate converter | |
SU616633A1 (en) | Arrangement for computing sine and cosine trigonometric functions | |
SU1425767A1 (en) | Device for shaping a stretch of inclined line on crt screen | |
SU622070A1 (en) | Digital function generator | |
SU813478A1 (en) | Graphic information readout device | |
SU744977A1 (en) | Frequency-to-code converter | |
SU1509880A1 (en) | Device for computing sine and cosine functions | |
SU955082A1 (en) | Digital function converter | |
SU849539A1 (en) | Sweep signal shaping device | |
SU598097A1 (en) | Analogue-digital functional converter | |
SU1272310A1 (en) | Linear interpolator | |
SU1750057A1 (en) | Irrational-base reversible counter | |
SU1403062A1 (en) | Device for transforming vector coordinates in three-dimensional space | |
SU836636A1 (en) | Coordinate transforming device |