SU1651297A1 - Device for histogram shaping - Google Patents

Device for histogram shaping Download PDF

Info

Publication number
SU1651297A1
SU1651297A1 SU894704702A SU4704702A SU1651297A1 SU 1651297 A1 SU1651297 A1 SU 1651297A1 SU 894704702 A SU894704702 A SU 894704702A SU 4704702 A SU4704702 A SU 4704702A SU 1651297 A1 SU1651297 A1 SU 1651297A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
group
output
inputs
elements
Prior art date
Application number
SU894704702A
Other languages
Russian (ru)
Inventor
Виктор Маевич Денисов
Юрий Николаевич Матвеев
Original Assignee
Ленинградский Институт Точной Механики И Оптики
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 Ленинградский Институт Точной Механики И Оптики filed Critical Ленинградский Институт Точной Механики И Оптики
Priority to SU894704702A priority Critical patent/SU1651297A1/en
Application granted granted Critical
Publication of SU1651297A1 publication Critical patent/SU1651297A1/en

Links

Abstract

Изобретение относитс  к вычислительной и измерительной технике и, в частности, может быть использовано дл  анализа бинарных изображений. Целью изобретени   вл етс  расширение класса решаемых задач за счет формировани  двумерных гистограмм . Устройство содержит счетчики 1 и 2, группы 12 и 13 элементов И, группу 16 счетчиков, блоки 6 и 7 сложени , блоки 9 и 10 пам ти, элементы НЕ 11,14 и 15, элементы ИЛИ 3-5, элемент И 8. 1 ил.The invention relates to computing and measuring technology and, in particular, can be used to analyze binary images. The aim of the invention is to expand the class of tasks by forming two-dimensional histograms. The device contains counters 1 and 2, groups 12 and 13 of elements I, group 16 of counters, blocks 6 and 7 of addition, blocks 9 and 10 of memory, elements NOT 11.14 and 15, elements OR 3-5, element AND 8. 1 silt

Description

Изобретение относитс  к вычислительной и измерительной технике и может быть использовано дл  анализа бинарных изображений .The invention relates to computing and measurement technology and can be used to analyze binary images.

Целью изобретени   вл етс  расширение класса решаемых задач за счет формировани  двумерных гистограмм.The aim of the invention is to expand the class of tasks by forming two-dimensional histograms.

Предлагаетс  следующий алгоритм формировани  двумерной гистограммы бинарного изображени .The following algorithm is proposed for generating a two-dimensional histogram of a binary image.

Одномерную гистограмму бинарного изображени  можно представить в видеThe one-dimensional histogram of the binary image can be represented as

G G°G1G G ° G1

где G и G - соответственно числа нулевых и единичных элементов в бинарном изоображении.where G and G are, respectively, the numbers of zero and unit elements in a binary image.

По аналогии представим двумерную гистограмму бинарного изображени  следующим образом:By analogy, we present a two-dimensional histogram of a binary image as follows:

G°°G011 ,(1)G °° G011, (1)

.G10Ј11.G10Ј11

G LG G lg

где G°°, G01, d10, G11 - соответственно числа пар элементов 0-0,0-1,1-0,1-1, содержащихс  в данном бинарном изображении. Элементы матрицы (1) представл ют собойwhere G °°, G01, d10, G11 are, respectively, the number of pairs of elements 0-0.0-1.1-0.1-1 contained in this binary image. The elements of the matrix (1) are

