SU1524067A1 - Device for median filtering of two-dimensional arrays - Google Patents

Device for median filtering of two-dimensional arrays Download PDF

Info

Publication number
SU1524067A1
SU1524067A1 SU874205268A SU4205268A SU1524067A1 SU 1524067 A1 SU1524067 A1 SU 1524067A1 SU 874205268 A SU874205268 A SU 874205268A SU 4205268 A SU4205268 A SU 4205268A SU 1524067 A1 SU1524067 A1 SU 1524067A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
register
counter
inputs
Prior art date
Application number
SU874205268A
Other languages
Russian (ru)
Inventor
Александр Владимирович Василькевич
Валерий Михайлович Крищишин
Original Assignee
Предприятие П/Я В-8751
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Предприятие П/Я В-8751 filed Critical Предприятие П/Я В-8751
Priority to SU874205268A priority Critical patent/SU1524067A1/en
Application granted granted Critical
Publication of SU1524067A1 publication Critical patent/SU1524067A1/en

Links

Abstract

Изобретение относитс  к вычислительной технике и может быть использовано при обработке двумерных массивов данных. Целью изобретени   вл етс  повышение быстродейтсви . Устройство содержит блоки 1-3 пам ти, счетчики 4-8, сумматоры 9,10, регистры 11-16, блок 17 сравнени , дешифратор 18, коммутаторы 19,20 генератор 21 тактовых импульсов, делитель 22 частоты, регистр 23 сдвига, триггеры 24-26, одновибраторы 27,28 группу элементов И 29, элементы И 30-33, элементы ИЛИ 34-37, элемент НЕ 38, элемент задержки 39. 1 ил.The invention relates to computing and can be used in the processing of two-dimensional data arrays. The aim of the invention is to improve the speed of performance. The device contains 1-3 memory blocks, counters 4-8, adders 9.10, registers 11-16, comparison block 17, decoder 18, switches 19.20 clock generator 21, frequency divider 22, shift register 23, triggers 24 -26, one-shot 27.28 group of elements AND 29, elements AND 30-33, elements OR 34-37, element NOT 38, delay element 39. 1 ill.

Description

ffff

елate

Изобретение относитс  к вычислительной технике и предназначено дл  использовани  в специализированных вычисли.тельных устройствах при обработке двумерных массивов данных, например, при обработке изображенийThe invention relates to computing and is intended for use in specialized computing devices when processing two-dimensional data arrays, for example, in image processing.

Целью изобретени   вл етс  повышение быстродействи ,The aim of the invention is to improve the speed,

На чертеже представлена функциональна  схема устройства оThe drawing shows the functional diagram of the device

Устройство содержит блоки 1-3 пам ти , счетчики 4-8, сумматоры 9 и 10, регистры 11-16, блок 17 сравне- НИН, дешифратор 18, коммутаторы 19 и 20, генератор 21 тактовых импульсов , делитель 22 частоты, регистр 23 сдвига, триггеры 24-26, одновибрато- ры 27 и 28, группу-элементов И 29, элементы И 30-33, элемент ИЛИ 34-37, элемент КЕ 38, элемент 39 задержки, v вход 40 начальной установки, вход 41 пуска, выход 42 окончани  работы устройства, выход 43 индикации резуль тата первой выборки, информационный выход 44 устройства.The device contains memory blocks 1–3, counters 4–8, adders 9 and 10, registers 11–16, block 17 as compared with NIN, decoder 18, switches 19 and 20, generator 21 clock pulses, frequency divider 22, shift register 23 , triggers 24-26, one-shot 27 and 28, group-elements AND 29, elements AND 30-33, element OR 34-37, element KE 38, delay element 39, v input 40 of the initial installation, start input 41, output 42 terminating operation of the device, output 43 of the indication of the results of the first sampling, information output 44 of the device.

Вход 40 начальной установки соединен с входами сброса счетчиков 4-8, , регистра 13 и с первыми входами элементов ИЛИ 34, 36. Выход генератора 21 импульсов соединен с входом синхронизации регистра 23 сдвига и вхо дом делител  22 частоты, выход которого соединен с синхровходом тригге- ра 24 и первым входом элемента И 30, второй вход которого соединен с выходом триггера 24. Информационные выходы счетчика 5 соединены с адресными входами блоков 1 и 2 пам ти, выхо- ды которых соединены соответственно с первыми группами входов сумматоров 9 и 10, вторые группы входов которых соединены соответственно с информаплон- ными выходами счетчиков 7 и 8. Выходы сумм сумматоров 9 и 10 соединены через регистры 11 и 12 соответственно с группами старших и младших разр дов адресного входа блока 3 пам ти.The initial installation input 40 is connected to the reset inputs of counters 4-8, register 13 and to the first inputs of the OR 34, 36 elements. The output of the pulse generator 21 is connected to the synchronization input of the shift register 23 and the input of the frequency divider 22, the output of which is connected to the trigger synchronous input - pa 24 and the first input of the element I 30, the second input of which is connected to the output of the trigger 24. The information outputs of the counter 5 are connected to the address inputs of memory blocks 1 and 2, the outputs of which are connected respectively to the first groups of inputs of adders 9 and 10, the second groups in the moves of which are connected respectively with the information outputs of counters 7 and 8. The outputs of the sums of adders 9 and 10 are connected via registers 11 and 12, respectively, with the groups of high and low bits of the address input of the memory block 3.

