SU1651297A1 - Device for histogram shaping - Google Patents
Device for histogram shaping Download PDFInfo
- 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
Links
Landscapes
- Image Analysis (AREA)
- Length Measuring Devices By Optical Means (AREA)
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)
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)
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 |
-
1989
- 1989-06-14 SU SU894704702A patent/SU1651297A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР Мг 995097. кл.С 06 F 15/36, 1981. * |
Cited By (2)
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 | |
JPH0455272B2 (en) | ||
SU1472919A1 (en) | Television device for selection of objects | |
SU1018137A1 (en) | Graphic data reading device | |
SU1585789A1 (en) | Periodic function digit generator | |
SU1341651A2 (en) | Histogram forming device | |
SU1481797A1 (en) | Distribution quantile determination device | |
SU1336033A1 (en) | Device for computing current mean value | |
RU1837274C (en) | Device for preliminary information processing | |
SU1262545A1 (en) | Device for reading graphic information | |
SU1504509A1 (en) | Ultrasonic self-calibrating meter of linear dimensions and displacements | |
RU2042187C1 (en) | Device for generation of uniform distribution of random integers | |
RU2091708C1 (en) | Gear measuring linear and angular movements | |
SU1621059A1 (en) | Device for processing images of objects | |
SU1614023A1 (en) | Device for reading images | |
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 | |
RU2004926C1 (en) | Device for computation of multidimensional polynomials | |
RU1805292C (en) | Linear displacement metering device | |
SU1367016A1 (en) | Signature analyser | |
SU1580355A1 (en) | Device for reproduction of functions | |
SU1269163A1 (en) | Device for determining position of object |