интегральную оценку числа пар элементов определенной  ркости, подсчитанных независимо от пространственного расположени  этих пар, т.е. значений (г, 0). При учете пространственного расположени  пар каждый элемент матрицы (1), в свою очередь, представл етс  набором значений чисел grg пар 0-0, 0-1, 1-0, 1-1 с параметрами (г, в.an integral estimate of the number of pairs of elements of a certain luminance calculated independently of the spatial arrangement of these pairs, i.e. values (g, 0). When taking into account the spatial arrangement of the pairs, each element of the matrix (1), in turn, is represented by a set of values of the numbers grg of the pairs 0-0, 0-1, 1-0, 1-1 with parameters (g, c.

Поскольку элементы бинарного изображени  X xj.j, где х| Ј{0,1}, (i,j)6{lx3} задаютс  на пр моугольном растре, то параметры г, 6 можно выразить в декартовой системе координат через относительные смещени  элементов пары по оси абсцисс (т) и оси ординат (п):Since the elements of the binary image X xj.j, where x | Ј {0,1}, (i, j) 6 {lx3} are set on a rectangular raster, then the parameters r, 6 can be expressed in the Cartesian coordinate system in terms of the relative displacements of the elements of the pair along the abscissa axis (t) and the ordinate axis (n) :

в/m2 -Hi2arctg Ј.in / m2 -Hi2arctg Ј.

слcl

сwith

ОчOch

елate

10ten

юYu

V4V4

Дл  нахождени  общего числа пар определенного типа с заданным смещением m и п необходимо вычислить следующие выражени :To find the total number of pairs of a certain type with a given offset m and n, it is necessary to calculate the following expressions:

-00 Зт,п-00 Зт, п

п Ј 2i - т, J -n,p Ј 2i - t, J -n,

$. Ј Ј Xlj.X|-m, J-m$. Ј Ј Xlj.X | -m, J-m

ff t 1i 1ff t 1i 1

JL Jl

xij.xi - m. J-n,xij.xi - m. Jn

9.п- 2, 2, 9.p- 2, 2,

ii

f f

X|j xi - m, J - n,X | j xi - m, J - n,

где(1-т, J-n)e-lxJ.where (1st, Jn) e-lxJ.

Вычисление отсчетов гистограммы бинарного изображени  по формуле (2) позвол ет формировать как одномерные, так и двумерные гистограммы.Calculating the samples of the histogram of a binary image using formula (2) allows you to create both one-dimensional and two-dimensional histograms.

На чертеже приведена структурна  схема устройства.The drawing shows a block diagram of the device.

Устройство содержит адресные счетчики 1 и 2, элементы ИЛИ 3 - 5, блоки 6 и 7 сложени , элемент И 8, блоки 9 и 10 пам ти, элемент НЕ 11, группы 12 и 13 элементов И, элементы НЕ 14 и 15, группу 16 накапливающих счетчиков, группу 17 информационных выходов, информационный вход 18, вход 19 задани  режима, входы 20 и 21 задани  ординаты и абсциссы смещени  изображени , выход 22- запуска, выход 23 окончани  вычислений, вход 24 синхронизации и тактовый вход 25.The device contains address counters 1 and 2, elements OR 3 - 5, blocks 6 and 7 of addition, element AND 8, blocks 9 and 10 of memory, element NOT 11, groups 12 and 13 elements And, elements NOT 14 and 15, group 16 accumulating counters, group 17 of information outputs, information input 18, mode setting input 19, inputs 20 and 21 of the ordinate setting and image displacement abscissa, start output 22, calculation end output 23, synchronization input 24 and clock input 25.

Устройство дл  формировани  гистограмм работает следующим образом.A device for forming histograms works as follows.

Предварительно по информационному входу 18 производитс  загрузка отсчетов бинарного изображени  X xij. При этом на входах 21 и 20 устанавливаютс  значени  m 0. n 0. а на входе 19 задани  режима устройства устанавливаетс  сигнал О (режим загрузки). При подаче сигнала запуска разрешаетс  поступление синхроимпульо- сов на вход устройства. Сигналом запуска производитс  обнуление адресных счетчиков 1 и 2 при наличии импульса на входе 24 синхронизации. Сигнал запуска сбрасываетс  по спаду первого импульса на входе 24 синхронизации. При загрузке отсчетов исходного бинарного изображени  адреса вырабатываютс  с помощью адресных счетчиков 1 и 2, счетчик 1 вырабатывает значение адреса I -1J. счетчик 2 вырабатывает значение I ТдГ. На счетный вход адресного счетчика 2 поступают тактовые импульсы с входа 25. При переполнении счетчика 2 происходит его обнуление и увеличение на единицу состо ни  счетчика 1. При каждом импульсе на входе 25 на адресных входах блоков 9 и 10 устанавливаютс  одинаковые пары адресов. Запись в блоки 9 и 10 пам ти входных отсчетов, поступающих по входу 18, производитс  в соответствии с поступлением синхронизирующих импульсов по входу 24. При формировании наибольших адресов записи I и 3 счетчики 1 и 2 устанавливаютс  одновременно в О и на выходе 23 формируетс  сигнал окончани  вычислений .Preliminarily, information samples 18 are loaded with binary image samples X xij. At the same time, at the inputs 21 and 20, the values m 0 are set. N 0. And the signal O (loading mode) is set at the input 19 of the device mode setting. When a start signal is given, the input of the sync pulse to the device input is allowed. The trigger signal resets the address counters 1 and 2 in the presence of a pulse at the synchronization input 24. The trigger signal is reset by the decay of the first pulse at sync input 24. When loading samples of the original binary image, addresses are generated using address counters 1 and 2, and counter 1 generates the value of address I -1J. counter 2 generates the value of I TdG. The counting input of the address counter 2 receives clock pulses from the input 25. With the overflow of the counter 2, it is zeroed out and an increase by one in the state of the counter 1. With each pulse at the input 25, identical address addresses are set at the address inputs of blocks 9 and 10. Writing to blocks 9 and 10 of the memory of input samples arriving at input 18 is made in accordance with the arrival of synchronizing pulses at input 24. At the formation of the largest write addresses I and 3, counters 1 and 2 are set simultaneously at 0 and output 23 is generated calculations

При формировании значений гистог- рамм устройство работает в соответствии сWhen forming the histogram values, the device operates in accordance with

выражением (2). При этом на входе 19 устанавливаетс  значение 1 (режим работы), которое при поступлении синхроимпульсов по входу 24 разрешает считывание данныхexpression (2). In this case, the input 19 is set to 1 (mode of operation), which, upon receipt of clock pulses on the input 24, permits data reading

из блоков пам ти. На входах 21 и 20 значени  тип устанавливаютс  в дополнительных кодах. Формирование значений гистограммы начинаетс  с момента подачи сигнала по входу 22. При этом происходитfrom memory blocks. At the inputs 21 and 20, the values of the type are set in additional codes. The formation of the histogram values starts from the moment the signal is fed through the input 22. At that

обнуление счетчиков 1 и 2, а также запись первых значений в накапливающие счетчики группы 16. На выходах счетчиков 1 и 2 формируютс  адреса дл  считывани  отсчетов xi.j из блока 9, а на выходах блоков 6 и 7resetting the counters 1 and 2, and also writing the first values to the accumulating counters of group 16. At the outputs of the counters 1 and 2, addresses are generated for reading the counts xi.j from block 9, and at the outputs of blocks 6 and 7

сложени  вырабатываютс  адреса дл  счи- тывани  отсчетов xi-mj-n из блока 10. При этом, если значение Q-n) становитс  отрицательным , то сигналом с выхода знакового разр да блока 7 сложени  производитс  обнуление счетчика 2 Q 0) и увеличение на единицу состо ни  счетчика 1, если значение (f-m)становитс  отрицательным, то происходит обнуление обоих счетчиков и выработка сигнала окончани  вычислений.additions are generated by addresses for reading the xi-mj-n counts from block 10. In this case, if the value Qn) becomes negative, then the output signal of the sign bit of the addition block 7 causes the counter to be zeroed out counter 1, if the value (fm) becomes negative, then both counters are reset and a signal of the end of calculations is generated.