Выходы знаковых разр дов сумматоров 9 и 10 соединены с первого по четвертый входами элемента ИЛИ 35. Выход элемента ИЛИ 35 соединен через триггеры 25 и 26 с первым входом элемента ИЛИ 37, выход которого соединен с управл ющим входом коммутатора 19. Выход коммутатора 20 соединен с вторым входом элемента ИЛИ 37. Выходы блокаThe outputs of the sign bits of the adders 9 and 10 are connected from the first to the fourth inputs of the OR element 35. The output of the OR element 35 is connected via triggers 25 and 26 to the first input of the OR element 37, the output of which is connected to the control input of the switch 19. The output of the switch 20 is connected to the second input element OR 37. Block outputs

3 пам ти через регистр 16 соединены с первой группой входов коммутатора 19, втора  группа входов которого подключена к уровню лог„ О. Выходы коммутатора 19 соединены с первой группой входов блока 17 сравнени  и информационными входами регистра 15, выходы которого  вл ютс  выходами 44 устройства и соединены с второй rfiyn- пой входов блока 17 сравнени  о Выход переноса счетчика 5 соединен через одновибратор 27 со счетным входом счетчика 4 и через элемент НЕ 38 с третьим входом элемента И 30, выход которого соединен с информационным входом регистра 23 сдвига, входами записи триггера 25, регистров 1 1 и 12 и счетным входом счетчика 5. Выход переноса счетчика 4 соединен со счетным входом счетчика 8 и первыми входами элементов И 32 и 33„ Выход переноса счетчика 8 соединен со счетным входом счетчика 7. Выход переноса счетчика 7  вл етс  выходом 42 окончани  работы устройства и соединен с входом сброса триггера 24, информационный вход которого соединен с входом 41 пуска. Информационные выходы счетчика 6 соединены с информационными входами регистра 13 и управл ющими входами коммутатора 20, информационные входы которого соединены с выходами регистра 14. Выходы регистра 13 соединены с входами дешифратора 18, выходы которого соединены с первыми входами элементов И группы 29, выходы которых соединены с информационными входами регистра 14. Выход переноса счетчика 6 через одновибратор 28 соединен с вторыми входами элементов И группы 29, вторым входом элемента И 32 и через элемент 39 задержки с вторыми входами элементов ИЛИ 34 и И 33, выход которого соединен с вторым входом элемента3 memory through a register 16 is connected to the first group of inputs of the switch 19, the second group of inputs of which is connected to the log level "O. The outputs of the switch 19 are connected to the first group of inputs of the comparison block 17 and the information inputs of the register 15, the outputs of which are the outputs 44 of the device and connected to the second rfiyn unit of the block 17 of the comparison; the transfer output of the counter 5 is connected via the one-shot 27 to the counting input of the counter 4 and through the element NOT 38 to the third input of the element 30, the output of which is connected to the information input of the register 23 sd Wig, trigger recording inputs 25, registers 1 1 and 12 and counting input of counter 5. Transfer output of counter 4 is connected to counting input of counter 8 and first inputs of elements 32 and 33 “Transfer output of counter 8 is connected to counting input of counter 7. Transfer output the counter 7 is the output 42 of the operation of the device and is connected to the reset input of the trigger 24, the information input of which is connected to the start input 41. The information outputs of the counter 6 are connected to the information inputs of the register 13 and the control inputs of the switch 20, the information inputs of which are connected to the outputs of the register 14. The outputs of the register 13 are connected to the inputs of the decoder 18, the outputs of which are connected to the first inputs of elements And group 29, the outputs of which are connected to information inputs of the register 14. The transfer output of the counter 6 through the one-shot 28 is connected to the second inputs of the elements And group 29, the second input element And 32 and through the element 39 of the delay with the second inputs of the element in OR 34 and AND 33, the output of which is connected to the second input of the element

ИЛИ 36. Выход блока 17 сравнени  соединен с первым входом элемента И 31, выход которого соединен с входами записи регистров 13 и 15. Вход сброса регистра 15 соединен с выходом элемента ИЛИ 34. Второй выход регистра 23 сдвига соединен с входами записи триггера 26 и регистра 16. Четвертый выхо регистра 23 сдвига соединен со счетны входом счетчика 6 и вторым входом элемента И 31„ Выход элемента И 32  вл етс  выходом 43 устройства.OR 36. The output of the comparator block 17 is connected to the first input of the element AND 31, the output of which is connected to the write inputs of registers 13 and 15. The reset input of the register 15 is connected to the output of the OR element 34. The second output of the shift register 23 is connected to the write inputs of the trigger 26 and the register 16. The fourth output of the shift register 23 is connected to the counting input of the counter 6 and the second input of the And 31 element. The output of the And 32 element is the output 43 of the device.

Устройство предназначено дл  медианной фильтрации двумерных массивов данных размером mxn, m - число строк, п - число столбцов, где т 2 , Р, S - целые положительные числа Апертура фильтра может быть произвольной . Число точек, вход щих в апертуру , равно К (К - нечетное).The device is intended for median filtering of two-dimensional data arrays of size mxn, m is the number of rows, n is the number of columns, where m 2, P, S are positive integers. The filter aperture can be arbitrary. The number of points entering the aperture is K (K is odd).

Алгоритм работы устройства следую- ю щий„The algorithm of the device operation is as follows:

Среди элементов массива, вход вшх в в апертуру, находитс  медиана и она замен ет центральную точку апертуры. После этого апертура сдвигаетс  и но- 15 ва  центральна  точка замен етс  медианой . Направление сдвига апертуры: слева направо и сверху вниз.Among the elements of the array, the entrance to the aperture is the median and it replaces the center point of the aperture. Thereafter, the aperture shifts and the new central point is replaced with a median. Aperture shift direction: from left to right and from top to bottom.

Счетчики 5 и 6  вл ютс  счетчиками с пересчетом К, счетчик 4 - с 20Counters 5 and 6 are counters with recalculation K, counter 4 - from 20

K-t-lK-t-l

пересчетом ---, счетчик 7 - двоичный счетчик разр дности Р, счетчик 8 - двоичный счетчик разр дности S.scaling ---, counter 7 is a binary counter of size P, counter 8 is a binary counter of size S.

Разр дность блоков пам ти 1 и 2 определ етс  числом К и формой апер - туры. Разр дность блока 3 пам ти, блока 17 сравнени ,коммутатора 19 и регистров 15 и 16 определ етс  разр дностью обрабатываемых данных. Разр дность регистра 13 равна разр дности счетчика 6. Количество выходов дешифратора 18, элементов И группы 29, разр дность регистра 14 и число входов коммутатора 20 равно К.The size of memory blocks 1 and 2 is determined by the number K and the shape of the aperture. The size of block 3 of memory, block 17 of comparison, switch 19 and registers 15 and 16 is determined by the width of the data being processed. The register width 13 is equal to the counter 6 counter. The number of outputs of the decoder 18, the elements of AND group 29, the register resolution 14 and the number of inputs of the switch 20 are equal to K.

Исходный массив хранитс  в блоке 3 пам тио Пронумеруем точки, вход щие в апертуру от О до К. Тогда в блоке I пам ти по i-му адресу хра25The initial array is stored in block 3 of memory. We number the points included in the aperture from O to K. Then in block I of memory at the i-th address of the store

30thirty

3535

НИИ или отрицательном результате, т.е. выходе части апертуры за размер исходного массива.SRI or negative result, i.e. the output of the aperture for the size of the original array.

Устройство работает следуюпшм образом .The device works as follows.

По сигналу начальной установки АО сбрасываютс  в О счетчики 4-8 и ре гистры 13 - 15,On a signal from the initial installation, the AOs are reset to O counters 4-8 and registers 13-15,

Генератор 21 импульсов формирует последовательность импульсов, частота которой делитс  на два делителем 22 частоты. По сигналу пуска по входу 41 триггер 24 устанавливаетс  в единичное состо ние по переднему фронту импульса, поступающему с делител  22 Единичное состо ние триггера 24 разрешает прохождение импуль сов синхронизации на выход элемента И 30.A pulse generator 21 forms a pulse train whose frequency is divided into two by a divider 22 frequencies. According to the start signal at the input 41, the trigger 24 is set to one state by the leading edge of the pulse coming from the divider 22. The single state of the trigger 24 permits the passage of synchronization pulses to the output of the And 30 element.

Импульсы, поступающие на информационный вход регистра 23 сдвига сдви гаютс  в нем по сигналам, поступающим с генератора 21 импульсов. Дл  синхронизации узлов устройства испол зуютс  тактовые импульсы, снимаемые с второго и четвертого выходов регис ра 23 сдвига оThe pulses arriving at the information input of the shift register 23 are shifted therein by signals from the pulse generator 21. To synchronize device nodes, clock pulses are used that are taken from the second and fourth outputs of the register 23

В устройстве реализован конвейерный режим работыоThe device has a conveyor mode of operation.

В первом такте по первому тактовому импульсу к содержимому счетчика 5 прибавл етс  единица, в регистры И и 12 занос тс  старшие и младшие разр ды адреса нулевой точки апертуры , полученные сложением адреса цент ральной точки, который хранитс  в счетчиках 7 и 8, и смещений, считаннитс  смещение i-й точки апертуры от- 40 блоков 1 и 2 пам ти (смещениеIn the first clock cycle, by the first clock pulse, one is added to the contents of counter 5, the upper and lower bits of the zero point address of the aperture, which are obtained by adding the address of the central point, which is stored in counters 7 and 8, and offsets The offset of the i-th point of the aperture from 40 blocks 1 and 2 of memory (offset

по строкам и смещение по столбцам). Если текуща  точка в апертуре выходит за границы исходного массива то хот  бы в одном знаковом разр де дг сумматоров 9 или 10 будет сигналby rows and offset by columns). If the current point in the aperture goes beyond the bounds of the original array, then at least in one significant digit of de dg adders 9 or 10 there will be a signal

носительно центральной точки апертуры по строкам, а в блоке 2 пам ти - по столбцам. .Смещение представл ет собой число со знаком в дополнительном коде, причем под знак отводитс  два разр да.relative to the center point of the aperture in rows, and in block 2 of memory in columns. The offset is a signed number in the additional code, with two digits for the sign.

В счетчиках 7 и 8 содержитс  текущий адрес центральной точки апертуры (номер строки и номер столбца соответственно ). Суммирование текущего адреса центральной точки со смещением в сумматорах 9 и 10 позвол ет полу чать абсолютные адреса точек, вход щих в апертуру, дл  различных значений адреса центральной точки. При этом наличие хот  бы однрй 1 на выходе знаковых разр дов сумматоров 9 и 10 (знак представл етс  двум  разр дами ) свидетельствует о переполнеCounters 7 and 8 contain the current address of the center point of the aperture (row number and column number, respectively). Summation of the current address of the center point with offset in adders 9 and 10 allows one to obtain absolute addresses of points entering the aperture for different values of the address of the center point. At the same time, the presence of at least one 1 at the output of the sign bits of the adders 9 and 10 (the sign is represented by two bits) indicates the overflow

5 five

00

5five

00

5five

НИИ или отрицательном результате, т.е. выходе части апертуры за размеры исходного массива.SRI or negative result, i.e. the output of the aperture of the size of the original array.

Устройство работает следуюпшм образом .The device works as follows.

По сигналу начальной установки АО сбрасываютс  в О счетчики 4-8 и регистры 13 - 15,The signal from the initial installation of an AO is reset to O, counters 4-8 and registers 13-15,