8 результате формировани  адресов считывани  на выходе блока 9 получено значение xij, а на выходе блока 10 - xi-m,j-n. При выработке сигнала окончани  вычислений процесс вычислени  заканчиваетс  и по8, the result of the formation of read addresses at the output of block 9 is the value of xij, and at the output of block 10, xi-m, j-n. When generating the signal of the end of the calculation, the calculation process ends and

выходам 17 производитс  считывание значений гистограммы. Вычисление значений гистограммы первого пор дка производитс  (на входе 19 устанавливаетс  1) при m 0, n 0.the outputs 17 read the histogram values. The calculation of the first-order histogram values is performed (set 1 at input 19) with m 0, n 0.

Claims (1)

Формула изобретени  Устройство дл  формировани  гистограмм , содержащее первый адресный счетчик , первую группу элементов И, группуClaims An apparatus for generating histograms comprising a first address counter, a first group of elements AND, a group выходных счетчиков, счетные входы которых соединены с выходами соответствующих элементов И первой группы, отличающеес  тем, что, с целью расширени  класса решаемых задан за счет формировани  двумерных гистограмм, оно дополнительно содержит второй адресный счетчик, два блока сложени , два блока пам ти, вторую группу элементов И, три элемента НЕ, три элемента ИЛИ, элемент И, причем первый вход первого элемента И второй группы подключен к входу запуска устройства, а выход первого элемента И второй группы подключен к первому входу первого элемента ИЛИ vt к входам разрешени  параллельной записи начального состо ни  выходныхoutput counters, the counting inputs of which are connected to the outputs of the corresponding elements AND of the first group, characterized in that, in order to expand the class of solved, it is specified by forming two-dimensional histograms, it additionally contains a second address counter, two addition blocks, two memory blocks, the second group elements AND, three elements NOT, three elements OR, element AND, the first input of the first element AND of the second group is connected to the start input of the device, and the output of the first element AND of the second group is connected to the first input of the first e element OR vt to the enable inputs of the parallel recording of the initial state of the output счетчиков группы, втооой вход первого элемента ИЛИ соединен с выходом знакового разр да первого блока сложени , первый вход второго элемента ИЛИ и вход обнулени  первого адресного счетчика подключе- ны к выходу первого элемента ИЛИ, второй вход второго элемента ИЛИ и первый вход третьего элемента ИЛИ соединены с выходом знакового разр да второго блока сложени , выходы третьего и второго элементов ИЛИ подключены, соответственно , к счетному входу первого адресного счетчика и входу обнулени  второго адресного счетчика, счетный вход второго адресного счетчика  вл етс  тактовым входом устройства, выход переполнени  второго адресного счетчика соединен с вторым входом третьего элемента ИЛИ. выходы признака обнулени  первого и второго адресных счетчиков подключены соответст- венно к первому и второму входам элемента И, выход которого  вл етс  выходом окончани  вычислений устройства, первые входы первого и втооого блоков сложени  соединены, соответчтвенно, с первым и вто- рым адресными входами первого блока пам ти и информационными выходами соответственно первого и второго адресных счетчиков, вторые входы первого и второго блоков сложени   вл ютс  соответственно входами задани  абсциссы смещени  изображени  и ординаты смещени  изображени , входы разрешени  считывани  первого и второго блоков пам ти подключены к выходу второго элемента И второй группы, инgroup counters, the second input of the first element OR is connected to the output of the sign bit of the first addition unit, the first input of the second OR element and the zero input of the first address counter are connected to the output of the first OR element, the second input of the second OR element and the first input of the third OR element with the output of the sign bit of the second addition unit, the outputs of the third and second elements OR are connected, respectively, to the counting input of the first address counter and the zero input of the second address counter, the count input second The second address counter is a clock input of the device, the overflow output of the second address counter is connected to the second input of the third OR element. the outputs of zeroing the first and second address counters are connected respectively to the first and second inputs of the AND element, the output of which is the output of the end of the device calculations, the first inputs of the first and second addition blocks are connected, respectively, with the first and second address inputs of the first block the memory and information outputs of the first and second address counters, respectively; the second inputs of the first and second addition blocks are respectively the inputs for setting the abscissa of the image displacement and the ordinate displacements image read enable input of the first and second memory blocks are connected to the output of the second AND gate second group yn формационные входы первого и второго блоков пам ти подключены к информационному входу устройства, первый и второй адресные входы блока пам ти подключены соответственно к информационным выходам первого и второго блоков сложени , входы разрешени  записи первого и второго блоков пам ти подключены к выходу третьего элемента И второй группы, первый вход второго элемента И второй группы соединен с входом первого элемента НЕ и  вл етс  входом задани  режима устройства , выход первого элемента НЕ подключен к первому входу третьего элемента И второй группы, первые входы первого и второго элементов И первой группы подключены к выходу второго элемента НЕ. вход которого соединен с первыми входами третьего и четвертого элементов И первой группы и информационным выходам второго блока пам ти, вторые входы второго и четвертого элементов И первой группы подключены к выходу третьего элемента НЕ. вход которого соединен с вторыми входами первого и третьего элементов И первой группы и информационным выходом первого блока пам ти , счетный вход каждого выходного счетчика группы подключен к входу задани  начального состо ни  одноименного выходного счетчика, информационные выходы выходных счетчиков группы образуют группу информационных выходов устройства, вторые входы элементов И второй группы под- ключены к входу синхронизацииthe formation inputs of the first and second memory blocks are connected to the information input of the device, the first and second address inputs of the memory block are connected respectively to the information outputs of the first and second addition blocks, the write enable inputs of the first and second memory blocks are connected to the output of the third element II of the second group , the first input of the second element AND the second group is connected to the input of the first element NOT and is the input of the device mode setting, the output of the first element is NOT connected to the first input of the third element And the second group, the first inputs of the first and second members of the first group and connected to the output of the second NOT member. whose input is connected to the first inputs of the third and fourth elements AND of the first group and the information outputs of the second memory block, the second inputs of the second and fourth elements AND of the first group are connected to the output of the third element NOT. the input of which is connected to the second inputs of the first and third elements AND of the first group and information output of the first memory block, the counting input of each output counter of the group is connected to the input of setting the initial state of the same output counter, the information outputs of the output counters of the group form a group of information outputs of the device, the second the inputs of the elements of the second group are connected to the synchronization input устройства.devices. 2222 23 27 2023 27 20
SU894704702A 1989-06-14 1989-06-14 Device for histogram shaping SU1651297A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU894704702A SU1651297A1 (en) 1989-06-14 1989-06-14 Device for histogram shaping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU894704702A SU1651297A1 (en) 1989-06-14 1989-06-14 Device for histogram shaping