Генератор 21 импульсов формирует последовательность импульсов, частота которой делитс  на два делителем 22 частоты. По сигналу пуска по входу 41 триггер 24 устанавливаетс  в единичное состо ние по переднему фронту импульса, поступающему с делител  22 Единичное состо ние триггера 24 разрешает прохождение импульсов синхронизации на выход элемента И 30.A pulse generator 21 forms a pulse train whose frequency is divided into two by a divider 22 frequencies. According to the start signal at the input 41, the trigger 24 is set to one state by the leading edge of the pulse coming from the divider 22. The single state of the trigger 24 permits the passage of synchronization pulses to the output element I 30.

Импульсы, поступающие на информационный вход регистра 23 сдвига сдвигаютс  в нем по сигналам, поступающим с генератора 21 импульсов. Дл  синхронизации узлов устройства используютс  тактовые импульсы, снимаемые с второго и четвертого выходов регистра 23 сдвига оThe pulses arriving at the information input of the shift register 23 are shifted therein by signals from the pulse generator 21. To synchronize device nodes, clock pulses taken from the second and fourth outputs of shift register 23 are used.

В устройстве реализован конвейерный режим работыоThe device has a conveyor mode of operation.

В первом такте по первому тактовому импульсу к содержимому счетчика 5 прибавл етс  единица, в регистры И и 12 занос тс  старшие и младшие разр ды адреса нулевой точки апертуры , полученные сложением адреса цент ральной точки, который хранитс  в счетчиках 7 и 8, и смещений, считан блоков 1 и 2 пам ти (смещениеIn the first clock cycle, by the first clock pulse, one is added to the contents of counter 5, the upper and lower bits of the zero point address of the aperture, which are obtained by adding the address of the central point, which is stored in counters 7 and 8, and offsets read blocks 1 and 2 of memory (offset

по строкам и смещение по столбцам). Если текуща  точка в апертуре выходит за границы исходного массива то хот  бы в одном знаковом разр де сумматоров 9 или 10 будет сигналby rows and offset by columns). If the current point in the aperture goes beyond the bounds of the original array, then at least one significant digit of adders 9 or 10 will be a signal

лог. 1, который, пройд  через элемент ИЛИ 35, занесетс  в триггер 25 по первому тактовому импульсу. По сформированному адресу из блока 3 пам ти считьшаетс  соответствующее число и заноситс  в регистр 16 по первому тактовому импульсу с второго выхода регистра 23 сдвига, а в триггер 26 переписываетс  содержимое триггера 25о В этом же такте в регистры 11 и 12 заноситс  адрес первой точки апертуры по второму импульсу. Первое число проходит через коммутатор 19 и сравниваетс  с содержимом (нуlog 1, which, having passed through the element OR 35, is brought into the trigger 25 by the first clock pulse. At the generated address from block 3 of memory, the corresponding number is counted and entered into register 16 by the first clock pulse from the second output of shift register 23, and the trigger 26 is overwritten with the contents of trigger 25 °. In the same clock cycle, the address of the first aperture point is entered into registers 11 and 12 second impulse. The first number passes through the switch 19 and is compared with the contents (well

/1524067/ 1524067

левым) регистра 15. (Если нулева  точка апертуры вышла за rpaHHi ii исходного массива, то в триггер 26 занесетс  лог. М, котора  переключит коммув ш о аleft) of the register 15. (If the zero point of the aperture extends beyond the rpaHHi ii of the original array, then the trigger 26 will be assigned a log. M, which will switch the commu

татор 19 так, что на его выходы поступит лог с вторых входов, чем и - обеспечиваетс  исключение точек из анализа при выходе апертуры за границы исходного массива). Если первое Q число па выходе коммутатора 19 больше содержге-1ого регистра 15, блок 17 сравнени  сформирует на своем выходе единичный уровень, который разрешитso that its outputs will receive a log from the second inputs, and this - excludes points from the analysis when the aperture goes beyond the boundaries of the original array). If the first Q number on the output of the switch 19 is greater than the content of the 1st register 15, the comparison unit 17 will form at its output a unit level that will allow

одновибратор 28 4 прмирует короткий nMnyjifjC. Номер наибольшего числа из регистра 13 поступает на входы дешифратора 18, на i-M выходе которого по вл етс  уровень лог, при условии , что i-e число }  пертуре имеет наибольшее значение, который разрешает прохождение импульса с выхода одновибратора 28 через i-й элемент И группы 29 и обеспечивает установку i-ro триггера регистра 14 в единичное состо ние, В следующих проходах апертуры 1-й элемент в определенииSingle-shot 28 4 is output short nMnyjifjC. The number of the largest number from register 13 is fed to the inputs of the decoder 18, at the iM output of which a log level appears, provided that i is the number} of the loop has the largest value that permits the pulse from the one-shot 28 output through the i-th element of group 29 and ensures that the i-ro trigger of register 14 is set to one, In the next passes of the aperture, the 1st element in the definition

прохождение через элемент И 31 перво- (5 максимального числа не будет участpassing through the element AND 31 first (the maximum number 5 will not be

го импульса с четвертого регистра 23 сдвига, который, поступив на вход записи регистра 15, обеспечит запись большего числа в регистр 15. Если число меньше или равно содержимо му регистра 15, на выходе блока 17 cpaBiieHiin - низкий уровень и в регистре 15 останетс  предыдущее число.pulse from the fourth shift register 23, which, arriving at the input of the record of register 15, will provide a record of a larger number in register 15. If the number is less than or equal to the register 15, the output of block 17 cpaBiieHiin is low and in register 15 will remain the previous number .

15 этом же такте в регистры 11 и 12 заноситс  адрес второй точки апертуры , а в регистр 16 записываетс  значение первой точки апертурЫо15 of the same tick, the address of the second aperture point is entered in registers 11 and 12, and the value of the first aperture point is recorded in register 16

Одновременно с занесением текущего максимального числа в регистр 15, его номер в апертуре заноситс  в регистр 13 по импульсу с выхода элемента И 31. В последующих тактах уст- poficTBo работает аналогично. По К-му импульсу в регистры 11 и 12 заноситс  адрес последней (К-й) точки апертуры , а на выходе переноса счетчика 5 формируетс  импульс переноса. Одно- вибратор 27 формирует импульс, длительность которого выбираетс  такой, чтобы обеспечить надежное исключение одного тактового импульса Сигнал с выхода одноБибратора 27 поступает через элемент НЕ 38 на третий вход элемента И 30 и обеспечивает исключение следующего тактового импульса оSimultaneously with entering the current maximum number into the register 15, its number in the aperture is entered into the register 13 by the pulse from the output of the AND 31 element. In the subsequent clock cycles, the oficTBo works in a similar way. On the Kth pulse, the address of the last (Kth) point of the aperture is entered into registers 11 and 12, and a transfer pulse is generated at the transfer output of counter 5. A single-vibrator 27 generates a pulse, the duration of which is chosen so as to ensure reliable elimination of one clock pulse. The signal from the output of one-vibrator 27 goes through the element NO 38 to the third input of the element 30 and provides the exception of the next clock pulse about

По К-му импульсу с второго выхода регистра 23 сдвига в регистр 16 заноситс  значение ()-й точки апертуры . По переднему«фронту К-го импульса с четвертого выхода регистра 23 сдвига заноситс  (К-1)-е число в регистр 45 (при условии, что оно больше текущего значени  регистра 15).On the Kth pulse from the second output of the shift register 23, the value of the () th point of the aperture is entered into the register 16. On the leading edge of the K-th pulse from the fourth output of the shift register 23, the (K-1) -th number is entered in register 45 (provided that it is greater than the current value of register 15).

Таким образом, в регистре 15 оказываетс  наибольшее число в апертуре , а в регистре 13 - его пор дковый номер в апертуре На выходе переноса счетчика 6 формируетс  импульс переноса , по переднему фронту которогоThus, in register 15 there is the largest number in the aperture, and in register 13 its order number in the aperture. At the transfer output of counter 6, a transfer pulse is formed, on the leading edge of which

5five

00

5five

д d

00

5five

00

5five

вовать, потому что когда счетчик 6 будет иметь значение i, коммутатор 20 пропустит на выход 1 из i-ro триггера регистра 14 и через злемент ИЛИ 37 переключит коммутатор 19 на входы, на которые подаютс  нули,because when the counter 6 has the value of i, the switch 20 will skip output 1 of the i-ro trigger register 14 and through the element OR 37 switch the switch 19 to the inputs to which zeros are sent,

Импульс с выхода одновибратора 28 проходит элемент 39 задержки и элемент ИЛИ 34 и сбрасывает регистр 15, Во втором пикле определ етс  второе по величине число,The pulse from the output of the one-shot 28 passes the delay element 39 and the OR element 34 and resets the register 15. In the second pick, the second largest number is determined,

К+1 В -г.-м цикле ь:а },ыходе пбрено са счетчика 4 формируетс  сигнал, который поступает па первые входы элементов И 32 и 33.K + 1 In the i-th cycle ü: a}, the output of the counter of counter 4, a signal is generated that enters the first inputs of the elements 32 and 33.

В регистр 15 выбираетс  медиана. Импульс с выхода одповибратора 28 проходит через элемент И 32 иа выход 43 и разрешает выборку первого результата„ После задержки элементом 39 задержки на врем ,достаточное дл  сн ти  результата с выходов 44 устройства.производитс  сброс регистра 15, Импульс, задержанный элементом 39 задержки, проходит также через элемент И 33 {на второй вход которого поступает разрешение с выхода переноса счетчика 4) и элемент ИЛИ 36 и сбрасывает регистр 15, По импульсу с выхода счетчика 4 производитс  прибавление единипы к содержимому счетчика 8, т„е, формируетс  адрес следующей центральной точки и аналогично определ етс  нтора  медиана и т.д.In register 15, the median is selected. The impulse from the output of the 28 detector passes through the element AND 32 and output 43 and enables the sampling of the first result "After the delay by the delay element 39 for a time sufficient to clear the result from the device outputs 44. the register 15 is reset, the pulse delayed by the delay element 39 passes also through the element AND 33 {the second input of which receives the permission from the transfer output of the counter 4) and the element OR 36 and resets the register 15. The pulse from the output of the counter 4 is added to the content of the counter 8, that is, The address of the next center point and similarly determined nto median, etc.

После отработки последней точки массива на выходе переноса счетчика 7 формируетс  сигнал, который сбрасывает триггер 24 и поступает на выход 42 окончани  работы устройства.After testing the last point of the array at the output of the transfer of the counter 7, a signal is generated that resets the trigger 24 and arrives at the output 42 of the operation of the device.

Формула н Formula n

9 о б9 o b

1515

р е т е н и  rete n i

Устройство дл  медианной фильтрации двумерных массивов, содержащее четыре счетчика, два одновибратора, три блока пам ти, элемент задержки, три регистра, элемент НЕ, два сумматора первый триггер, два коммутатора , блок сравнени , группу элементов И, дешифратор, четыре элемента И, три элемента ШШ, генератор тактовых импульсов , причем выход переноса первого счетчика через первый одновиб- ратор соединен с первыми входами эле- ментов И группы, с первым входом первого элемента И и через элемент задержки - с первым входом первого элемента ИЛИ, выходы первого и второго блоков пам ти подключены к первым входам соответственно первого и второго сумматоров, выходы знаковых разр дов которых соединены с входами второго элемента ИЛИ, выход первогоA device for median filtering of two-dimensional arrays, containing four counters, two one-vibrators, three memory blocks, a delay element, three registers, a NOT element, two adders, a first trigger, two switches, a comparison block, a group of AND elements, a decoder, four AND elements, three the SHS element, the clock pulse generator, the transfer output of the first counter through the first one-oscillator is connected to the first inputs of the AND elements of the group, to the first input of the first element AND, and through the delay element to the first input of the first element OR, you the first and second memory blocks are connected to the first inputs of the first and second adders, respectively, the outputs of the sign bits of which are connected to the inputs of the second OR element, the output of the first