Publications (1)

Publication Number Publication Date
SU1651297A1 true SU1651297A1 (en) 1991-05-23

Family

ID=21453963

Family Applications (1)

Application Number Title Priority Date Filing Date
SU894704702A SU1651297A1 (en) 1989-06-14 1989-06-14 Device for histogram shaping

Country Status (1)

Country Link
SU (1) SU1651297A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2456679C2 (en) * 2007-12-26 2012-07-20 Шарп Кабусики Кайся Methods and systems for display source light management with histogram processing
US9083519B2 (en) 2008-02-29 2015-07-14 Sharp Laboratories Of America, Inc. Systems and methods for adaptively selecting a decoding scheme to decode embedded information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР Мг 995097. кл.С 06 F 15/36, 1981. *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2456679C2 (en) * 2007-12-26 2012-07-20 Шарп Кабусики Кайся Methods and systems for display source light management with histogram processing
US9083519B2 (en) 2008-02-29 2015-07-14 Sharp Laboratories Of America, Inc. Systems and methods for adaptively selecting a decoding scheme to decode embedded information

Similar Documents

Publication Publication Date Title
SU1651297A1 (en) Device for histogram shaping
CA1124863A (en) Method and apparatus for determining velocity of a moving member
SU1472919A1 (en) Television device for selection of objects
SU1018137A1 (en) Graphic data reading device
SU1585789A1 (en) Periodic function digit generator
SU1481797A1 (en) Distribution quantile determination device
SU1336033A1 (en) Device for computing current mean value
SU1264202A1 (en) Device for performing interpolation
RU1837274C (en) Device for preliminary information processing
SU1262545A1 (en) Device for reading graphic information
RU2042187C1 (en) Device for generation of uniform distribution of random integers
SU1614023A1 (en) Device for reading images
SU1016672A1 (en) Device for digital releif model
SU1691827A1 (en) Device to input data from two-way transducers
SU1425651A1 (en) Extremum filtration device
SU1633422A1 (en) Device for solving systems of linear algebraic equations
SU1472912A1 (en) Data input unit
SU1411727A2 (en) Device for preprocessing of information
RU2004926C1 (en) Device for computation of multidimensional polynomials
RU1805292C (en) Linear displacement metering device
SU1367016A1 (en) Signature analyser
SU1269163A1 (en) Device for determining position of object
SU1413629A1 (en) Priority signal selection device
SU1444810A1 (en) Device for ranging signals
SU1298516A1 (en) Device for measuring length of rolled stock