коммутатора подключен к информационно-25 вход начальной установки которогоthe switch is connected to the info-input 25 of the initial installation of which

му входу первого регистра и к первому входу блока сравнени , выход Больше которого соединен с первым входом второго элемента И, выход которого подключен к входам управлени  записью-ЗО считыванием второго и первого регистров , выход первого регистра соединен с вторым входом блока сравнени  и  вл етс  информационным выходом устройства , выход второго регистра через вертого элемента И, выходы четвертогоThe first input of the first register and the first input of the comparison unit, the Output More of which is connected to the first input of the second element I, the output of which is connected to the control inputs of the record-30, reading the second and first registers, the output of the first register is connected to the second input of the comparison unit and is informational the output of the device, the output of the second register through the right element And the outputs of the fourth

4545

дешифратор подключен к вторым входам элементов И группы, выходы которых соединены с информационными входами третьего регистра, выход которого подключен к информационному входу вто-40 рого коммутатора, выход второго счетчика соединен с входом второго одно- вибратора, информационные выходы третьего и четвертого счетчиков подключены к вторым входам, выход переноса четвертого счетчика соединен со счетным входом третьего счетчика, выход элемента НЕ подключен к первому входу третьего элемента И, вход уста- нойки третьего регистра соединен с выходом второго элемента ИЛИ, первый вход которого соединен с входами установки второго регистра, с первого по четвертый счетчиков, с вторым входом первого элемента ИЛИ и  вл етс  входом начальной установки устройства , отличающеес  тем.the decoder is connected to the second inputs of elements AND groups, the outputs of which are connected to the information inputs of the third register, the output of which is connected to the information input of the second-40 switch, the output of the second counter is connected to the input of the second single-vibrator, the information outputs of the third and fourth counters are connected to the second inputs, the transfer output of the fourth counter is connected to the counting input of the third counter, the output of the element is NOT connected to the first input of the third element, And the input of the setup of the third register is connected with the output of the second OR element, the first input of which is connected to the installation inputs of the second register, from the first to the fourth counters, to the second input of the first OR element and is the input of the initial installation of the device, characterized by that.

и п того регистров подключены к адресным входам третьего блока пам ти, выход которого соединен с информационным входом PiecToro регистра, выход которого подключен к информационному входу первого коммутатора, выход второго разр да регистра сдвига соединен с входом синхронизации шестого регистра и с нулевым входом третьего триггера, пр мой выход которого подключен к первому входу третьего элемента ИЛИ, выход которого соединен с управл ющим входом первого коммутатора, выход последнего разр - 50 да регистра сдвига подключен к второму входу второго элемента И и к счетному входу первого счетчика, выход которого соединен с информационным входом второго регистра и с управл ющим входом второго коммутатора, выход которого подключен к второму входу третьего элемента ИЛИ, выход переноса третьего счетчика соединен с нулевым входом первого триггера, и  вЬ5and the fifth registers are connected to the address inputs of the third memory block, the output of which is connected to the information input of the PiecToro register, the output of which is connected to the information input of the first switch, the output of the second digit of the shift register is connected to the synchronization input of the sixth register and with the zero input of the third trigger, the direct output of which is connected to the first input of the third OR element, the output of which is connected to the control input of the first switch, the output of the last bit is 50 and the shift register is connected to the second input the second element And the counting input of the first counter, the output of which is connected to the information input of the second register and the control input of the second switch, the output of which is connected to the second input of the third element OR, the transfer output of the third counter is connected to the zero input of the first trigger, and b5

что, с целью повышени  быстродействи , в него введены п тый счетчик.that, in order to increase speed, a fifth counter was inserted in it.

152ДП67152DP67

10ten

три регистра, регистр сдвига, два триггера, четвертый элемент ИЛИ и делитель частоты, вход которого соединен с входом управлени  сдвигом регистра сдвига и подключен к выходу генератора тактовых импульсов, а выход соединен с вторым входом третьего элемента И и с входом синхронизации первого триггера, входом установки в 1 которого  вл етс  вход пуска устройства, пр мой выход первого триггера подключен к третьему входу третьего элемента И, выход которого соединен с информационным входом регистра сдвига, с нулевым входом второго триггера, с входами синхронизации четвертого и п того регистров и со счетным входом второго счетчика , выход которого подключен к адресным входам первого и второго блоков пам ти, выход второго одновибратора соединен с входом элемента НЕ и со счетным входом п того счетчика,three registers, a shift register, two triggers, the fourth element OR, and a frequency divider whose input is connected to the shift control input of the shift register and connected to the output of the clock generator, and the output connected to the second input of the third And element and to the synchronization input of the first trigger, input set to 1 which is the start input of the device, the direct output of the first trigger is connected to the third input of the third element AND, the output of which is connected to the information input of the shift register, with zero input of the second trigger a, with the synchronization inputs of the fourth and fifth registers and with the counting input of the second counter, the output of which is connected to the address inputs of the first and second memory blocks, the output of the second one-oscillator is connected to the input of the NOT element and with the counting input of the fifth counter,

подключен к входу начальной установки устройства, а выход соединен со счетным входом четвертого счетчика, с вторым входом первого элемента И и с первым входом четвертого элемента И , выход которого подключен к второму входу второго элемента ИЛИ, выход первого одновибратора через элемент задержки соединен с вторым входом четconnected to the input of the initial installation of the device, and the output is connected to the counting input of the fourth counter, to the second input of the first element AND and to the first input of the fourth element AND, the output of which is connected to the second input of the second OR element, the output of the first one-vibrator through the delay element connected to the second input even

и п того регистров подключены к адресным входам третьего блока пам ти, выход которого соединен с информационным входом PiecToro регистра, выход которого подключен к информационному входу первого коммутатора, выход второго разр да регистра сдвига соединен с входом синхронизации шестого регистра и с нулевым входом третьего триггера, пр мой выход которого подключен к первому входу третьего элемента ИЛИ, выход которого соединен с управл ющим входом первого коммутатора, выход последнего разр - да регистра сдвига подключен к второму входу второго элемента И и к счетному входу первого счетчика, выход которого соединен с информационным входом второго регистра и с управл ющим входом второго коммутатора, выход которого подключен к второму входу третьего элемента ИЛИ, выход переноса третьего счетчика соединен с нулевым входом первого триггера, и  вand the fifth registers are connected to the address inputs of the third memory block, the output of which is connected to the information input of the PiecToro register, the output of which is connected to the information input of the first switch, the output of the second digit of the shift register is connected to the synchronization input of the sixth register and with the zero input of the third trigger, the direct output of which is connected to the first input of the third OR element, the output of which is connected to the control input of the first switch, the output of the last bit of the shift register is connected to the second input the second AND gate and to the counting input of the first counter, whose output is connected to the data input of the second register and a control input of the second switch, whose output is connected to the second input of the third OR gate, the third transfer counter output is connected to the zero input of the first flip-flop, and

1 1524067121 152406712

л етс  выходом окончани  работы уст- та первой выборки  вл етс  выход пер- ройства, выходом инднкации результа- вого элемента И.The output of the end of the first sample is the output of the transform, the output of the indication of the result element I.

Claims (1)

Формула изобретенияClaim Устройство для медианной фильтрации двумерных массивов, содержащее четыре счетчика, два одновибратора, три блока памяти, элемент задержки, три регистра, элемент НЕ, два сумматора, первый триггер, два коммутатора, блок сравнения, группу элементов И, дешифратор, четыре элемента И, три элемента ИЛИ, генератор тактовых импульсов, причем выход переноса первого счетчика через первый одновибратор соединен с первыми входами эле- 15 ментов И группы, с первым входом первого элемента И и через элемент задержки - с первым входом первого элемента ИЛИ, выходы первого и второго блоков памяти подключены к первым 20 входам соответственно первого и второго сумматоров, выходы знаковых разрядов которых соединены с входами второго элемента ИЛИ, выход первого коммутатора подключен к информационно-25 му входу первого регистра и к первому входу блока сравнения, выход Больше которого соединен с первым входом второго элемента И, выход которого подключен к входам управления записью-зо считыванием второго и первого регистров, выход первого регистра соединен с вторым входом блока сравнения и является информационным выходом устройства, выход второго регистра через 35 дешифратор подключен к вторым входам элементов И группы, выходы которых соединены с информационными входами третьего регистра, выход которого подключен к информационному входу вто-40 рого коммутатора, выход второго счетчика соединен с входом второго одновибратора, информационные выходы третьего и четвертого счетчиков подключены к вторым входам, выход пере- 45 носа четвертого счетчика соединен со счетным входом третьего счетчика, выход элемента НЕ подключен к первому входу третьего элемента И, вход установки третьего регистра соединен с 50 выходом второго элемента ИЛИ, первый вход которого соединен с входами установки второго регистра, с первого по четвертый счетчиков, с вторым входом первого элемента ИЛИ и является 55 входом начальной установки устройства, отличающееся тем, что, с целью повышения быстродействия, в него введены пятый счетчик, три регистра, регистр сдвига, два триггера, четвертый элемент ИЛИ и делитель частоты, вход которого соединен с входом управления сдвигом регистра сдвига и подключен к выходу генератора тактовых импульсов, а выход соединен с вторым входом третьего элемента И и с входом синхронизации первого триггера, входом установки в 1 которого является вход пуска устройства, прямой выход первого триггера подключен к третьему входу третьего элемента И, выход которого соединен с информационным входом регистра сдвига, с нулевым входом второго триггера, с входами синхронизации четвертого и пятого регистров и со счетным входом второго счетчика, выход которого подключен к адресным входам первого и второго блоков памяти, выход второго одновибратора соединен с входом элемента НЕ и со счетным входом пятого счетчика, вход начальной установки которого подключен к входу начальной установки устройства, а выход соединен со счетным входом четвертого счетчика, с вторым входом первого элемента И и с первым входом четвертого элемента И , выход которого подключен к второму входу второго элемента ИЛИ, выход первого одновибратора через элемент задержки соединен с вторым входом четвертого элемента И, выходы четвертого и пятого регистров подключены к адресным входам третьего блока памяти, выход которого соединен с информационным входом шестого регистра, выход которого подключен к информационному входу первого коммутатора, выход второго разряда регистра сдвига соединен с входом синхронизации шестого регистра и с нулевым входом третьего триггера, прямой выход которого подключен к первому входу третьего элемента ИЛИ, выход которого соединен с управляющим входом первого коммутатора, выход последнего разряда регистра сдвига подключен к второму входу второго элемента И и к счетному входу первого счетчика, выход которого соединен с информационным входом второго регистра и с управляющим входом второго коммутатора, выход которого подключен к второму входу третьего элемента ИЛИ, выход переноса третьего счетчика соединен с нулевым входом первого триггера, и яв11 1524067 12 ляется выходом окончания работы уст- та первой выборки является выход перройства, выходом индикации результа- вого элемента И.A device for median filtering of two-dimensional arrays containing four counters, two one-shots, three memory blocks, a delay element, three registers, a NOT element, two adders, a first trigger, two switches, a comparison unit, an element group And, a decoder, four elements And, three an OR element, a clock pulse generator, the transfer output of the first counter through the first one-shot being connected to the first inputs of the 15 elements of the And group, with the first input of the first And element and through the delay element with the first input of the first OR element, output The first and second memory blocks are connected to the first 20 inputs of the first and second adders, respectively, the outputs of the sign bits of which are connected to the inputs of the second OR element, the output of the first switch is connected to the information-25th input of the first register and to the first input of the comparison unit, the output of which is larger connected to the first input of the second AND element, the output of which is connected to the recording control inputs by reading the second and first registers, the output of the first register is connected to the second input of the comparison unit and is in device output, the second register output through 35 decoder is connected to the second inputs of elements And groups, the outputs of which are connected to the information inputs of the third register, the output of which is connected to the information input of the second 40th switch, the output of the second counter is connected to the input of the second one-shot, information outputs the third and fourth counters are connected to the second inputs, the output of the nose of the fourth counter is connected to the counting input of the third counter, the output of the element is NOT connected to the first input of the third AND element, the input of the third register is connected to the 50 output of the second OR element, the first input of which is connected to the inputs of the second register, from the first to the fourth counters, with the second input of the first OR element and is the 55 input of the initial installation of the device, characterized in that , in order to improve performance, it introduced a fifth counter, three registers, a shift register, two triggers, a fourth OR element and a frequency divider, the input of which is connected to the shift control input of the shift register and connected to the output clock generator, and the output is connected to the second input of the third AND element and to the synchronization input of the first trigger, the installation input of which is the device start input, the direct output of the first trigger is connected to the third input of the third AND element, the output of which is connected to the register information input shift, with a zero input of the second trigger, with synchronization inputs of the fourth and fifth registers and with a counting input of the second counter, the output of which is connected to the address inputs of the first and second memory blocks, the output the second one-shot is connected to the input of the element NOT and to the counting input of the fifth counter, the input of the initial setting of which is connected to the input of the initial installation of the device, and the output is connected to the counting input of the fourth counter, with the second input of the first element And and the first input of the fourth element And, the output of which connected to the second input of the second OR element, the output of the first one-shot through the delay element is connected to the second input of the fourth AND element, the outputs of the fourth and fifth registers are connected to the address inputs of the third memory block, the output of which is connected to the information input of the sixth register, the output of which is connected to the information input of the first switch, the output of the second digit of the shift register is connected to the synchronization input of the sixth register and with the zero input of the third trigger, the direct output of which is connected to the first input of the third element OR the output of which is connected to the control input of the first switch, the output of the last digit of the shift register is connected to the second input of the second element And to the counting input of the first counter, turn is connected to the data input of the second register and a control input of the second switch, the output of which is connected to the second input of the third OR gate, transfer output of the third counter is connected to the zero input of the first flip-flop, and YaV 11 1524067 12 wish to set up the output operation Device for closure is the first sample is the output of the device, the output of the indication of the result element I.
SU874205268A 1987-03-02 1987-03-02 Device for median filtering of two-dimensional arrays SU1524067A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU874205268A SU1524067A1 (en) 1987-03-02 1987-03-02 Device for median filtering of two-dimensional arrays

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU874205268A SU1524067A1 (en) 1987-03-02 1987-03-02 Device for median filtering of two-dimensional arrays

Publications (1)

Publication Number Publication Date
SU1524067A1 true SU1524067A1 (en) 1989-11-23

Family

ID=21288969

Family Applications (1)

Application Number Title Priority Date Filing Date
SU874205268A SU1524067A1 (en) 1987-03-02 1987-03-02 Device for median filtering of two-dimensional arrays

Country Status (1)

Country Link
SU (1) SU1524067A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 771665, кл. G 06 F 7/04, 1978. Авторское свидетельство СССР № 1322314, кл.СОб F 15/36, 1985. *

Similar Documents

Publication Publication Date Title
US4648072A (en) High speed data acquisition utilizing multiplex charge transfer devices
SU1524067A1 (en) Device for median filtering of two-dimensional arrays
US4725748A (en) High speed data acquisition utilizing multiple charge transfer delay lines
US4092670A (en) Video processor for solid state star tracker
SU1509957A1 (en) Device for selecting indicators of object images
SU1444821A1 (en) Device for forming random number histogram
SU369632A1 (en) BINARY REGISTER ON MAGNETIC THRESHOLD
SU882029A1 (en) Digital signal combination discriminator
SU1667106A1 (en) Devcie for object image bar chart processing
JPH0793616B2 (en) Phase correction circuit
SU1513440A1 (en) Tunable logic device
SU1524093A1 (en) Buffer storage
SU1046935A1 (en) Scaling device
SU1337904A1 (en) Device for fast fourier transform
SU1397933A1 (en) Device for permutation searching
SU1562902A1 (en) Median filter
SU1191920A1 (en) Device for current estimating of signal level
SU1394458A1 (en) Device for receiving information in frequency code
SU955067A1 (en) Data channel polling device
SU991412A1 (en) Extremum determination device
SU1267433A1 (en) Statistical analyzer of distribution of time intervals
SU913419A1 (en) Device for selecting object images
SU1325514A1 (en) Information interval device
SU559242A1 (en) Device for determining the median of static sampling
SU1049952A1 (en) Data receiving system