RU2337501C2 - Method for blur compensation of moving object image and device for implementation of method - Google Patents

Method for blur compensation of moving object image and device for implementation of method Download PDF

Info

Publication number
RU2337501C2
RU2337501C2 RU2006146536/09A RU2006146536A RU2337501C2 RU 2337501 C2 RU2337501 C2 RU 2337501C2 RU 2006146536/09 A RU2006146536/09 A RU 2006146536/09A RU 2006146536 A RU2006146536 A RU 2006146536A RU 2337501 C2 RU2337501 C2 RU 2337501C2
Authority
RU
Russia
Prior art keywords
group
input
output
comparator
multiplexer
Prior art date
Application number
RU2006146536/09A
Other languages
Russian (ru)
Other versions
RU2006146536A (en
Inventor
рев Сергей Викторович Дегт (RU)
Сергей Викторович Дегтярев
Виталий Семенович Титов (RU)
Виталий Семенович Титов
Максим Игоревич Труфанов (RU)
Максим Игоревич Труфанов
Вера Сергеевна Яковлева (RU)
Вера Сергеевна Яковлева
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 RU2006146536/09A priority Critical patent/RU2337501C2/en
Publication of RU2006146536A publication Critical patent/RU2006146536A/en
Application granted granted Critical
Publication of RU2337501C2 publication Critical patent/RU2337501C2/en

Links

Images

Landscapes

  • Image Processing (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

FIELD: physics, computation equipment.
SUBSTANCE: the invention claims method of image blur compensation involving: calculation of difference between measured image pixel brightness and brightness assessment obtained earlier on the basis of previous frame sequence; movement detection by comparison of obtained difference to threshold value; defining of movement direction for each pixel; combination of adjoining pixels with the same movement direction in a single object; outlining contours of moving objects by adding their initial B(k) and gradient ▽(B(k)) of images; and generation of output image
Figure 00000003
where k1, k2 are weight factors. Device of image blur compensation includes: image sensor, controller, mode movement detection module, object detection module, correction module, first RAM device, second RAM device, third RAM device, counter, first comparator, second comparator, first multiplexor, second multiplexor, third multiplexor, fourth multiplexor, fifth multiplexor, sixth multiplexor, seventh multiplexor, first demultiplexor, second demultiplexor.
EFFECT: blur compensation for moving object image in real-time mode.
2 cl, 11 dwg

Description

Изобретение относится к вычислительной технике и может быть использовано для повышения четкости изображения, поступающего с видеодатчика, при движении видеодатчика или нахождении в кадре движущихся объектов.The invention relates to computer technology and can be used to improve the clarity of the image coming from the video sensor when the video sensor is moving or moving objects are in the frame.

Известен способ устранения размытости изображения вследствие движения объектов на цифровом изображении (Tull D.L. Preventing blur caused by motion of the subject in a digital image, 2002, патент США №6441848). Способ включает в себя получение изображения матричным фоточувствительным приемником излучения (МФПИ) в течение заданного времени накопления; вычисление значения переменной, пропорциональной интенсивности потока излучения для каждого пикселя; вычисление второй производной указанной переменной для каждого пикселя; сравнения значения второй производной указанной переменной с пороговым значением, достижение которого соответствует обнаружению движения; вычисление времени накопления для каждого пикселя в процентном соотношении к текущему времени накопления; изменение времени накопления для каждого пикселя согласно вычисленному значению процентного соотношения.There is a method of eliminating image blur due to the movement of objects in a digital image (Tull D. L. Preventing blur caused by motion of the subject in a digital image, 2002, US patent No. 6441848). The method includes obtaining an image by a matrix photosensitive radiation receiver (MPPI) for a given accumulation time; calculating a variable value proportional to the intensity of the radiation flux for each pixel; calculating a second derivative of the specified variable for each pixel; comparing the value of the second derivative of the specified variable with a threshold value, the achievement of which corresponds to the detection of motion; calculating the accumulation time for each pixel as a percentage of the current accumulation time; change in accumulation time for each pixel according to the calculated percentage value.

Недостатками данного способа являются:The disadvantages of this method are:

- наличие искажений на результирующем изображении, вызванных перепадами яркости на границах областей с различным временем накопления;- the presence of distortions in the resulting image caused by differences in brightness at the boundaries of regions with different accumulation times;

- его неприменимость для приемников изображения на основе приборов с зарядовой связью (ПЗС), для которых невозможно изменение времени накопления каждого пикселя в отдельности.- its inapplicability for image receivers based on charge-coupled devices (CCD), for which it is impossible to change the accumulation time of each pixel separately.

Известно устройство, реализующее функцию устранения размытости изображения вследствие движения объектов на цифровом изображении (Tull D.L. Preventing blur caused by motion of the subject in a digital image, 2002, патент США №6441848), содержащее матричный фоточувствительный приемник излучения, в состав каждого элементарного фотосенсора (ЭФ) которого входит схема определения движения; фокусирующую линзу; схему памяти, подключенную к матричному фоточувствительному приемнику излучения, которая хранит значения времени накопления для каждого элементарного фотосенсора.A device is known that implements the function of eliminating image blur due to the movement of objects in a digital image (Tull DL Preventing blur caused by motion of the subject in a digital image, 2002, US patent No. 6441848), containing a matrix photosensitive radiation detector, in the composition of each elementary photosensor ( EF) which includes a motion detection circuit; focusing lens; a memory circuit connected to a matrix photosensitive radiation receiver that stores accumulation time values for each elementary photosensor.

Недостатками данного устройства являются:The disadvantages of this device are:

- высокая сложность его технологического исполнения, связанная с необходимостью встраивания в каждый пиксель схемы определения движения;- the high complexity of its technological design, associated with the need to embed motion detection schemes in each pixel;

- снижение коэффициента заполнения пикселя (отношение светочувствительной поверхности пикселя к его общей площади) вследствие встраивания в каждый пиксель схемы определения движения, что приводит к снижению чувствительности устройства и повышению уровня геометрического шума и шума фиксированной разводки.- a decrease in the pixel fill factor (the ratio of the photosensitive surface of the pixel to its total area) due to the incorporation of a motion detection circuit into each pixel, which leads to a decrease in the sensitivity of the device and an increase in the level of geometric noise and noise of fixed wiring.

Наиболее близким к изобретению является способ компенсации размытости изображения, вызванной движением или насыщением элементарного фотосенсора, с одновременным расширением динамического диапазона на основе синтеза изображения по серии кадров (Liu et. all, Motion/saturation detection system and method for synthesizing high dynamic range motion blur free images from multiple captures, 2006, патент США №7061524). Согласно способу рассчитывают разность между измеренной яркостью пикселей изображения и ранее полученной ее оценкой на основе последовательности предыдущих кадров, обнаруживают движение путем сравнения полученной разности с пороговой величиной, при отсутствии движения принимают полученные измерения яркости за истинное изображение, при наличии движения измеренные значения яркости корректируются на основе полученных оценок.Closest to the invention is a method of compensating for blurriness caused by movement or saturation of an elementary photosensor, while expanding the dynamic range based on image synthesis over a series of frames (Liu et. All, Motion / saturation detection system and method for synthesizing high dynamic range motion blur free images from multiple captures, 2006, US patent No. 7061524). According to the method, the difference between the measured brightness of the image pixels and its previously obtained estimate is calculated on the basis of the sequence of previous frames, the movement is detected by comparing the obtained difference with a threshold value, in the absence of movement, the received brightness measurements are taken as a true image, if there is movement, the measured brightness values are adjusted based on received estimates.

Основным недостатком данного способа является обработка как минимум четырех кадров для получения изображения с достаточной степенью компенсации размытости, что накладывает значительные ограничения на быстродействие устройства, реализующего способ, и в некоторых случаях вследствие формирования современными видеодатчиками изображений с большой разрешающей способностью приводит к невозможности функционирования устройства в режиме реального времени.The main disadvantage of this method is the processing of at least four frames to obtain an image with a sufficient degree of blur compensation, which imposes significant limitations on the speed of the device that implements the method, and in some cases, due to the formation of high resolution images by modern video sensors, the device cannot operate in the mode real time.

Наиболее близким к предлагаемому является устройство компенсации размытости изображения, вызванной движением или насыщением ЭФ (Liu et. all, Motion/saturation detection system and method for synthesizing high dynamic range motion blur free images from multiple captures, 2006, патент США №7061524). Устройство состоит из: датчика изображения, каждый ЭФ которого содержит средства обнаружения движения/насыщения между предыдущим кадром и текущим кадром; блока обработки, определяющего, принимать ли для каждого ЭФ выборку изображения, зафиксированную в течение текущего кадра; блока оценки яркости в течение глобального времени экспозиции; блока определения разности между измеренной яркостью, полученной во время текущего кадра, и оценкой яркости, сгенерированной в течение предыдущего кадра, для каждого ЭФ; блока сравнения вычисленной разности с пороговым значением для каждого ЭФ; блока модификации оценки яркости для каждого ЭФ; блока формирования выходного изображения на основе заключительной оценки яркости для каждого ЭФ.Closest to the proposed is a device for compensating for image blur caused by motion or saturation of EF (Liu et. All, Motion / saturation detection system and method for synthesizing high dynamic range motion blur free images from multiple captures, 2006, US patent No. 7061524). The device consists of: an image sensor, each EF of which contains motion / saturation detection means between the previous frame and the current frame; a processing unit that determines whether to accept for each EF a sample of the image captured during the current frame; a unit for estimating brightness during a global exposure time; a unit for determining the difference between the measured brightness obtained during the current frame and the brightness estimate generated during the previous frame for each EF; a unit for comparing the calculated difference with a threshold value for each EF; a block for estimating the brightness for each EF; an output image forming unit based on a final brightness estimate for each EF.

Недостатком данного устройства является низкий коэффициент заполнения пикселя (не более 10%), что существенно ухудшает чувствительность видеодатчика, высокая сложность его технологического исполнения и высокая структурная сложность, связанные с необходимостью встраивания в каждый пиксель схемы обнаружения движения.The disadvantage of this device is the low pixel duty ratio (not more than 10%), which significantly worsens the sensitivity of the video sensor, the high complexity of its technological design and high structural complexity associated with the need to incorporate motion detection schemes into each pixel.

Технической задачей изобретения является компенсация размытости изображения движущихся объектов в режиме реального времени для МФПИ любого типа (ПЗС, на основе полупроводниковых комплементарных пар металл-оксид-полупроводник (КМОП)) с одновременным снижением технологического исполнения устройства и снижением его структурной сложности.An object of the invention is to compensate for blurring images of moving objects in real time for any type of MPPI (CCD based on semiconductor complementary metal-oxide-semiconductor (CMOS) pairs) while reducing the technological design of the device and reducing its structural complexity.

Задача решается тем, что в известный способ компенсации размытости изображения, вызванной движением, включающий определение межкадровой разности яркости изображения, определение движения для каждого пикселя изображения, корректировку яркости только движущихся пикселей, согласно изобретению введены определение направления движения для каждого пикселя путем обработки смежных кадров скользящим окном 3×3 элемента и анализа суммарных значений элементов межкадровых разностей, объединение движущихся в одном направлении смежных пикселей в объект на основе анализа расстояния между двумя пикселями с одинаковым направлением движения, подчеркивание контуров движущихся объектов путем сложения исходного изображения движущегося объекта с его градиентным изображением.The problem is solved in that in the known method of compensating for motion blur caused by motion, including determining the interframe difference in brightness of the image, determining motion for each pixel of the image, adjusting the brightness of only moving pixels, the invention defines the direction of movement for each pixel by processing adjacent frames with a sliding window 3 × 3 elements and analysis of the total values of the elements of inter-frame differences, the union of adjacent pixels moving in one direction into an object based on the analysis of the distance between two pixels with the same direction of motion, underlining the contours of moving objects by adding the original image of a moving object with its gradient image.

Техническая задача решается тем, что в устройство, содержащее датчик изображения, введены контроллер, модуль обнаружения движения МОД, модуль определения объектов, модуль коррекции, первое ОЗУ, второе ОЗУ, третье ОЗУ, счетчик, элемент ИЛИ, первый компаратор, второй компаратор, первая константа, вторая константа, первый мультиплексор, второй мультиплексор, третий мультиплексор, четвертый мультиплексор, пятый мультиплексор, шестой мультиплексор, седьмой мультиплексор, первый демультиплексор, второй демультиплексор, третья константа.The technical problem is solved by the fact that the controller, the MOD motion detection module, the object detection module, the correction module, the first RAM, the second RAM, the third RAM, the counter, the OR element, the first comparator, the second comparator, the first constant are introduced into the device containing the image sensor , second constant, first multiplexer, second multiplexer, third multiplexer, fourth multiplexer, fifth multiplexer, sixth multiplexer, seventh multiplexer, first demultiplexer, second demultiplexer, third constant.

Изобретение может быть использовано для компенсации размытости изображения движущихся объектов в режиме реального времени в различных видеодатчиках и системах технического зрения, выполненных на базе твердотельных МФПИ различных типов.The invention can be used to compensate for blurring images of moving objects in real time in various video sensors and systems of technical vision, made on the basis of solid-state MPPI of various types.

Сущность изобретения поясняется чертежами, где на фиг.1 приведен алгоритм способа компенсации размытости изображения, на фиг.2 - коды направления перемещения пикселя в восьмисвязной окрестности, на фиг.3 - структурная схема устройства компенсации размытости изображения движущихся объектов, на фиг.4 - структурная схема контроллера, на фиг.5 - структурная схема модуля обнаружения движения, на фиг.6 - структурная схема регистрового блока, на фиг.7 - структурная схема суммирующего блока, на фиг.8 - структурная схема модуля определения объектов, на фиг.9 - структурная схема модуля коррекции, на фиг.10 - структурная схема модуля подчеркивания контуров, на фиг.11 - значения констант регистрового блока.The invention is illustrated by drawings, where Fig. 1 shows an algorithm for a method of compensating for blurriness of an image, Fig. 2 shows codes of a direction for moving a pixel in an eight-connected neighborhood, Fig. 3 is a structural diagram of a device for compensating for blurring images of moving objects, and Fig. 4 is a structural controller diagram, FIG. 5 is a block diagram of a motion detection module, FIG. 6 is a block diagram of a register block, FIG. 7 is a block diagram of a summing block, FIG. 8 is a block diagram of an object detection module, in f g.9 - block diagram of the correction unit, Figure 10 - a block diagram of contour emphasizing module, 11 - the values of the constants register unit.

Процесс компенсации размытости изображения (фиг.1) состоит из нескольких этапов: считывание изображения, выделение на изображении движущихся пикселей на основе анализа межкадровой разности, определение направления движения каждого пикселя, объединение движущихся в одном направлении смежных пикселей в объект, подчеркивание контуров движущихся объектов для компенсации размытия изображения путем сложения их исходного и градиентного изображений, формирование выходного изображения.The process of compensating for blurring the image (Fig. 1) consists of several stages: reading the image, highlighting the moving pixels on the image based on the analysis of the interframe difference, determining the direction of movement of each pixel, combining adjacent pixels moving in the same direction into an object, emphasizing the contours of moving objects to compensate blurring the image by adding their original and gradient images, the formation of the output image.

Движение каждого пикселя относительно текущего k-го кадра определяется по принципу межкадрового вычитания: значение разности яркостей статичных пикселей на смежных кадрах равно 0 (при условии неизменной освещенности). Расчет производится для восьмисвязной окрестности каждого пикселя, каждому из восьми возможных направлений движения присваивается определенный код.The motion of each pixel relative to the current k-th frame is determined by the principle of inter-frame subtraction: the value of the difference of brightness of static pixels on adjacent frames is 0 (under the condition of constant illumination). The calculation is made for the eight-connected neighborhood of each pixel, each of the eight possible directions of movement is assigned a specific code.

Для определения номера направления перемещения r (фиг.2) каждого пикселя (х,у) кадр обрабатывается скользящим окном размера 3×3 следующим образом: для каждого пикселя (х,у) текущего кадра составляется матрица яркости В(k) смежных с ним пикселей по 8 направлениям:To determine the number of the direction of movement r (Fig. 2) of each pixel (x, y), the frame is processed by a 3 × 3 sliding window as follows: for each pixel (x, y) of the current frame, a brightness matrix B (k) of adjacent pixels is compiled in 8 directions:

Figure 00000004
Figure 00000004

Элементы матрицы В(k), индексы которых равны 0, (Х+1) или (Y+1), принимаются равными 0, где X, Y - размеры кадра по горизонтали и вертикали соответственно.Elements of the matrix B (k), whose indices are 0, (X + 1) or (Y + 1), are taken equal to 0, where X, Y are the horizontal and vertical frame sizes, respectively.

Далее матрица В(k) преобразуется в матрицу В*(k) путем вычитания из яркостей смежных пикселей яркости центрального пикселя:Next, the matrix B (k) is converted into the matrix B * (k) by subtracting the brightness of the central pixel from the brightnesses of adjacent pixels:

Figure 00000005
Figure 00000005

Данное преобразование позволяет учесть возможные изменения внешней освещенности сцены с одним и тем же расположением объектов в текущем кадре относительно предыдущего кадра.This conversion allows you to take into account possible changes in the ambient illumination of the scene with the same arrangement of objects in the current frame relative to the previous frame.

Аналогичным образом для обработки предыдущего (k-1)-го кадра составляется матрица В*(k-1):Similarly, to process the previous (k-1) -th frame, the matrix B * (k-1) is compiled:

Figure 00000006
Figure 00000006

Результат вычитания матрицы B*(k-1) из матрицы В*(k) позволяет судить о том, остался ли центральный пиксель неподвижным на смежных кадрах, если равен нулю центральный пиксель результирующей матрицы В**(k/k-1), т.е. выполняется следующее условие:The result of subtracting the matrix B * (k-1) from the matrix B * (k) allows us to judge whether the central pixel remained stationary on adjacent frames if the central pixel of the resulting matrix B ** (k / k-1) is equal to zero, t .e. the following condition is met:

Figure 00000007
Figure 00000007

Если центральный пиксель результирующей матрицы В**(k/k-1) не равен 0, делается вывод о движении данного пикселя.If the central pixel of the resulting matrix B ** (k / k-1) is not 0, a conclusion is drawn about the movement of this pixel.

Далее производится определение направления движения каждого пикселя. Для этого из матрицы B*(k-1) формируются 8 матриц, сдвинутых на 1 пиксель по каждому из 8 направлений (недостающие строки и/или столбцы заполняются нулями). Матрицы определения перемещения центрального пикселя на текущем кадре относительно предыдущего задаются в общем виде следующим образом:Next, the direction of movement of each pixel is determined. For this, 8 matrices shifted by 1 pixel in each of 8 directions are formed from the matrix B * (k-1) (missing rows and / or columns are filled with zeros). The matrices for determining the displacement of the central pixel in the current frame relative to the previous one are defined in general form as follows:

Figure 00000008
Figure 00000008

Для формирования 8 результирующих матриц перемещений по каждому из 8 направлений необходимо вычесть каждую матрицу определения направления из матрицы В*(k). Результирующие матрицы яркости изображения, вычисляющие перемещение пикселя на текущем кадре, задаются в общем виде следующим образом:To generate 8 resulting displacement matrices in each of the 8 directions, it is necessary to subtract each direction determination matrix from the matrix B * (k). The resulting image brightness matrices, which calculate the pixel movement on the current frame, are defined in general terms as follows:

Figure 00000009
Figure 00000009

За направление движения пикселя принимается то направление, для которого суммарное значение изменений яркости (сумма всех элементов результирующих матриц) по модулю является минимальным.The direction of movement of the pixel is the direction for which the total value of the brightness changes (the sum of all the elements of the resulting matrices) is minimal in absolute value.

Figure 00000010
Figure 00000010

где sup_ind(*) - функция, значением которой является величина верхнего индекса матрицы Вr(k/k-1).where sup_ind (*) is a function whose value is the value of the upper index of the matrix B r (k / k-1).

Затем производится определение движущихся объектов. Для этого необходимо найти соседние пиксели с одинаковым направлением движения, поиск которых осуществляется в соответствии с формулами (8)-(13)Then, moving objects are determined. For this, it is necessary to find neighboring pixels with the same direction of motion, the search of which is carried out in accordance with formulas (8) - (13)

Figure 00000011
Figure 00000011

Figure 00000012
Figure 00000012

Figure 00000013
Figure 00000013

Figure 00000014
Figure 00000014

Figure 00000015
Figure 00000015

Figure 00000016
Figure 00000016

Соседние пиксели с одинаковым направлением движения группируются в объекты в соответствие с формулами:Neighboring pixels with the same direction of movement are grouped into objects in accordance with the formulas:

Figure 00000017
Figure 00000017

где ξ,ς - координаты пикселя; Np+1 - минимальное количество точек в объекте.where ξ, ς are the coordinates of the pixel; Np + 1 - the minimum number of points in the object.

Под объектом ED понимается совокупность отличных от фона точек изображения с направлением движения D, таких, что для каждой точки найдется не менее одной соседней точки, расположенной на расстоянии 1 пиксель, причем количество таких точек в объекте должно превышать пороговое значение Np.An object E D is understood as a combination of image points different from the background with the direction of movement D, such that for each point there is at least one neighboring point located at a distance of 1 pixel, and the number of such points in the object must exceed the threshold value Np.

После этого реализуется коррекция яркостей движущихся объектов путем подчеркивания их контуров (сложения исходного изображения с градиентным изображением). Выходные значения яркостей пикселей рассчитывается следующим образом:After that, the brightness correction of moving objects is implemented by emphasizing their contours (adding the original image with a gradient image). The output pixel brightness values are calculated as follows:

Figure 00000018
Figure 00000018

где ▽(bx,y(k)) - градиентное изображение, такое чтоwhere ▽ (b x, y (k)) is a gradient image such that

Figure 00000019
Figure 00000019

Значения яркости статичных областей изображения остаются неизменными.The brightness values of the static areas of the image remain unchanged.

Устройство компенсации размытости изображения (фиг.3) содержит датчик изображения ДИ 10, контроллер 1, модуль обнаружения движения МОД 2, модуль определения объектов МОО 3, модуль коррекции МК 4, первое ОЗУ 5, второе ОЗУ 6, третье ОЗУ 7, счетчик 100, элемент ИЛИ 101, первый компаратор 102, первый мультиплексор 51, второй мультиплексор 52, третий мультиплексор 53, четвертый мультиплексор 54, пятый мультиплексор 55, шестой мультиплексор 57, седьмой мультиплексор 59, первый демультиплексор 56, второй демультиплексор 58, причем вход CLK/3 предназначен для подачи тактирующего сигнала в ДИ 10 и подключен к первому входу контроллера 1, групповой выход ДИ 10 подключен к первому групповому входу контроллера 1, второй групповой выход контроллера 1 подключен к первым групповым входам первого мультиплексора 51 и третьего мультиплексора 53, групповой выход первого мультиплексора 51 подключен к групповому входу первого ОЗУ 5, групповой вход-выход первого ОЗУ 5 подключен к групповому входу первого демультиплексора 56 и к групповому выходу пятого мультиплексора 55, первый групповой выход демультиплексора 56 подключен к четвертому групповому входу контроллера 1, групповой вход-выход второго ОЗУ 6 подключен к групповому входу второго демультиплексора 58 и к групповому выходу шестого мультиплексора 57, третий групповой выход контроллера 1 подключен к системной шине, четвертый групповой выход контроллера 1 подключен к первому групповому входу шестого мультиплексора 57, первый групповой выход контроллера 1 подключен к первому групповому входу пятого мультиплексора 55, первый выход контроллера 1 подключен к первому входу второго мультиплексора 52, выход второго мультиплексора 52 подключен к входу первого ОЗУ 5, второй выход контроллера 1 подключен к первому входу четвертого мультиплексора 54, выход которого подключен к входу второго ОЗУ 6, второй и третий групповые входы контроллера 1 предназначены для подачи констант (Х-1) и (Y-1) соответственно (где X, Y - размерность изображения по горизонтали и вертикали), второй вход контроллера 1 предназначен для подачи тактового сигнал CLK и соединен со вторым входом МОД 2, третий вход контроллера 1 подключен к выходу первого компаратора 102, первый групповой вход которого подключен к групповому выходу счетчика 100 и пятому групповому входу МОД 2, на второй групповой вход первого компаратора 102 подана константа 0, третий выход контроллера 1 подключен к первому входу элемента ИЛИ 101, первый вход МОД 2 предназначен для подачи тактового сигнала CLK/25, первый и второй групповые входы МОД 2 предназначены для подачи констант (Х-3) и (Y-3) соответственно, третий групповой вход МОД 2 подключен к групповому выходу второго демультиплексора 58, четвертый групповой вход МОД 2 подключен ко второму групповому выходу первого демультиплексора 56, первый групповой выход МОД 2 подключен ко вторым групповым входам первого мультиплексора 51 и третьего мультиплексора 53, второй групповой выход МОД 2 подключен к второму групповому входу седьмого мультиплексора 59, третий групповой выход МОД 2 подключен к групповому входу-выходу ОЗУ 7 и первому групповому входу МОО 3, первый выход МОД 2 подключен к второму входу элемента ИЛИ 101, второй выход МОД 2 подключен к входу седьмого мультиплексора 59, третий выход МОД 2 подключен к входу третьего ОЗУ 7, второй и третий групповые входы МОО 3 предназначены для подачи констант (Х-2) и (Y-2) соответственно, четвертый групповой вход МОО 3 подключен к первому групповому выходу МК 4, пятый групповой вход МОО 3 подключен к четвертому групповому выходу МК 4, шестой групповой вход МОО 3 подключен к групповому выходу счетчика 100, первый, второй и третий входы МОО 3 предназначены для подачи тактовых сигналов CLKX, CLKX6, CLKY соответственно, первый групповой выход МОО 3 подключен к первому групповому входу седьмого мультиплексора 59, групповой выход которого соединен с групповым входом третьего ОЗУ 7, второй групповой выход МОО 3 подключен к первому групповому входу МК 4, третий групповой выход МОО 3 подключен к второму групповому входу МК 4, четвертый групповой выход MOO 3 подключен к третьему групповому входу МК 4, выход МОО 3 подключен к третьему входу элемента ПЛИ 101 и к третьему входу МК 4, четвертый вход элемента ИЛИ 101 подключен к выходу МК 4, второй групповой выход МК 4 подключен к третьему групповому входу первого мультиплексора 51, третий групповой выход МК 4 подключен к второму групповому входу пятого мультиплексора 55, четвертый групповой вход МК 4 предназначен для подачи порогового значения Р, определяющего минимально допустимое количество пикселей в объекте, пятый групповой вход МК 4 подключен к третьему групповому выходу первого демультиплексора 56, первый и второй входы МК 4 предназначены для подачи тактовых сигналов CLKW и CLKZ соответственно, на второй вход второго мультиплексора 52 подана константа 0, групповой выход счетчика 100 подключен к четвертому групповому входу первого мультиплексора 51, групповому входу второго мультиплексора 52, третьему групповому входу третьего мультиплексора 53, пятому групповому входу четвертого мультиплексора 54, третьему групповому входу пятого мультиплексора 55, к второму групповому входу шестого мультиплексора 57, а также к вторым групповым входам первого демультиплексора 56 и второго демультиплексора 58, на второй, третий, четвертый входы четвертого мультиплексора 54 подается константа 0, при этом первый мультиплексор 51 обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его четвертом групповом входе, со своего второго группового входа - при значении «1», со своего третьего группового входа - при значении «3», второй мультиплексор 52 обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его третьем групповом входе, со своего второго группового входа - при значении «3», третий мультиплексор 53 обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его третьем групповом входе, со своего второго группового входа - при значении «1», четвертый мультиплексор 54 обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его пятом групповом входе, со своего второго группового входа - при значении «1», со своего третьего группового входа - при значении «2», со своего четвертого группового входа - при значении «3», пятый мультиплексор 55 обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его третьем групповом входе, со своего второго группового входа - при значении «3», шестой мультиплексор 57 обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его втором групповом входе, первый демультиплексор 56 обеспечивает прохождение сигнала со своего группового входа на первый групповой выход при значении «0» на его втором групповом входе, при значении «1» - на свой второй групповой выход, при значении «3» - на свой третий групповой выход, второй демультиплексор 58 обеспечивает прохождение сигнала со своего группового входа на свой групповой выход при значении «1» на его втором групповом входе, седьмой мультиплексор 59 обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его входе, и со второго группового входа - при значении «1».The image blur compensation device (Fig. 3) comprises an image sensor DI 10, a controller 1, a motion detection module MOD 2, an object detection module MOO 3, a correction module MK 4, a first RAM 5, a second RAM 6, a third RAM 7, a counter 100, OR element 101, first comparator 102, first multiplexer 51, second multiplexer 52, third multiplexer 53, fourth multiplexer 54, fifth multiplexer 55, sixth multiplexer 57, seventh multiplexer 59, first demultiplexer 56, second demultiplexer 58, the input CLK / 3 is intended for tact signal in DI 10 and connected to the first input of controller 1, the group output of DI 10 is connected to the first group input of controller 1, the second group output of controller 1 is connected to the first group inputs of the first multiplexer 51 and third multiplexer 53, the group output of the first multiplexer 51 is connected to the group input of the first RAM 5, the group input-output of the first RAM 5 is connected to the group input of the first demultiplexer 56 and to the group output of the fifth multiplexer 55, the first group output of the demultiplexer 56 is connected to the fourth group input of controller 1, the group input-output of the second RAM 6 is connected to the group input of the second demultiplexer 58 and to the group output of the sixth multiplexer 57, the third group output of controller 1 is connected to the system bus, the fourth group output of controller 1 is connected to the first group input of the sixth multiplexer 57, the first group output of controller 1 is connected to the first group input of the fifth multiplexer 55, the first output of controller 1 is connected to the first input of the second multiplexer 52, the output of the second multiplexer 52 is connected to the input of the first RAM 5, the second output of controller 1 is connected to the first input of the fourth multiplexer 54, the output of which is connected to the input of the second RAM 6, the second and third group inputs of controller 1 are used to supply constants (X-1) and (Y- 1) respectively (where X, Y is the horizontal and vertical image dimension), the second input of controller 1 is designed to supply a CLK clock signal and is connected to the second input of MOD 2, the third input of controller 1 is connected to the output of the first comparator 102, the first group input of whichconnected to the group output of the counter 100 and the fifth group input of MOD 2, the constant 0 is applied to the second group input of the first comparator 102, the third output of controller 1 is connected to the first input of the OR element 101, the first input of MOD 2 is used to supply the CLK / 25 clock signal, the first and the second group inputs of MOD 2 are used to supply constants (X-3) and (Y-3), respectively, the third group input of MOD 2 is connected to the group output of the second demultiplexer 58, the fourth group input of MOD 2 is connected to the second group output of the first demultip lexor 56, the first group output of MOD 2 is connected to the second group inputs of the first multiplexer 51 and the third multiplexer 53, the second group output of MOD 2 is connected to the second group input of the seventh multiplexer 59, the third group output of MOD 2 is connected to the group input-output of RAM 7 and the first group input MOO 3, the first output of MOD 2 is connected to the second input of the OR element 101, the second output of MOD 2 is connected to the input of the seventh multiplexer 59, the third output of MOD 2 is connected to the input of the third RAM 7, the second and third group inputs of MOO 3 are designed started to feed constants (X-2) and (Y-2), respectively, the fourth group input MOO 3 is connected to the first group output MK 4, the fifth group input MOO 3 is connected to the fourth group output MK 4, the sixth group input MOO 3 is connected to group output of the counter 100, the first, second and third inputs of MOO 3 are designed to supply clock signals CLKX, CLKX6, CLKY, respectively, the first group output of MOO 3 is connected to the first group input of the seventh multiplexer 59, the group output of which is connected to the group input of the third RAM 7, second gro the pooled output of MOO 3 is connected to the first group input of MK 4, the third group output of MOO 3 is connected to the second group input of MK 4, the fourth group output of MOO 3 is connected to the third group input of MK 4, the output of MOO 3 is connected to the third input of the PLI 101 element and to the third input MK 4, the fourth input of the OR element 101 is connected to the output MK 4, the second group output MK 4 is connected to the third group input of the first multiplexer 51, the third group output MK 4 is connected to the second group input of the fifth multiplexer 55, the fourth group input MK 4 is designed to supply a threshold value P that determines the minimum number of pixels in the object, the fifth group input MK 4 is connected to the third group output of the first demultiplexer 56, the first and second inputs of MK 4 are used to supply clock signals CLKW and CLKZ, respectively, to the second input of the second multiplexer 52 a constant 0 is applied, the group output of the counter 100 is connected to the fourth group input of the first multiplexer 51, the group input of the second multiplexer 52, the third group input of the third multiplex an expor 53, the fifth group input of the fourth multiplexer 54, the third group input of the fifth multiplexer 55, to the second group input of the sixth multiplexer 57, and also to the second group inputs of the first demultiplexer 56 and the second demultiplexer 58, to the second, third, fourth inputs of the fourth multiplexer 54 constant 0, while the first multiplexer 51 ensures the passage of the signal from its first group input to its group output with a value of "0" at its fourth group input, from its second group the first input - with the value “1”, from its third group input - with the value “3”, the second multiplexer 52 provides a signal from its first group input to its group output with the value “0” at its third group input, from its second group input - with a value of “3”, the third multiplexer 53 provides a signal from its first group input to its group output with a value of “0” at its third group input, from its second group input - with a value of “1”, the fourth multiplexer 54 provides a signal from its first group input to its group output with a value of “0” at its fifth group input, from its second group input with a value of “1”, from its third group input with a value of “2”, from its the fourth group input - with a value of “3”, the fifth multiplexer 55 provides a signal from its first group input to its group output with a value of “0” at its third group input, from its second group input - with a value of “3”, the sixth multiplexer 57 provides a signal from its first group input to its group output with a value of “0” at its second group input, the first demultiplexer 56 provides a signal from its group input to its first group output with a value of “0” at its second group input, at a value of “1” - to its second group output, with a value of “3” - to its third group output, the second demultiplexer 58 provides a signal from its group input to its group output with a value of “1” on its second group ppovom inlet seventh multiplexer 59 provides signal transmission with a first group of its inputs to its output when a group value "0" at its input, and the second group input - at a value of "1".

Контроллер 1 (фиг.4) содержит: первый элемент ИЛИ 11, второй элемент ИЛИ 12, первый счетчик 13, второй счетчик 14, третий счетчик 15, первый компаратор 16, второй компаратор 17, формирователь адреса 18, элемент И 19, буфер 110 и демультиплексор 111, причем первый вход первого счетчика 13 является первый входом контроллера 1 и предназначен для подачи тактового сигнала CLK/3, первый групповой выход первого счетчика 13 подключен к первым групповым входам первого компаратора 16 и формирователя адреса 18, групповой выход формирователя 18 является вторым групповым выходом контроллера 1, второй групповой вход первого компаратора 16 является вторым групповым входом контроллера 1, выход первого компаратора 16 подключен ко второму входу первого элемента ИЛИ 11, к первому входу второго счетчика 14 и к первому входу элемента И 19, групповой выход второго счетчика 14 подключен к второму групповому входу формирователя адреса 18 и к первому групповому входу второго компаратора 17, второй групповой вход компаратора 17 является третьим групповым входом контроллера 1, выход компаратора 17 подключен ко второму входу элемента И 19, к второму входу второго элемента ИЛИ 12 и первому входу первого элемента ИЛИ 11, третий вход первого элемента ИЛИ 11, первый вход второго элемента ИЛИ 12 и второй вход третьего счетчика 15 подключены к третьему входу контроллера 1, первый вход третьего счетчика 15 является вторым входом контроллера 1 и предназначен для подачи тактового сигнала CLK, групповой выход третьего счетчика 15 подключен к второму групповому входу буфера 110 и второму групповому входу демультиплексора 111, первый групповой вход буфера 110 является первым групповым входом контроллера, групповой выход буфера 110 является первым групповым выходом контролера 1, первый групповой вход демультиплексора 111 является четвертым групповым входом контроллера 1, первый групповой выход демультиплексора 111 является третьим групповым выходом контроллера 1, второй групповой выход демультиплексора 111 является четвертым групповым выходом контроллера 1, старший разряд группового выхода третьего счетчика 15 является первым выходом контроллера 1, выход элемента И 19 является третьим выходом контроллера 1, младший разряд группового выхода третьего счетчика 15 является вторым выходом контроллера 1.The controller 1 (Fig. 4) comprises: a first OR element 11, a second OR element 12, a first counter 13, a second counter 14, a third counter 15, a first comparator 16, a second comparator 17, an address generator 18, an And element 19, a buffer 110, and demultiplexer 111, and the first input of the first counter 13 is the first input of the controller 1 and is designed to supply the CLK / 3 clock signal, the first group output of the first counter 13 is connected to the first group inputs of the first comparator 16 and address former 18, the group output of the former 18 is the second group out ohm controller 1, the second group input of the first comparator 16 is the second group input of the controller 1, the output of the first comparator 16 is connected to the second input of the first element OR 11, to the first input of the second counter 14 and to the first input of the element And 19, the group output of the second counter 14 is connected to the second group input of the address generator 18 and to the first group input of the second comparator 17, the second group input of the comparator 17 is the third group input of the controller 1, the output of the comparator 17 is connected to the second input of the element And 19, to the second input of the second element OR 12 and the first input of the first element OR 11, the third input of the first element OR 11, the first input of the second element OR 12 and the second input of the third counter 15 are connected to the third input of the controller 1, the first input of the third counter 15 is the second input of the controller 1 and is designed to supply a clock signal CLK, the group output of the third counter 15 is connected to the second group input of the buffer 110 and the second group input of the demultiplexer 111, the first group input of the buffer 110 is the first group input the controller, the group output of the buffer 110 is the first group output of the controller 1, the first group input of the demultiplexer 111 is the fourth group input of the controller 1, the first group output of the demultiplexer 111 is the third group output of the controller 1, the second group output of the demultiplexer 111 is the fourth group output of the controller 1, senior the group output bit of the third counter 15 is the first output of the controller 1, the output of the element And 19 is the third output of the controller 1, the least significant bit of the group Exit third counter 15 is a second output of the controller 1.

Модуль обнаружения движения МОД 2 (фиг.5) включает первый счетчик 21, второй счетчик 22, третий счетчик 23, четвертый счетчики 24, первый компаратор 25, второй компаратор 26, первый сумматор 27, второй сумматор 28, первый формирователь адреса 29, элемент ИЛИ 210, элемент И 211, первый регистровый блок 212, второй регистровый блок 213, третий регистровый блок 214, четвертый регистровый блок 215, пятый регистровый блок 216, шестой регистровый блок 217, седьмой регистровый блок 218, восьмой регистровый блок 219, девятый регистровый блок 220, десятый регистровый блок 221, первый суммирующий блок 222, второй суммирующий блок 223, третий суммирующий блок 223, четвертый суммирующий блок 225, пятый суммирующий блок 226, шестой суммирующий блок 227, седьмой суммирующий блок 228, восьмой суммирующий блок 229, девятый суммирующий блок 230, схема определения минимума 231, третий компаратор 233, четвертый компаратор 234, пятый компаратор 235, шестой компаратор 236, седьмой компаратор 237, восьмой компаратор 238, девятый компаратор 239, десятый компаратор 240, одиннадцатый компаратор 241, шифратор 242, третий сумматор 244, четвертый сумматор 245, второй формирователь адреса 246, двенадцатый компаратор 247, причем первый вход первого счетчика 21 является первым входом МОД 2 и предназначен для подачи тактирующего сигнала с частотой CLK/25, второй вход первого счетчика 21, являющийся входом сброса, подключен к выходу элемента ИЛИ 210, выход первого компаратора 25 подключен ко второму входу элемента ИЛИ 210 и первому входу второго счетчика 22, групповой выход первого счетчика 21 подключен к первому групповому входу первого компаратора 25, первому групповому входу первого сумматора 27 и первому групповому входу четвертого сумматора 245, групповой выход второго счетчика 22 подключен к первому групповому входу второго компаратора 26, первому групповому входу второго сумматора 28 и первому групповому входу третьего сумматора 244, второй групповой вход первого компаратора 25 является первым групповым входом МОД 2 и предназначен для подачи постоянной величины (Х-3), второй групповой вход второго компаратора 26 является вторым групповым входом МОД 2 и предназначен для подачи постоянной величины (Y-3) выход второго компаратора 26 подключен ко второму входу второго счетчика 22, являющимся входом сброса, и к первому входу элемента ИЛИ 210, вход третьего счетчика 23, являющийся вторым входом МОД 2, предназначен для подачи тактового сигнала CLK, групповой выход третьего счетчика 23 подключен ко второму групповому входу первого сумматора 27, выход третьего счетчика 23 подключен к входу четвертого счетчика 24, групповой выход которого подключен к второму групповому входу второго сумматора 28, групповой выход первого сумматора 27 подключен к первому групповому входу первого формирователя адреса 29, а групповой выход второго сумматора 28 подключен ко второму групповому входу первого формирователя адреса 29, выход первого формирователя адреса 29 является первым групповым выходом МОД 2, первый групповой вход первого регистрового блока 212 является четвертым групповым входом МОД 2, третий групповой вход МОД 2 подключен к первым групповым входам второго регистрового блока 213, третьего регистрового блока 214, четвертого регистрового блока 215, пятого регистрового блока 216, шестого регистрового блока 217, седьмого регистрового блока 218, восьмого регистрового блока 219, девятого регистрового блока 220, десятого регистрового блока 221, вторые групповые входы первого регистрового блока 212, второго регистрового блока 213, третьего регистрового блока 214, четвертого регистрового блока 215, пятого регистрового блока 216, шестого регистрового блока 217, седьмого регистрового блока 218, восьмого регистрового блока 219, девятого регистрового блока 220, десятого регистрового блока 221 подключены к групповому выходу четвертого счетчика 24, третьи групповые входы первого регистрового блока 212, второго регистрового блока 213, третьего регистрового блока 214, четвертого регистрового блока 215, пятого регистрового блока 216, шестого регистрового блока 217, седьмого регистрового блока 218, восьмого регистрового блока 219, девятого регистрового блока 220, десятого регистрового блока 221 подключены к групповому выходу третьего счетчика 23, группа выходов первого регистрового блока 212 подключена к первым группам входов первого суммирующего блока 222, второго суммирующего блока 223, третьего суммирующего блока 224, четвертого суммирующего блока 225, пятого суммирующего блока 226, шестого суммирующего блока 227, седьмого суммирующего блока 228, восьмого суммирующего блока 229, девятого суммирующего блока 230, группы выходов второго регистрового блока 213, третьего регистрового блока 214, четвертого регистрового блока 215, пятого регистрового блока 216, шестого регистрового блока 217, седьмого регистрового блока 218, восьмого регистрового блока 219, девятого регистрового блока 220, десятого регистрового блока 221 подключены к вторым групповым входам первого суммирующего блока 222, второго суммирующего блока 223, третьего суммирующего блока 224, четвертого суммирующего блока 225, пятого суммирующего блока 226, шестого суммирующего блока 227, седьмого суммирующего блока 228, восьмого суммирующего блока 229, девятого суммирующего блока 230, групповые выходы первого суммирующего блока 222, второго суммирующего блока 223, третьего суммирующего блока 224, четвертого суммирующего блока 225, пятого суммирующего блока 226, шестого суммирующего блока 227, седьмого суммирующего блока 228, восьмого суммирующего блока 229, девятого суммирующего блока 230 подключены соответственно к первому, второму, третьему, четвертому, пятому, шестому, седьмому, восьмому, девятому входам блока определения минимума 231, а также к первым групповым входам третьего компаратора 233, четвертого компаратора 234, пятого компаратора 235, шестого компаратора 236, седьмого компаратора 237, восьмого компаратора 238, девятого компаратора 239, десятого компаратора 240, вторые групповые входы которых подключены к групповому входу схемы определения минимума 231, групповой выход пятого суммирующего блока 226 подключен к первому групповому входу одиннадцатого компаратора 241, на второй групповой вход которого подается константа 0, выходы третьего компаратора 233, четвертого компаратора 234, пятого компаратора 235, шестого компаратора 236, седьмого компаратора 237, восьмого компаратора 238, девятого компаратора 239, десятого компаратора 240 подключены к групповому входу шифратора 242, групповой выход которого является третьим групповым выходом МОД 2, выход одиннадцатого компаратора 241 является третьим выходом МОД 2, вторые групповые входы третьего сумматора 244, четвертого сумматора 245 и двенадцатого компаратора 247 подключены к константе 2, групповые выходы третьего сумматора 244 и четвертого сумматора 245 подключены к групповым входам второго формирователя адреса 246, групповой выход которого является вторым групповым выходом МОД 2, первый групповой вход двенадцатого компаратора 247 является пятым групповым входом МОД 2, входы элемента И 211 подключены к выходам первого компаратора 25 и второго компаратора 26 соответственно, выход элемента И 211 является первым выходом МОД 2.The motion detection module MOD 2 (Fig. 5) includes a first counter 21, a second counter 22, a third counter 23, a fourth counters 24, a first comparator 25, a second comparator 26, a first adder 27, a second adder 28, a first address generator 29, an OR element 210, AND element 211, first register block 212, second register block 213, third register block 214, fourth register block 215, fifth register block 216, sixth register block 217, seventh register block 218, eighth register block 219, ninth register block 220 , tenth register block 221, first a summing block 222, a second summing block 223, a third summing block 223, a fourth summing block 225, a fifth summing block 226, a sixth summing block 227, a seventh summing block 228, an eighth summing block 229, a ninth summing block 230, a minimum determination circuit 231, a third comparator 233, fourth comparator 234, fifth comparator 235, sixth comparator 236, seventh comparator 237, eighth comparator 238, ninth comparator 239, tenth comparator 240, eleventh comparator 241, encoder 242, third adder 244, fourth adder 245, second form address equalizer 246, twelfth comparator 247, the first input of the first counter 21 being the first input of MOD 2 and designed to supply a clock signal with a frequency of CLK / 25, the second input of the first counter 21, which is the reset input, is connected to the output of the OR element 210, the output of the first the comparator 25 is connected to the second input of the OR element 210 and the first input of the second counter 22, the group output of the first counter 21 is connected to the first group input of the first comparator 25, the first group input of the first adder 27 and the first group input h of the fourth adder 245, the group output of the second counter 22 is connected to the first group input of the second comparator 26, the first group input of the second adder 28 and the first group input of the third adder 244, the second group input of the first comparator 25 is the first group input of MOD 2 and is designed to supply a constant value (X-3), the second group input of the second comparator 26 is the second group input of MOD 2 and is designed to supply a constant value (Y-3) the output of the second comparator 26 is connected to the second input of the second about the counter 22, which is the reset input, and to the first input of the OR element 210, the input of the third counter 23, which is the second input of MOD 2, is used to supply the CLK clock signal, the group output of the third counter 23 is connected to the second group input of the first adder 27, the output of the third counter 23 is connected to the input of the fourth counter 24, the group output of which is connected to the second group input of the second adder 28, the group output of the first adder 27 is connected to the first group input of the first shaper address 29, and the group output the second adder 28 is connected to the second group input of the first address generator 29, the output of the first address generator 29 is the first group output of MOD 2, the first group input of the first register block 212 is the fourth group input of MOD 2, the third group input of MOD 2 is connected to the first group inputs of the second register block 213, third register block 214, fourth register block 215, fifth register block 216, sixth register block 217, seventh register block 218, eighth register block 219, the ninth register block 220, the tenth register block 221, the second group inputs of the first register block 212, the second register block 213, the third register block 214, the fourth register block 215, the fifth register block 216, the sixth register block 217, the seventh register block 218, the eighth register block 219, the ninth register block 220, the tenth register block 221 are connected to the group output of the fourth counter 24, the third group inputs of the first register block 212, the second register block 213, t the second register block 214, the fourth register block 215, the fifth register block 216, the sixth register block 217, the seventh register block 218, the eighth register block 219, the ninth register block 220, the tenth register block 221 are connected to the group output of the third counter 23, the group of outputs of the first register block 212 is connected to the first input groups of the first summing block 222, the second summing block 223, the third summing block 224, the fourth summing block 225, the fifth summing block 226, the sixth summing block 227, seventh summing block 228, eighth summing block 229, ninth summing block 230, output group of the second register block 213, third register block 214, fourth register block 215, fifth register block 216, sixth register block 217, seventh register block 218 , the eighth register block 219, the ninth register block 220, the tenth register block 221 are connected to the second group inputs of the first summing block 222, the second summing block 223, the third summing block 224, fourth summing block 225, fifth summing block 226, sixth summing block 227, seventh summing block 228, eighth summing block 229, ninth summing block 230, group outputs of the first summing block 222, second summing block 223, third summing block 224, fourth summing block 225, the fifth totalizing unit 226, the sixth totalizing unit 227, the seventh totalizing unit 228, the eighth totalizing unit 229, the ninth totalizing unit 230 are connected to the first, second, third, respectively the fourth, fifth, sixth, seventh, eighth, ninth inputs of the minimum determination unit 231, as well as the first group inputs of the third comparator 233, fourth comparator 234, fifth comparator 235, sixth comparator 236, seventh comparator 237, eighth comparator 238, ninth comparator 239 , the tenth comparator 240, the second group inputs of which are connected to the group input of the minimum detection circuit 231, the group output of the fifth summing block 226 is connected to the first group input of the eleventh comparator 241, to the second groups whose input is constant 0, the outputs of the third comparator 233, fourth comparator 234, fifth comparator 235, sixth comparator 236, seventh comparator 237, eighth comparator 238, ninth comparator 239, tenth comparator 240 are connected to the group input of the encoder 242, the group output of which the third group output of MOD 2, the output of the eleventh comparator 241 is the third output of MOD 2, the second group inputs of the third adder 244, fourth adder 245 and twelfth comparator 247 are connected to constant 2, the first outputs of the third adder 244 and the fourth adder 245 are connected to the group inputs of the second address generator 246, the group output of which is the second group output of MOD 2, the first group input of the twelfth comparator 247 is the fifth group input of MOD 2, the inputs of element 211 are connected to the outputs of the first comparator 25 and the second comparator 26, respectively, the output of the element And 211 is the first output of MOD 2.

Каждый регистровый блок 212÷221 (фиг.6) состоит из первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89, первого регистра 810, второго регистра 811, третьего регистра 812, четвертого регистра 813, пятого регистра 814, шестого регистра 815, седьмого регистра 816, восьмого регистра 817, девятого регистра 818, первого сумматора 819, второго сумматора 820, третьего сумматора 821, четвертого сумматора 822, пятого сумматора 823, шестого сумматора 824, седьмого сумматора 825, восьмого сумматора 826, первой константы 851, второй константы 852, третьей константы 853, четвертой константы 854, пятой константы 855, шестой константы 856, седьмой константы 857, восьмой константы 858, девятой константы 859, десятой константы 860, одиннадцатой константы 861, двенадцатой константы 862, тринадцатой константы 863, четырнадцатой константы 864, пятнадцатой константы 865, шестнадцатой константы 866, семнадцатой константы 867, восемнадцатой константы 868, причем первый групповой вход регистрового блока подключен к групповым входам первого регистра 810, второго регистра 811, третьего регистра 812, четвертого регистра 813, пятого регистра 814, шестого регистра 815, седьмого регистра 816, восьмого регистра 817, девятого регистра 818, второй групповой вход регистрового блока подключен к первым групповым входам первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89, третий групповой вход регистрового блока подключен к третьим групповым входам первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89, выходы первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89 подключены ко входам первого регистра 810, второго регистра 811, третьего регистра 812, четвертого регистра 813, пятого регистра 814, шестого регистра 815, седьмого регистра 816, восьмого регистра 817, девятого регистра 818 соответственно, групповые выходы первого регистра 810, второго регистра 811, третьего регистра 812, четвертого регистра 813, шестого регистра 815, седьмого регистра 816, восьмого регистра 817, девятого регистра 818 подключены к первым групповым входам первого сумматора 819, второго сумматора 820, третьего сумматора 821, четвертого сумматора 822, пятого сумматора 823, шестого сумматора 824, седьмого сумматора 825, восьмого сумматора 826 соответственно, групповой выход пятого регистра 814 подключен ко вторым групповым входам первого сумматора 819, второго сумматора 820, третьего сумматора 821, четвертого сумматора 822, пятого сумматора 823, шестого сумматора 824, седьмого сумматора 825, восьмого сумматора 826, выходы первого сумматора 819, второго сумматора 820, третьего сумматора 821, четвертого сумматора 822, пятого сумматора 823, шестого сумматора 824, седьмого сумматора 825, восьмого сумматора 826 представляют собой группу выходов регистрового блока, выход пятого сумматора 823 является пятым выходом группы выходов регистрового блока, выход седьмого сумматора 825 является седьмым выходом группы выходов регистрового блока, первая константа 851, третья константа 853, пятая константа 855, седьмая константа 857, девятая константа 859, одиннадцатая константа 861, тринадцатая константа 863, пятнадцатая константа 865, семнадцатая константа 867 подключены ко вторым групповым входам первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89 соответственно, вторая константа 851, четвертая константа 854, шестая константа 856, восьмая константа 858, десятая константа 860, двенадцатая константа 862, четырнадцатая константа 864, шестнадцатая константа 866, восемнадцатая константа 868 подключены к четвертым групповым входам первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89 соответственно. Значения первой константы 851, второй константы 852, третьей константы 853, четвертой константы 854, пятой константы 855, шестой константы 856, седьмой константы 857, восьмой константы 858, девятой константы 859, десятой константы 860, одиннадцатой константы 861, двенадцатой константы 862, тринадцатой константы 863, четырнадцатой константы 864, пятнадцатой константы 865, шестнадцатой константы 866, семнадцатой константы 867, восемнадцатой константы 868 определяется по таблице, изображенной на фиг.11.Each register block 212 ÷ 221 (Fig. 6) consists of a first comparator 81, a second comparator 82, a third comparator 83, a fourth comparator 84, a fifth comparator 85, a sixth comparator 86, a seventh comparator 87, an eighth comparator 88, a ninth comparator 89, the first register 810, second register 811, third register 812, fourth register 813, fifth register 814, sixth register 815, seventh register 816, eighth register 817, ninth register 818, first adder 819, second adder 820, third adder 821, fourth adder 822 fifth with Matter 823, sixth adder 824, seventh adder 825, eighth adder 826, first constant 851, second constant 852, third constant 854, fourth constant 854, fifth constant 855, sixth constant 856, seventh constant 857, eighth constant 858, ninth constant , the tenth constant 860, the eleventh constant 861, the twelfth constant 862, the thirteenth constant 863, the fourteenth constant 864, the fifteenth constant 865, the sixteenth constant 866, the seventeenth constant 867, the eighteenth constant 868, and the first group input of the register block and connected to the group inputs of the first register 810, second register 811, third register 812, fourth register 813, fifth register 814, sixth register 815, seventh register 816, eighth register 817, ninth register 818, the second group input of the register block is connected to the first group the inputs of the first comparator 81, the second comparator 82, the third comparator 84, the fifth comparator 85, the sixth comparator 86, the seventh comparator 87, the eighth comparator 88, the ninth comparator 89, the third group register input the block is connected to the third group inputs of the first comparator 81, the second comparator 82, the third comparator 83, the fourth comparator 84, the fifth comparator 85, the sixth comparator 86, the seventh comparator 87, the eighth comparator 88, the ninth comparator 89, the outputs of the first comparator 81, the second comparator 82, the third comparator 83, the fourth comparator 84, the fifth comparator 85, the sixth comparator 86, the seventh comparator 87, the eighth comparator 88, the ninth comparator 89 are connected to the inputs of the first register 810, the second register 811, the third register 812, fourth register 813, fifth register 814, sixth register 815, seventh register 816, eighth register 817, ninth register 818, respectively, group outputs of the first register 810, second register 811, third register 812, fourth register 813, sixth register 815 , seventh register 816, eighth register 817, ninth register 818 connected to the first group inputs of the first adder 819, second adder 820, third adder 821, fourth adder 822, fifth adder 823, sixth adder 824, seventh adder 825, eighth the adder 826, respectively, the group output of the fifth register 814 is connected to the second group inputs of the first adder 819, the second adder 820, the third adder 821, the fourth adder 822, the fifth adder 823, the sixth adder 824, the seventh adder 825, the eighth adder 826, the outputs of the first adder 819 , the second adder 820, the third adder 821, the fourth adder 822, the fifth adder 823, the sixth adder 824, the seventh adder 825, the eighth adder 826 are a group of outputs of the register block, the output of the fifth adder 823 is I am the fifth output of the group of outputs of the register block, the output of the seventh adder 825 is the seventh output of the group of outputs of the register block, the first constant 851, the third constant 853, the fifth constant 855, the seventh constant 857, the ninth constant 859, the eleventh constant 861, the thirteenth constant 863, 865, the seventeenth constant 867 is connected to the second group inputs of the first comparator 81, the second comparator 82, the third comparator 83, the fourth comparator 84, the fifth comparator 85, the sixth comparator 86, the seventh comparator 87, the eighth comparator 88, the ninth comparator 89, respectively, the second constant 851, the fourth constant 854, the sixth constant 856, the eighth constant 858, the tenth constant 860, the twelfth constant 862, the fourteenth constant 864, the sixteenth constant 866, the eighteenth fourth constant 868 the inputs of the first comparator 81, second comparator 82, third comparator 83, fourth comparator 84, fifth comparator 85, sixth comparator 86, seventh comparator 87, eighth comparator 88, ninth comparator 89 correspond permanently. The values of the first constant 851, the second constant 852, the third constant 854, the fourth constant 854, the sixth constant 856, the seventh constant 857, the eighth constant 858, the ninth constant 859, the tenth constant 860, the eleventh constant 861, the twelfth constant 862, and thirteen constants 863, fourteenth constant 864, fifteenth constant 865, sixteenth constant 866, seventeenth constant 867, eighteenth constant 868 is determined from the table depicted in Fig.11.

Каждый суммирующий блок 222-230 (фиг.7) состоит из первого сумматора 91, второго сумматора 92, третьего сумматора 93, четвертого сумматора 894, пятого сумматора 95, шестого сумматора 96, седьмого сумматора 97, восьмого сумматора 98, девятого сумматора 99, причем выходы первого сумматора 91, второго сумматора 92, третьего сумматора 93, четвертого сумматора 94, пятого сумматора 95, шестого сумматора 96, седьмого сумматора 97, восьмого сумматора 98 подключены к первому, второму, третьему, четвертому, пятому, шестому, седьмому, восьмому входам девятого сумматора 99 соответственно, первые входы первого сумматора 91, второго сумматора 92, третьего сумматора 93, четвертого сумматора 94, пятого сумматора 95, шестого сумматора 96, седьмого сумматора 97, восьмого сумматора 98 являются первой группой входов суммирующего блока, вторые входы первого сумматора 91, второго сумматора 92, третьего сумматора 93, четвертого сумматора 94, пятого сумматора 95, шестого сумматора 96, седьмого сумматора 97, восьмого сумматора 98 являются второй группой входов суммирующего блока, групповой выход девятого сумматора 99 является групповым выходом суммирующего блока.Each adder block 222-230 (Fig. 7) consists of a first adder 91, a second adder 92, a third adder 93, a fourth adder 894, a fifth adder 95, a sixth adder 96, a seventh adder 97, an eighth adder 98, and a ninth adder 99, wherein the outputs of the first adder 91, second adder 92, third adder 93, fourth adder 94, fifth adder 95, sixth adder 96, seventh adder 97, eighth adder 98 are connected to the first, second, third, fourth, fifth, sixth, seventh, eighth inputs ninth adder 99 respectively Naturally, the first inputs of the first adder 91, the second adder 92, the third adder 94, the fourth adder 94, the fifth adder 96, the seventh adder 97, the eighth adder 98 are the first group of inputs of the adder block, the second inputs of the first adder 91, the second adder 92, the third adder 93, the fourth adder 94, the fifth adder 95, the sixth adder 96, the seventh adder 97, the eighth adder 98 are the second group of inputs of the adder block, the group output of the ninth adder 99 is a group output ohm of the summing block.

Модуль определения объектов МОО 3 (фиг.8) состоит из первого счетчика 31, второго счетчика 32, третьего счетчика 33, четвертого счетчика 34, пятого счетчика 35, шестого счетчика 36, триггера 37, первого элемента И 38, первого элемента ИЛИ 39, первого сумматора 310, второго сумматора 311, третьего сумматора 312, четвертого сумматора 313, пятого сумматора 314, первого компаратора 315, второго компаратора 316, второго формирователя адреса 318, преобразователя данных 319, первого формирователя адреса 320, второго элемента И 321, первого мультиплексора 322, первого элемента НЕ 323, первого регистра 324, третьего компаратора 325, третьего элемента И 327, четвертого компаратора 328, пятого компаратора 331, шестого компаратора 332, седьмого компаратора 333, восьмого компаратора 334, девятого компаратора 335, десятого компаратора 336, второго регистра 337, третьего регистра 338, четвертого регистра 339, пятого регистра 340, шестого регистра 341, седьмого регистра 342, одиннадцатого компаратора 343, двенадцатого компаратора 344, тринадцатого компаратора 345, четырнадцатого компаратора 346, пятнадцатого компаратора 347, шестнадцатого компаратора 348, четвертого элемента И 361, пятого элемента И 362, шестого элемента И 363, седьмого элемента И 364, восьмого элемента И 365, девятого элемента И 366, восьмого регистра 367, девятого регистра 368, десятого регистра 369, одиннадцатого регистра 370, двенадцатого регистра 371, тринадцатого регистра 372, второго элемента ИЛИ 373, третьего элемента ИЛИ 374, четвертого элемента ИЛИ 375, пятого элемента ИЛИ 376, седьмого счетчика 377, восьмого счетчика 378, девятого счетчика 379, четырнадцатого регистра 380, десятого элемента И 381, десятого счетчика 382, буферного элемента 383, второго мультиплексора 384, одиннадцатого элемента И 385, двенадцатого элемента И 386, второго буферного элемента 387, третьего мультиплексора 388, семнадцатого компаратора 389, третьего буферного элемента 391, восемнадцатого компаратора 392, первого ОЗУ 71, второго ОЗУ 72, третьего ОЗУ 73, причем первый вход первого элемента И 38 является первым входом МОО 3 и предназначен для подачи тактового сигнала CLKX, выход триггера 37 подключен ко второму входу первого элемента И 38, выход первого элемента И 38 подключен к первому входу первого счетчика 31, групповой выход первого счетчика 31 подключен к первому групповому входу первого формирователя адреса 320 и к первому групповому входу первого компаратора 315, второй групповой вход МОО 3 подключен ко второму групповому входу первого компаратора 315, выход первого компаратора 315 подключен к первому входу второго элемента И 321, к второму входу первого элемента ИЛИ 39 и к первому входу второго счетчика 32, выход первого элемента ИЛИ 39 подключен ко второму входу первого счетчика 31, групповой выход второго счетчика 32 подключен к первому групповому входу второго компаратора 316 и второму групповому входу первого формирователя адреса 320, чей выход подключен к первому групповому входу первого мультиплексора 322, третий групповой вход МОО 3 подключен к второму групповому входу второго компаратора 316, выход второго компаратора 316 подключен к второму входу второго элемента И 321, к второму входу второго счетчика 32 и к первому входу первого элемента ИЛИ 39, выход второго элемента И 321 является выходом МОО 3, выход триггера 37 подключен к входу первого элемента НЕ 323 и к входу первого регистра 324, выход первого элемента НЕ 323 подключен к входу первого мультиплексора 322, к третьему входу пятого счетчика 35, к второму входу шестого счетчика 36 и к первому и второму входам третьего буферного элемента 391, чей выход подключен к входу/выходу первого ОЗУ 71, первый групповой вход МОО 3 подключен к групповому входу первого регистра 324, групповой выход первого регистра 324 подключен к первому групповому входу третьего компаратора 325, на чей второй групповой вход подается константа 0, выход третьего компаратора 325 подключен к первому входу третьего элемента И 327, выход которого подключен к первому входу триггера 37, вход/выход первого ОЗУ 71 подключен к первому входу четвертого компаратора 328, на чей второй вход подается константа 1, выход четвертого компаратора 328 подключен к второму входу третьего элемента И 327, вход третьего счетчика 33 является вторым входом МОО 3 и предназначен для подачи тактового сигнала CLKX6, групповой выход третьего счетчика 33 подключен к входу четвертого счетчика 34, групповой выход третьего счетчика 33 подключен к первому групповому входу первого сумматора 310, на чей второй групповой вход подается константа 1, выход первого сумматора 310 подключен к первому групповому входу второго сумматора 311, чей второй групповой вход подключен к групповому выходу пятого счетчика 35, третий групповой вход второго сумматора 311 подключен к групповому выходу первого счетчика 31, первый групповой вход третьего сумматора 312 подключен к групповому выходу четвертого счетчика 34, второй групповой вход третьего сумматора 312 подключен к групповому выходу шестого счетчика 36, третий групповой вход третьего сумматора 312 подключен к групповому выходу второго счетчика 32, групповые выходы второго сумматора 311 и третьего сумматора 312 подключены соответственно к первому и второму групповым входам второго формирователя адреса 318, групповой выход которого подключен к второму групповому входу первого мультиплексора 322 и к групповому входу первого ОЗУ 71, групповой выход третьего счетчика 33 подключен к первым групповым входам пятого компаратора 331, шестого компаратора 332, седьмого компаратора 333, восьмого компаратора 334, девятого компаратора 335, десятого компаратора 336, групповой выход четвертого счетчика 34 подключен к третьим групповым входам пятого компаратора 331, шестого компаратора 332, седьмого компаратора 333, восьмого компаратора 334, девятого компаратора 335, десятого компаратора 336, на второй групповой вход и на четвертый групповой вход пятого компаратора 331 подается константа 0, на второй групповой вход и на четвертый групповой вход шестого компаратора 332 подаются соответственно константа 1 и константа 0, на второй групповой вход и на четвертый групповой вход седьмого компаратора 333 подаются соответственно константа 2 и константа 0, на второй групповой вход и на четвертый групповой вход восьмого компаратора 334 подаются соответственно константа 0 и константа 1, на второй групповой вход и на четвертый групповой вход девятого компаратора 335 подается константа 1, на второй групповой вход и на четвертый групповой вход десятого компаратора 336 подаются соответственно константа 2 и константа 1, выход пятого компаратора 331 подключен к входу второго регистра 337, выход шестого компаратора 332 подключен к входу третьего регистра 338, выход седьмого компаратора 333 подключен к входу четвертого регистра 339, выход восьмого компаратора 334 подключен к входу пятого регистра 340, выход девятого компаратора 335 подключен к входу шестого регистра 341, выход десятого компаратора 336 подключен к входу седьмого регистра 342, первые групповые входы второго регистра 337, третьего регистра 338, четвертого регистра 339, пятого регистра 340, шестого регистра 341, седьмого регистра 342 подключены к первому групповому входу МОО 3, групповые выходы второго регистра 337, третьего регистра 338, четвертого регистра 339, пятого регистра 340, шестого регистра 341, седьмого регистра 342 подключены соответственно к первым групповым входам одиннадцатого компаратора 343, двенадцатого компаратора 344, тринадцатого компаратора 345, четырнадцатого компаратора 346, пятнадцатого компаратора, 347 и шестнадцатого компаратора 348, чьи вторые групповые входы подключены к групповому выходу первого регистра 324, выход одиннадцатого компаратора 343 подключен к первому входу четвертого элемента И 361 и к третьему входу девятого элемента И 366, выход двенадцатого компаратора 344 подключен к первому входу пятого элемента И 362, к второму входу четвертого элемента И 361, к первому входу шестого элемента И 363, к второму входу седьмого элемента И 364, к первому входу восьмого элемента И 365 и к первому входу девятого элемента И 366, выход тринадцатого компаратора 345 подключен к второму входу пятого элемента И 362 и пятому входу девятого элемента И 366, выход четырнадцатого компаратора 346 подключен к первому входу седьмого элемента И 364 и шестому входу девятого элемента И 366, выход пятнадцатого компаратора 347 подключен к второму входу восьмого элемента И 365 и четвертому входу девятого элемента И 366, выход шестнадцатого компаратора 348 подключен к второму входу шестого элемента И 363 и второму входу девятого элемента И 366, выход пятого элемента И 362 подключен к третьему входу шестого элемента И 363, чей выход подключен к третьему входу восьмого элемента И 365, чей выход подключен к третьему входу седьмого элемента И 364, чей выход подключен к третьему входу четвертого элемента И 361, выходы четвертого элемента И 361, пятого элемента И 362, шестого элемента И 363, седьмого элемента И 364, восьмого элемента И 365, девятого элемента И 366 подключены соответственно к первым входам восьмого регистра 367, девятого регистра 368, десятого регистра 369, одиннадцатого регистра 370, двенадцатого регистра 371, тринадцатого регистра 372, чьи вторые входы подключены к выходу десятого компаратора 336, а третьи входы данных регистров подключены к выходу пятого компаратора 331, выход восьмого регистра 367 подключен к второму входу пятого элемента ИЛИ 376 и к первому входу второго элемента ИЛИ 373, выход девятого регистра 368 подключен к первому входу третьего элемента ИЛИ 374 и к второму входу второго элемента ИЛИ 373, выход десятого регистра 369 подключен к первому входу четвертого элемента ИЛИ 375 и к третьему входу второго элемента ИЛИ 373, выход одиннадцатого регистра 370 подключен к первому входу пятого элемента ИЛИ 376 и к четвертому входу второго элемента ИЛИ 373, выход двенадцатого регистра 371 подключен к третьему входу четвертого элемента ИЛИ 375 и к пятому входу второго элемента ИЛИ 373, чей выход подключен к первому входу седьмого счетчика 377 и к первому входу восьмого счетчика 378, выход третьего элемента ИЛИ 374 подключен к первому входу пятого счетчика 35, выход четвертого элемента ИЛИ 375 подключен к первому входу шестого счетчика 36, выход пятого элемента ИЛИ 376 подключен к второму входу пятого счетчика 35, выход тринадцатого регистра 372 подключен к второму входу девятого счетчика 379, являющимся инверсным входом, к первому входу десятого элемента И 381 и к первому входу десятого счетчика 382, первый вход девятого счетчика 379, является третьим входом МОО 3 и предназначен для подачи тактового сигнала CLKY, первый выход девятого счетчика 379 подключен к второму входу десятого элемента И 381, выход десятого элемента И 381 подключен к входу четырнадцатого регистра 380, групповой выход седьмого счетчика 377 подключен к групповому входу четырнадцатого регистра 380, групповой выход четырнадцатого регистра 380 подключен к групповому входу буферного элемента 383, чей выход подключен к групповому входу-выходу второго ОЗУ 72, групповой выход десятого счетчика 382 подключен к первому групповому входу второго мультиплексора 384, чей второй групповой вход является четвертым групповым входом МОО 3, групповой выход второго мультиплексора 384 подключен к групповому входу второго ОЗУ 72, первый и второй выходы девятого счетчика 379 подключены соответственно к первому и второму входам одиннадцатого элемента И 385, первый вход которого является инверсным, а выход подключен к второму входу двенадцатого элемента И 386, чей выход подключен ко входу второго ОЗУ 72, первый групповой вход четвертого сумматора 313 подключен к групповому выходу пятого счетчика 35, второй групповой вход четвертого сумматора 313 подключен к групповому выходу первого счетчика 31, первый групповой вход пятого сумматора 314 подключен к групповому выходу второго счетчика 32, второй групповой вход пятого сумматора 314 подключен к групповому выходу шестого счетчика 36, групповые выходы четвертого сумматора 313 и пятого сумматора 314 подключены соответственно к первому и второму групповым входам преобразователя данных 319, чей выход подключен к групповому входу второго буферного элемента 387, групповой выход которого подключен к групповому входу-выходу третьего ОЗУ 73, групповой выход восьмого счетчика 378 подключен к первому групповому входу третьего мультиплексора 388, второй групповой вход третьего мультиплексора 388 является пятым групповым входом МОО 3, групповой выход третьего мультиплексора 388 подключен к групповому входу третьего ОЗУ 73, первый групповой вход семнадцатого компаратора 389 подключен к групповому выходу первого счетчика 31, второй групповой вход семнадцатого компаратора 389 подключен к групповому выходу второго счетчика 32, на третий групповой вход семнадцатого компаратора 389 подается константа 0, выход семнадцатого компаратора 389 подключен к второму входу восьмого счетчика 378 и к второму входу десятого счетчика 382, шестой групповой вход МОО 3 подключен к первому групповому входу восемнадцатого компаратора 392, на второй групповой вход которого подается константа 2, выход восемнадцатого компаратора 392 подключен к первому входу двенадцатого элемента И 386, входу второго мультиплексора 384 и входу третьего мультиплексора 388, групповой выход первого мультиплексора 322 является первым групповым выходом МОО 3, групповой выход десятого счетчика 382 является вторым групповым выходом МОО 3, групповой вход/выход второго ОЗУ 72 является третьим групповым выходом МОО 3, групповой вход/выход третьего ОЗУ 73 является четвертым групповым выходом МОО 3, при этом триггер 37 является RS-триггером, первый вход которого является R-входом, второй вход - S-входом, первый выход девятого счетчика 379 является младшим разрядом его выходного значения, второй выход - страшим разрядом, входы второго мультиплексора 324 и третьего мультиплексора 388 являются инверсными входами, данные первого ОЗУ 71 являются однобитными.The MOO 3 object definition module (Fig. 8) consists of a first counter 31, a second counter 32, a third counter 33, a fourth counter 34, a fifth counter 35, a sixth counter 36, a trigger 37, a first AND element 38, a first OR element 39, a first adder 310, second adder 311, third adder 312, fourth adder 313, fifth adder 314, first comparator 315, second comparator 316, second address former 318, data converter 319, first address former 320, second AND element 321, first multiplexer 322, the first element is NOT 323, first register 324, third comparator 325, third element And 327, fourth comparator 328, fifth comparator 331, sixth comparator 332, seventh comparator 333, eighth comparator 334, ninth comparator 335, tenth comparator 336, second register 337, third register 338 , fourth register 339, fifth register 340, sixth register 341, seventh register 342, eleventh comparator 343, twelfth comparator 344, thirteenth comparator 345, fourteenth comparator 346, fifteenth comparator 347, sixteenth comparator 348, h the fourth element And 361, the fifth element And 362, the sixth element And 363, the seventh element And 364, the eighth element And 365, the ninth element And 366, the eighth register 367, the ninth register 368, the tenth register 369, the eleventh register 370, the twelfth register 371, thirteenth register 372, second OR element 373, third OR element 374, fourth OR element 375, fifth OR element 376, seventh counter 377, eighth counter 378, ninth counter 379, fourteenth register 380, tenth element AND 381, tenth counter 382, buffer element 383, second mu multiplexer 384, eleventh element AND 385, twelfth element And 386, second buffer element 387, third multiplexer 388, seventeenth comparator 389, third buffer element 391, eighteenth comparator 392, first RAM 71, second RAM 72, third RAM 73, the first input the first element And 38 is the first input of MOO 3 and is designed to supply a clock signal CLKX, the output of the trigger 37 is connected to the second input of the first element And 38, the output of the first element And 38 is connected to the first input of the first counter 31, the group output of the first the meter 31 is connected to the first group input of the first address generator 320 and to the first group input of the first comparator 315, the second group input MOO 3 is connected to the second group input of the first comparator 315, the output of the first comparator 315 is connected to the first input of the second element And 321, to the second input the first element OR 39 and to the first input of the second counter 32, the output of the first element OR 39 is connected to the second input of the first counter 31, the group output of the second counter 32 is connected to the first group input of the second comparator 316 and the second group input of the first shaper address 320, whose output is connected to the first group input of the first multiplexer 322, the third group input MOO 3 is connected to the second group input of the second comparator 316, the output of the second comparator 316 is connected to the second input of the second element And 321, to the second input the second counter 32 and to the first input of the first element OR 39, the output of the second element And 321 is the output of MOO 3, the output of the trigger 37 is connected to the input of the first element NOT 323 and to the input of the first register 324, the output of the first element NOT 323 sub is accessible to the input of the first multiplexer 322, to the third input of the fifth counter 35, to the second input of the sixth counter 36 and to the first and second inputs of the third buffer element 391, whose output is connected to the input / output of the first RAM 71, the first group input MOO 3 is connected to the group the input of the first register 324, the group output of the first register 324 is connected to the first group input of the third comparator 325, to whose second group input the constant 0 is supplied, the output of the third comparator 325 is connected to the first input of the third AND 327 element, the output of which is connected It is connected to the first input of the trigger 37, the input / output of the first RAM 71 is connected to the first input of the fourth comparator 328, whose second input is constant 1, the output of the fourth comparator 328 is connected to the second input of the third AND element 327, the input of the third counter 33 is the second input of the MOO 3 and is intended to supply a clock signal CLKX6, the group output of the third counter 33 is connected to the input of the fourth counter 34, the group output of the third counter 33 is connected to the first group input of the first adder 310, to which the second group input is supplied to 1, the output of the first adder 310 is connected to the first group input of the second adder 311, whose second group input is connected to the group output of the fifth counter 35, the third group input of the second adder 311 is connected to the group output of the first counter 31, the first group input of the third adder 312 is connected to the group output of the fourth counter 34, the second group input of the third adder 312 is connected to the group output of the sixth counter 36, the third group input of the third adder 312 is connected to the group output of the second counter a 32, the group outputs of the second adder 311 and the third adder 312 are connected respectively to the first and second group inputs of the second address generator 318, the group output of which is connected to the second group input of the first multiplexer 322 and to the group input of the first RAM 71, the group output of the third counter 33 is connected to the first group inputs of the fifth comparator 331, the sixth comparator 332, the seventh comparator 333, the eighth comparator 334, the ninth comparator 335, the tenth comparator 336, the group output of the fourth counter 34 connected to the third group inputs of the fifth comparator 331, sixth comparator 332, seventh comparator 333, eighth comparator 334, ninth comparator 335, tenth comparator 336, the second group input and the fourth group input of the fifth comparator 331 are supplied with constant 0, the second group input and to the fourth group input of the sixth comparator 332, respectively, constant 1 and constant 0 are supplied, to the second group input and to the fourth group input of the seventh comparator 333 are fed respectively constant 2 and constant 0, to the second the group input and the fourth group input of the eighth comparator 334 are supplied, respectively, the constant 0 and constant 1, the second group input and the fourth group input of the ninth comparator 335 are supplied with the constant 1, the constant 2 are fed to the second group input and the fourth group input of the tenth comparator 336, respectively and constant 1, the output of the fifth comparator 331 is connected to the input of the second register 337, the output of the sixth comparator 332 is connected to the input of the third register 338, the output of the seventh comparator 333 is connected to the input of the fourth reg Istra 339, the output of the eighth comparator 334 is connected to the input of the fifth register 340, the output of the ninth comparator 335 is connected to the input of the sixth register 341, the output of the tenth comparator 336 is connected to the input of the seventh register 342, the first group inputs of the second register 337, third register 338, fourth register 339 , fifth register 340, sixth register 341, seventh register 342 connected to the first group input MOO 3, group outputs of the second register 337, third register 338, fourth register 339, fifth register 340, sixth register 341, seventh register 342 are connected respectively to the first group inputs of the eleventh comparator 343, twelfth comparator 344, thirteenth comparator 345, fourteenth comparator 346, fifteenth comparator, 347 and sixteenth comparator 348, whose second group inputs are connected to the group output of the first register 324, the output of the eleventh comparator 343 the first input of the fourth element And 361 and to the third input of the ninth element And 366, the output of the twelfth comparator 344 is connected to the first input of the fifth element And 362, to the second input of the fourth of that element And 361, to the first input of the sixth element And 363, to the second input of the seventh element And 364, to the first input of the eighth element And 365 and to the first input of the ninth element And 366, the output of the thirteenth comparator 345 is connected to the second input of the fifth element And 362 and the fifth input of the ninth element And 366, the output of the fourteenth comparator 346 is connected to the first input of the seventh element And 364 and the sixth input of the ninth element And 366, the output of the fifteenth comparator 347 is connected to the second input of the eighth element And 365 and the fourth input of the ninth element And 366, output q of the sixteenth comparator 348 is connected to the second input of the sixth element And 363 and the second input of the ninth element And 366, the output of the fifth element And 362 is connected to the third input of the sixth element And 363, whose output is connected to the third input of the eighth element And 365, whose output is connected to the third the input of the seventh element And 364, whose output is connected to the third input of the fourth element And 361, the outputs of the fourth element And 361, the fifth element And 362, the sixth element And 363, the seventh element And 364, the eighth element And 365, the ninth element And 366 are connected respectively the first inputs of the eighth register 367, the ninth register 368, the tenth register 369, the eleventh register 370, the twelfth register 371, the thirteenth register 372, whose second inputs are connected to the output of the tenth comparator 336, and the third inputs of these registers are connected to the output of the fifth comparator 331, the output of the eighth register 367 is connected to the second input of the fifth OR element 376 and to the first input of the second OR element 373, the output of the ninth register 368 is connected to the first input of the third OR element 374 and to the second input of the second OR element 373, the output of the tenth p register 369 is connected to the first input of the fourth OR element 375 and to the third input of the second OR element 373, the output of the eleventh register 370 is connected to the first input of the fifth OR element 376 and to the fourth input of the second OR element 373, the output of the twelfth register 371 is connected to the third input of the fourth element OR 375 and to the fifth input of the second element OR 373, whose output is connected to the first input of the seventh counter 377 and to the first input of the eighth counter 378, the output of the third element OR 374 is connected to the first input of the fifth counter 35, the fourth output OR element 375 is connected to the first input of the sixth counter 36, the output of the fifth element OR 376 is connected to the second input of the fifth counter 35, the output of the thirteenth register 372 is connected to the second input of the ninth counter 379, which is an inverse input, to the first input of the tenth element And 381 and to the first the input of the tenth counter 382, the first input of the ninth counter 379, is the third input of MOO 3 and is designed to supply the CLKY clock signal, the first output of the ninth counter 379 is connected to the second input of the tenth element And 381, the output of the tenth element And 381 sub is accessible to the input of the fourteenth register 380, the group output of the seventh counter 377 is connected to the group input of the fourteenth register 380, the group output of the fourteenth register 380 is connected to the group input of the buffer element 383, whose output is connected to the group input-output of the second RAM 72, the group output of the tenth counter 382 connected to the first group input of the second multiplexer 384, whose second group input is the fourth group input of MOO 3, the group output of the second multiplexer 384 is connected to the group input of the second RAM 72, the first and second outputs of the ninth counter 379 are connected respectively to the first and second inputs of the eleventh element And 385, the first input of which is inverse, and the output is connected to the second input of the twelfth element And 386, whose output is connected to the input of the second RAM 72, the first group input the fourth adder 313 is connected to the group output of the fifth counter 35, the second group input of the fourth adder 313 is connected to the group output of the first counter 31, the first group input of the fifth adder 31 is connected to the group output of the second counter 32, the second group input of the fifth adder 314 is connected to the group output of the sixth counter 36, the group outputs of the fourth adder 313 and the fifth adder 314 are respectively connected to the first and second group inputs of the data converter 319, whose output is connected to the group input of the second buffer element 387, group the output of which is connected to the group input-output of the third RAM 73, the group output of the eighth counter 378 is connected to the first group input of the third multiplexer 388, the second group input of the third mult Ilexer 388 is the fifth group input of MOO 3, the group output of the third multiplexer 388 is connected to the group input of the third RAM 73, the first group input of the seventeenth comparator 389 is connected to the group output of the first counter 31, the second group input of the seventeenth comparator 389 is connected to the group output of the second counter 32, at the third group input of the seventeenth comparator 389 a constant 0 is supplied, the output of the seventeenth comparator 389 is connected to the second input of the eighth counter 378 and to the second input of the tenth counter 382, sixth the MPO 3 input is connected to the first group input of the eighteenth comparator 392, the constant 2 is supplied to the second group input, the output of the eighteenth comparator 392 is connected to the first input of the twelfth element And 386, the input of the second multiplexer 384 and the input of the third multiplexer 388, the group output of the first multiplexer 322 is the first group output of MOO 3, the group output of the tenth counter 382 is the second group output of MOO 3, the group input / output of the second RAM 72 is the third group output of MOO 3, group the input / output of the third RAM 73 is the fourth group output of MOO 3, while the trigger 37 is an RS-trigger, the first input of which is an R-input, the second input is an S-input, the first output of the ninth counter 379 is the least significant bit of its output value, the second the output is in the highest category, the inputs of the second multiplexer 324 and the third multiplexer 388 are inverse inputs, the data of the first RAM 71 are single-bit.

Модуль коррекции МК 4 (фиг.9) состоит из первого регистра 453, первого компаратора 454, первого счетчика 455, второго компаратора 456, генератора импульсов 457, второго элемента И 458, второго счетчика 459, третьего компаратора 460, первого триггера 461, первого элемента И 462, четвертого компаратора 463, пятого компаратора 464, третьего счетчика 465, второго триггера 466, второго регистра 467, третьего регистра 468, четвертого регистра 469, мультиплексора 470, преобразователя данных 471, первого сумматора 472, второго сумматора 473, первой константы 474, равной 1, формирователя адреса 475, второй константы 476, равной 0, третьей константы 477, равной 1, четвертой константы 478, равной 2, модуля подчеркивания контуров 479, пятого регистра 480, седьмого компаратора 481, пятой константы 482, равной 3, третьего элемента И 483, шестого компаратора 484, причем вход первого регистра 453 является третьим входом МК 4, первый групповой вход МК 4 подключен к групповому входу первого регистра 453, групповой выход первого регистра 453 подключен к первому групповому входу первого компаратора 454, выход первого компаратора 454 подключен к второму входу первого счетчика 455 и к первому выходу МК 4, первый групповой выход МК 4 подключен к групповому выходу первого счетчика 455, второй групповой вход МК 4 подключен к первому групповому входу второго компаратора 456, к первому групповому входу третьего компаратора 460 и к первому групповому входу генератора импульсов 457, четвертый групповой вход МК 4 подключен к второму групповому входу второго компаратора 456, выход второго компаратора 456 подключен к входу генератора импульсов 457, к второму входу третьего счетчика 465 и к первому входу первого триггера 461, выход генератора импульсов 457 подключен к первому входу второго элемента И 458, чей выход подключен к первому входу второго счетчика 459, чей групповой выход, являющийся четвертым групповым выходом МК 4, подключен к второму групповому входу третьего компаратора 460, чей выход подключен к второму входу первого триггера 461 и к второму входу второго счетчика 459, выход первого триггера 461 подключен к второму входу первого элемента И 462, выход первого элемента И 462 подключен к первому входу первого счетчика 455, первый вход МК 4 предназначен для подачи тактового сигнала CLKW и подключен к первому входу первого элемента И 462 и первому входу третьего элемента И 483, второй вход которого подключен к выходу второго триггера 466, а выход третьего элемента И 483 подключен к второму входу второго элемента И 458, второй вход МК 4 предназначен для подачи тактового сигнала CLKZ и подключен к первому входу третьего счетчика 465, групповой выход третьего счетчика 465 подключен к групповому входу четвертого компаратора 463, чей выход подключен к первому входу второго триггера 466 и к входу второго регистра 467, групповой вход которого подключен к пятому групповому входу модуля МК 4, групповые входы третьего регистра 468 и четвертого регистра 469 также подключены к пятому групповому входу модуля МК 4, групповой выход третьего счетчика 465 подключен к девятому групповому входу мультиплексора 470, третий групповой вход МК 4 подключен к групповому входу преобразователя данных 471, чей первый групповой выход подключен к первому, третьему и четвертому групповым входам мультиплексора 470 и первому входу первого сумматора 472, второй групповой выход преобразователя данных 471 подключен к пятому, шестому и восьмому групповым входам мультиплексора 470 и второму групповому входу второго сумматора 473, на второй групповой вход первого сумматора 472 и на первый групповой вход второго сумматора 473 подается третья константа 474, равная 1, групповой выход первого сумматора 472 подключен к второму групповому входу мультиплексора 470, групповой выход второго сумматора 473 подключен к седьмому групповому входу мультиплексора 470, первый и второй групповые выходы мультиплексора 470 подключены соответственно к первому и второму входам формирователя адреса 475, чей групповой выход является вторым групповым выходом МК 4, выход пятого компаратора 464 подключен к входу третьего регистра 468, выход шестого компаратора 484 подключен к входу четвертого регистра 469, на вторые групповые входы четвертого компаратора 463, пятого компаратора 464, шестого компаратора 484 подаются постоянные значения, задаваемые второй константой 476, третьей константой 477, четвертой константой 478, равным 0, 1 и 2 соответственно, групповые выходы второго регистра 467, третьего регистра 468 и четвертого регистра 469 подключены соответственно к первому, второму и третьему групповым входам модуля подчеркивания контуров 479, чей групповой выход подключен к групповому входу пятого регистра 480, выход третьего счетчика 465 подключен к первому групповому входу седьмого компаратора 481, на чей второй вход подается пятая константа 482, равная 3, выход седьмого компаратора 481 подключен к второму входу второго триггера 466 и к входу пятого регистра 480, чей групповой выход является третьим групповым выходом МК 4, выход второго триггера 466 является вторым выходом МК 4.Correction module MK 4 (Fig. 9) consists of the first register 453, the first comparator 454, the first counter 455, the second comparator 456, the pulse generator 457, the second element And 458, the second counter 459, the third comparator 460, the first trigger 461, the first element And 462, fourth comparator 463, fifth comparator 464, third counter 465, second trigger 466, second register 467, third register 468, fourth register 469, multiplexer 470, data converter 471, first adder 472, second adder 473, first constant 474, equal to 1, shaper addresses 475, second constant 476, equal to 0, third constant 477, equal to 1, fourth constant 478, equal to 2, underline emphasis module 479, fifth register 480, seventh comparator 481, fifth constant 482, equal to 3, third element AND 483, sixth comparator 484, the input of the first register 453 being the third input of MK 4, the first group input of MK 4 connected to the group input of the first register 453, the group output of the first register 453 connected to the first group input of the first comparator 454, the output of the first comparator 454 connected to the second input of the first counter 455 and to the first output of MK 4, the first group output of MK 4 is connected to the group output of the first counter 455, the second group input of MK 4 is connected to the first group input of the second comparator 456, to the first group input of the third comparator 460 and to the first group input of the generator pulses 457, the fourth group input MK 4 is connected to the second group input of the second comparator 456, the output of the second comparator 456 is connected to the input of the pulse generator 457, to the second input of the third counter 465 and to the first input of the first trigger 461, in the output of the pulse generator 457 is connected to the first input of the second AND element 458, whose output is connected to the first input of the second counter 459, whose group output, which is the fourth group output of MK 4, is connected to the second group input of the third comparator 460, whose output is connected to the second input of the first trigger 461 and to the second input of the second counter 459, the output of the first trigger 461 is connected to the second input of the first element And 462, the output of the first element And 462 is connected to the first input of the first counter 455, the first input MK 4 is designed to supply output signal CLKW and connected to the first input of the first element And 462 and the first input of the third element And 483, the second input of which is connected to the output of the second trigger 466, and the output of the third element And 483 is connected to the second input of the second element And 458, the second input MK 4 is for applying a clock signal CLKZ and is connected to the first input of the third counter 465, the group output of the third counter 465 is connected to the group input of the fourth comparator 463, whose output is connected to the first input of the second trigger 466 and to the input of the second register 467, group input One of which is connected to the fifth group input of the MK 4 module, the group inputs of the third register 468 and the fourth register 469 are also connected to the fifth group input of the MK 4 module, the group output of the third counter 465 is connected to the ninth group input of the multiplexer 470, the third group input of MK 4 is connected to the group input of the data converter 471, whose first group output is connected to the first, third and fourth group inputs of the multiplexer 470 and the first input of the first adder 472, the second group output of the data converter 471 connected to the fifth, sixth and eighth group inputs of the multiplexer 470 and the second group input of the second adder 473, the third constant 474 equal to 1 is fed to the second group input of the first adder 472 and to the first group input of the second adder 473, the group output of the first adder 472 is connected to the second the group input of the multiplexer 470, the group output of the second adder 473 is connected to the seventh group input of the multiplexer 470, the first and second group outputs of the multiplexer 470 are connected respectively to the first and second input m of the address generator 475, whose group output is the second group output MK 4, the output of the fifth comparator 464 is connected to the input of the third register 468, the output of the sixth comparator 484 is connected to the input of the fourth register 469, to the second group inputs of the fourth comparator 463, fifth comparator 464, sixth comparator 484 is supplied with constant values specified by a second constant 476, a third constant 477, a fourth constant 478 equal to 0, 1 and 2, respectively, group outputs of the second register 467, third register 468 and fourth register 469 p are connected respectively to the first, second, and third group inputs of the underlining module 479, whose group output is connected to the group input of the fifth register 480, the output of the third counter 465 is connected to the first group input of the seventh comparator 481, to whose second input the fifth constant 482, equal to 3, is supplied , the output of the seventh comparator 481 is connected to the second input of the second trigger 466 and to the input of the fifth register 480, whose group output is the third group output of MK 4, the output of the second trigger 466 is the second output of MK 4.

Модуль подчеркивания контуров МПК 479 (фиг.10) состоит из первого умножителя 411, второго умножителя 412, третьего умножителя 413, четвертого умножителя 414, третьего сумматора 417, модуля выделения квадратного корня 419, первого сумматора 420, второго сумматора 421, четвертого сумматора 422, причем первый групповой вход МПК 479 подключен к первому групповому входу первого сумматора 420, второй групповой вход МПК 479 подключен к второму групповому входу первого сумматора 420 и к первому групповому входу второго сумматора 421, третий групповой вход МПК 479 подключен к второму групповому входу второго сумматора 421, групповой выход первого сумматора 420 подключен к первому и второму групповым входам первого умножителя 411, групповой выход второго сумматора 421 подключен к первому и второму групповым входам второго умножителя 412, групповые выходы первого умножителя 411 и второго умножителя 412 подключены соответственно к первому и второму групповым входам третьего сумматора 417, чей групповой выход подключен к групповому входу модуля выделения квадратного корня 419, групповой выход модуля выделения квадратного корня 419 подключен к первому групповому входу третьего умножителя 413, второй групповой вход которого является четвертым групповым входом МПК 479 и предназначен для подачи постоянной величины k1 (где k1 - первый целочисленный весовой коэффициент, определяющий степень подчеркивания контуров), групповой выход третьего умножителя 413 подключен к первому групповому входу четвертого сумматора 422, второй групповой вход МПК 479 подключен к первому групповому входу четвертого умножителя 414, второй групповой вход которого является пятым групповым входом МПК 479 и предназначен для подачи постоянной величины k2 (где k2 - второй целочисленный весовой коэффициент, определяющий степень подчеркивания контуров), групповой выход четвертого умножителя 414 подключен к второму групповому входу четвертого сумматора 422, групповой выход четвертого сумматора 422 является групповым выходом МПК 479, при этом первый сумматор 420 и второй сумматор 421 выполняют функцию вычитания.The loop emphasis module IPC 479 (FIG. 10) consists of a first multiplier 411, a second multiplier 412, a third multiplier 413, a fourth multiplier 414, a third adder 417, a square root highlighting module 419, a first adder 420, a second adder 421, and a fourth adder 422, moreover, the first group input of the IPC 479 is connected to the first group input of the first adder 420, the second group input of the IPC 479 is connected to the second group input of the first adder 420 and the first group input of the second adder 421, the third group input of the IPC 479 is connected to the second group input of the second adder 421, the group output of the first adder 420 is connected to the first and second group inputs of the first multiplier 411, the group output of the second adder 421 is connected to the first and second group inputs of the second multiplier 412, the group outputs of the first multiplier 411 and the second multiplier 412 are connected respectively, to the first and second group inputs of the third adder 417, whose group output is connected to the group input of the square root selection module 419, the group output of the selection of square about the root 419 is connected to the first group input of the third multiplier 413, the second group input of which is the fourth group input of the IPC 479 and is designed to supply a constant value k1 (where k1 is the first integer weight coefficient that determines the degree of underline of the loops), the group output of the third multiplier 413 is connected to the first group input of the fourth adder 422, the second group input of the IPC 479 is connected to the first group input of the fourth multiplier 414, the second group input of which is the fifth group input IPC house 479 and is designed to supply a constant value of k2 (where k2 is the second integer weight coefficient that determines the degree of underlining of the loops), the group output of the fourth multiplier 414 is connected to the second group input of the fourth adder 422, the group output of the fourth adder 422 is the group output of the IPC 479, wherein the first adder 420 and the second adder 421 perform a subtraction function.

Устройство компенсации размытости изображения работает в четырех режимах, задаваемых значением на групповом выходе счетчика 100. Режимы работы устройства последовательно чередуются с 0 по 3 для каждого поступающего с ДИ 10 кадра. В нулевом режиме производится выдача обработанного кадра на системную шину и запись данных от ДИ 10. В первом режиме производится обнаружение и определение направления движения для каждого пикселя. Во втором режиме пиксели с одинаковым направлением движения группируются в объекты. В третьем режиме для найденных движущихся объектов производится расчет и коррекция яркостей пикселей с целью компенсации размытости изображения.The blurr compensation device operates in four modes, set by the value at the group output of the counter 100. The device operation modes are sequentially alternated from 0 to 3 for each frame received from a 10-inch ID. In the zero mode, the processed frame is output to the system bus and data is recorded from the DI 10. In the first mode, the detection and determination of the direction of motion for each pixel are performed. In the second mode, pixels with the same direction of movement are grouped into objects. In the third mode, for the detected moving objects, the calculation and correction of the brightness of the pixels is performed in order to compensate for the blurriness of the image.

В нулевом режиме на вход ДИ 10 поступает входной сигнал CLK/3. С группового выхода ДИ 10 на первый групповой вход контроллера 1 последовательно передаются яркости пикселей текущего кадра изображения.In the zero mode, the input of the DI 10 receives the input signal CLK / 3. From the group output of the DI 10 to the first group input of the controller 1, the pixel brightness of the current image frame is sequentially transmitted.

Контроллер 1 работает в трех режимах, которые чередуются последовательно от 2 до 0 для каждого пикселя, и обеспечивает: в режиме 2 - выдачу данных из первого ОЗУ 5 на системную шину СШ, в режиме 1 - перезапись кадра из первого ОЗУ 5 во второе ОЗУ 6, в режиме 0 - запись данных, поступающих от датчика изображения, в первое ОЗУ 5. Во всех режимах работы контроллера 1 обработка данных первого ОЗУ 5 и второго ОЗУ 6 производится по адресу, сформированному на втором групповом выходе контроллера 1.Controller 1 operates in three modes, which are alternately sequentially from 2 to 0 for each pixel, and provides: in mode 2 — data output from the first RAM 5 to the system bus, in mode 1 — rewriting the frame from the first RAM 5 to the second RAM 6 , in mode 0 - recording data from the image sensor into the first RAM 5. In all modes of the controller 1, the data of the first RAM 5 and the second RAM 6 are processed at the address generated on the second group output of the controller 1.

В режиме 2 контроллер 1 производит считывание значения яркости пикселя из первого ОЗУ 5 и выдачу его на системную шину. Для этого контроллер 1 на своем втором групповом выходе формирует значение адреса и передает его на первый групповой вход первого мультиплексора 51, с группового выхода которого он поступает на групповой вход первого ОЗУ 5. По данному адресу значение яркости пикселя текущего кадра с группового входа-выхода первого ОЗУ 5 считывается и поступает на первый групповой вход первого демультиплексора 56, с первого группового выхода которого оно передается на четвертый групповой вход контроллера 1 и далее поступает с третьего группового выхода контроллера 1 на системную шину.In mode 2, the controller 1 reads the pixel brightness value from the first RAM 5 and issues it to the system bus. To do this, the controller 1 at its second group output generates an address value and transfers it to the first group input of the first multiplexer 51, from the group output of which it goes to the group input of the first RAM 5. At this address, the pixel brightness value of the current frame from the group input-output of the first RAM 5 is read and fed to the first group input of the first demultiplexer 56, from the first group output of which it is transmitted to the fourth group input of the controller 1 and then comes from the third group output scooter 1 on the system bus.

Далее в режиме 1 контроллер 1 производит запись считанного из первого ОЗУ 5 значения яркости пикселя во второе ОЗУ 6. Значение яркости пикселя считывается по ранее сформированному адресу и передается с группового входа-выхода первого ОЗУ 5 на первый групповой вход первого демультиплексора 56, с выхода которого оно поступает на четвертый групповой вход контроллера 1. С четвертого группового выхода контроллера 1 значение яркости пикселя поступает на первый групповой вход шестого мультиплексора 57, с группового выхода которого оно поступает на групповой вход-выход второго ОЗУ 6.Then, in mode 1, controller 1 writes the pixel brightness value read from the first RAM 5 to the second RAM 6. The pixel brightness value is read at the previously generated address and transmitted from the group input-output of the first RAM 5 to the first group input of the first demultiplexer 56, from the output of which it arrives at the fourth group input of controller 1. From the fourth group output of controller 1, the pixel brightness value is fed to the first group input of the sixth multiplexer 57, from the group output of which it arrives at group of input-output of the second RAM 6.

Далее в режиме 0 контроллер 1 производит запись значения яркости текущего пикселя, поступившего от ДИ 10, в первое ОЗУ 5. Для этого ранее сформированное на втором групповом выходе контроллера 1 значение адреса пикселя поступает на первый групповой вход первого мультиплексора 51 и далее с группового выхода первого мультиплексора 51 на групповой вход первого ОЗУ 5. С первого группового выхода контроллера 1 значение яркости текущего пикселя поступает на групповой вход пятого мультиплексора 55, с группового выхода которого значение яркости текущего пикселя передается на вход-выход первого ОЗУ 5. Чтение/запись данных из первого ОЗУ 5 и второго ОЗУ 6 для всех режимов работы устройства производится аналогично нулевому режиму.Then, in mode 0, controller 1 records the brightness value of the current pixel received from DI 10 in the first RAM 5. For this, the pixel address value previously generated at the second group output of controller 1 is supplied to the first group input of the first multiplexer 51 and then from the group output of the first multiplexer 51 to the group input of the first RAM 5. From the first group output of the controller 1, the brightness value of the current pixel goes to the group input of the fifth multiplexer 55, from the group output of which the brightness value is current of the first pixel is transferred to the input-output of the first RAM 5. Reading / writing data from the first RAM 5 and the second RAM 6 for all operating modes of the device is performed similarly to the zero mode.

На второй и третий групповые входы контроллера 1 поступают константы (Х-1) и (Y-1) соответственно.The second and third group inputs of controller 1 receive the constants (X-1) and (Y-1), respectively.

На первом выходе контроллера 1 формируется сигнал, определяющий режим работы первого ОЗУ 5: чтение или запись данных. Для этого сигнал с первого выхода контроллера 1 поступает на первый вход второго мультиплексора 52, с выхода которого он передается на вход первого ОЗУ 5. На втором выходе контроллера 1 формируется сигнал, определяющий режим работы второго ОЗУ 6: чтение или запись данных. Для этого сигнал с второго выхода контроллера 1 поступает на первый вход четвертого мультиплексора 54, с выхода которого он передается на вход второго ОЗУ 6.At the first output of controller 1, a signal is generated that determines the operation mode of the first RAM 5: reading or writing data. For this, the signal from the first output of the controller 1 is fed to the first input of the second multiplexer 52, from the output of which it is transmitted to the input of the first RAM 5. At the second output of the controller 1, a signal is generated that determines the operation mode of the second RAM 6: reading or writing data. To do this, the signal from the second output of the controller 1 is fed to the first input of the fourth multiplexer 54, from the output of which it is transmitted to the input of the second RAM 6.

По сигналу на третьем выходе контроллера 1, поступающему на первый вход элемента ИЛИ 101 и далее с его выхода на вход счетчика 100, производится инкрементирование значения на групповом выходе счетчика 100 и переключение режима работы устройства из нулевого в первый. С группового выхода счетчика 100 сигнал поступает на первый групповой вход первого компаратора 102, на второй групповой вход которого подана константа 0. Первый компаратор 102 выполняет функцию «не равно» и выдает значение 0 на своем выходе при неравенстве режима работы нулю. С выхода первого компаратора 102 сигнал поступает на третий вход контроллера 1. При единичном значении данного сигнала производится сброс и запрещение работы контроллера 1, при нулевом значении данного сигнала - разрешение работы контроллера.The signal at the third output of the controller 1, which enters the first input of the OR element 101 and then from its output to the input of the counter 100, increments the value at the group output of the counter 100 and switches the operating mode of the device from zero to the first. From the group output of the counter 100, the signal goes to the first group input of the first comparator 102, the constant 0 is applied to the second group input of the first comparator 102. From the output of the first comparator 102, the signal is fed to the third input of controller 1. At a single value of this signal, the controller 1 is reset and disabled, at zero value of this signal, the controller is enabled.

Номер режима работы устройства с группового выхода счетчика 100 поступает на четвертый групповой вход первого мультиплексора 51, групповой вход второго мультиплексора 52, третий групповой вход третьего мультиплексора 53, групповой вход четвертого мультиплексора 54, третий групповой вход пятого мультиплексора 55 и второй групповой вход шестого мультиплексора 57, а также на вторые групповые входы первого демультиплексора 56 и второго демультиплексора 58.The operating mode number of the device from the group output of the counter 100 goes to the fourth group input of the first multiplexer 51, the group input of the second multiplexer 52, the third group input of the third multiplexer 53, the group input of the fourth multiplexer 54, the third group input of the fifth multiplexer 55 and the second group input of the sixth multiplexer 57 as well as to the second group inputs of the first demultiplexer 56 and the second demultiplexer 58.

В первом режиме работы устройства МОД 2 производит обнаружение и определение направления движения для каждого пикселя.In the first mode of operation of the device, MOD 2 detects and determines the direction of movement for each pixel.

На первый и второй групповые входы МОД 2 поступают константы (X-3) и (Y-3) соответственно. На первый вход МОД 2 поступает тактовая частота CLK/25.The first and second group inputs of MOD 2 receive the constants (X-3) and (Y-3), respectively. The first input of MOD 2 receives the clock frequency CLK / 25.

На первом групповом выходе МОД 2 последовательно формируется значение адреса текущего обрабатываемого пикселя, которое поступает на вторые групповые входы первого мультиплексора 51 и третьего мультиплексора 53, с групповых выходов которых оно далее поступает на групповые входы ОЗУ 5 и ОЗУ 6 соответственно. На четвертый групповой вход МОД 2 со второго группового выхода первого демультиплексора 56 поступает значение яркости пикселя текущего кадра, на вход которого данное значение поступило с группового входа-выхода ОЗУ 5. На третий групповой вход МОД 2 со второго группового выхода второго демультиплексора 58 поступает значение яркости пикселя предыдущего кадра, на вход которого данное значение поступило с группового входа-выхода ОЗУ 6.At the first group output of MOD 2, the address value of the current processed pixel is sequentially generated, which is fed to the second group inputs of the first multiplexer 51 and third multiplexer 53, from the group outputs of which it then goes to the group inputs of RAM 5 and RAM 6, respectively. The fourth group input MOD 2 from the second group output of the first demultiplexer 56 receives the brightness value of the pixel of the current frame, the input of which this value was received from the group input-output of RAM 5. The third group input MOD 2 from the second group output of the second demultiplexer 58 receives the brightness value pixel of the previous frame, the input of which this value came from the group input-output of RAM 6.

На пятый групповой вход МОД 2 с группового выхода счетчика 100 подается номер режима работы устройства. При первом режиме работы устройства на втором выходе МОД 2 формируется нулевой сигнал, а при остальных режимах работы устройства - единичный сигнал, который подается на вход седьмого мультиплексора 59. Со второго группового выхода МОД 2 на второй групповой вход седьмого мультиплексора 59 поступает значение адреса текущего пикселя, которое с группового выхода седьмого мультиплексора 59 передается на групповой вход третьего ОЗУ 7. На групповой вход-выход третьего ОЗУ 7 с третьего группового выхода МОД 2 поступает значение направления движения текущего пикселя, которое при единичном значении на третьем выходе МОД 2, подаваемом на вход третьего ОЗУ 7, записывается в данное ОЗУ. По завершению обработки последнего пикселя кадра на первом выходе МОД 2 формируется единичный сигнал, поступающий на второй вход элемента ИЛИ 101 и переводящий устройство в следующий (второй) режим работы.The fifth group input of MOD 2 from the group output of the counter 100 is the number of the operating mode of the device. In the first mode of operation of the device, a zero signal is generated at the second output of MOD 2, and in the remaining modes of operation of the device, a single signal is supplied to the input of the seventh multiplexer 59. From the second group output of MOD 2, the value of the current pixel address is supplied to the second group input of the seventh multiplexer 59 which from the group output of the seventh multiplexer 59 is transmitted to the group input of the third RAM 7. The direction of movement is received to the group input-output of the third RAM 7 from the third group output of MOD 2 Live pixel at which a unit value to output the third MOD 2 supplied to the third input of the RAM 7, is written in this RAM. Upon completion of the processing of the last pixel of the frame, a single signal is generated at the first output of MOD 2, which arrives at the second input of the OR element 101 and transfers the device to the next (second) mode of operation.

В третьем режиме работы устройства МОО 3 последовательно анализирует направление движения каждого пикселя и группирует пиксели с одинаковым направлением движения в объекты.In the third mode of operation of the device, MOO 3 sequentially analyzes the direction of movement of each pixel and groups pixels with the same direction of movement into objects.

На второй и третий групповые входы МОО 3 поступают константы (X-2) и (Y-2) соответственно. На первый вход МОО 3 поступает тактовая частота CLKX. На второй вход МОО 3 поступает тактовая частота CLKX6. На третий вход МОО 3 поступает тактовая частота CLKY.The second and third group inputs of MOO 3 receive the constants (X-2) and (Y-2), respectively. The first input of MOO 3 receives the clock frequency CLKX. The second input MOO 3 receives the clock frequency CLKX6. The third input of MOO 3 receives the clock frequency CLKY.

На шестой групповой вход МОО 3 с группового выхода счетчика 100 поступает номер режима работы устройства. С первого группового выхода МОО 3 значение адреса текущего анализируемого пикселя поступает на первый групповой вход седьмого мультиплексора 59 и далее с его выхода на групповой вход третьего ОЗУ 7. С группового входа-выхода третьего ОЗУ 7 значение направления движения текущего пикселя поступает на первый групповой вход МОО 3. По завершении обработки последнего пикселя кадра на выходе МОО 3 формируется единичный сигнал, поступающий на третий вход элемента ИЛИ 101 и переводящий устройство в следующий (четвертый) режим работы, а также на третий вход МК 4 и обеспечивающий запись значения количества объектов, формируемого на втором групповом выходе МОО 3 и подаваемого на первый групповой вход МК 4.The sixth group input MOO 3 from the group output of the counter 100 receives the number of the operating mode of the device. From the first group output of MOO 3, the value of the address of the current analyzed pixel goes to the first group input of the seventh multiplexer 59 and then from its output to the group input of the third RAM 7. From the group input-output of the third RAM 7, the value of the direction of movement of the current pixel goes to the first group input of MOO 3. Upon completion of the processing of the last pixel of the frame, a single signal is generated at the output of MOO 3; input MK 4 and providing a record of the value of the number of objects formed on the second group output MOO 3 and fed to the first group input MK 4.

В четвертом режиме работы устройства МК 4 последовательно для всех сформированных МОО 3 объектов производит определение количества пикселей, составляющих объект, расчет скорректированных значений яркостей пикселей движущихся объектов и запись скорректированных значений яркостей пикселей в первое ОЗУ 5.In the fourth mode of operation of the MK 4 device, sequentially for all the generated MOO 3 objects, it determines the number of pixels that make up the object, calculates the adjusted values of the brightness of the pixels of moving objects and writes the adjusted values of the brightness of the pixels in the first RAM 5.

На первый вход МК 4 поступает тактовая частота CLKW, второй вход МК 4 - тактовая частота CLKZ.The CLKW clock frequency arrives at the first input of MK 4, the CLKZ clock frequency at the second input of MK 4.

В процессе своей работы МК 4 на первом групповом выходе формирует значение адреса, по которому в МОО 3 записано количество пикселей текущего анализируемого объекта, и подает его на четвертый групповой вход МОО 3. На четвертом групповом выходе МК 4 формируется значение адреса, по которому из МОО 3 считываются значения координат текущего обрабатываемого пикселя, и поступают на пятый групповой вход МОО 3. С третьего группового выхода МОО 3 на второй групповой вход МК 4 поступает количество точек текущего анализируемого объекта. С четвертого группового выхода МОО 3 на третий групповой вход МК 4 поступают координаты текущего пикселя текущего анализируемого объекта.In the process of its work, MK 4 at the first group output generates the address value at which the number of pixels of the current analyzed object is recorded in MPO 3 and feeds it to the fourth group input of MPO 3. At the fourth group output of MK 4, the address value is formed from which the MPO 3, the coordinates of the current processed pixel are read, and fed to the fifth group input of MOO 3. From the third group output of MOO 3 to the second group input of MK 4 the number of points of the current analyzed object is received. From the fourth group output MOO 3 to the third group input MK 4 receives the coordinates of the current pixel of the current analyzed object.

На пятый групповой вход МК 4 поступают данные (яркости пикселей корректируемой области) с четвертого группового выхода первого демультиплексора 56, считываемые с группового входа-выхода первого ОЗУ 5 по адресу, сформированному на втором групповом выходе МК 4 и поданному на четвертый групповой вход первого мультиплексора 51, с выхода которого он передается на групповой вход первого ОЗУ 5, и поданные на первый групповой вход первого демультиплексора 56.The fifth group input MK 4 receives data (brightness of pixels of the corrected area) from the fourth group output of the first demultiplexer 56, read from the group input-output of the first RAM 5 at the address generated on the second group output of MK 4 and applied to the fourth group input of the first multiplexer 51 , from the output of which it is transmitted to the group input of the first RAM 5, and filed to the first group input of the first demultiplexer 56.

В процессе работы МК 4 на своем втором групповом выходе формирует значение адреса, определяющего координаты пикселя со скорректированным значением яркости, и подает его на четвертый групповой вход первого мультиплексора 51, с группового выхода которого данное значение адреса поступает на групповой вход первого ОЗУ 5. На третьем групповом выходе МК 4 формируется скорректированное значение яркости пикселя, которое поступает на четвертый групповой вход пятого мультиплексора 55, с группового выхода которого оно подается на групповой вход-выход первого ОЗУ 5 и записывается в него.In the process, MK 4 at its second group output generates an address value that defines the coordinates of the pixel with the adjusted brightness value, and feeds it to the fourth group input of the first multiplexer 51, from the group output of which this address value goes to the group input of the first RAM 5. On the third group output MK 4 is formed by the adjusted value of the brightness of the pixel, which is fed to the fourth group input of the fifth multiplexer 55, from the group output of which it is fed to the group input The first RAM 5 is written to it.

На четвертый групповой вход МК 4 подается пороговое значение, определяющее минимально допустимое количество пикселей в объекте. На выходе МК 4 формируется единичный сигнал, поступающий на четвертый вход элемента ИЛИ 101 и переводящий устройство в нулевой режим работы.The fourth group input MK 4 is supplied with a threshold value that determines the minimum number of pixels in the object. At the output of MK 4, a single signal is generated, which arrives at the fourth input of the OR element 101 and puts the device into zero operation mode.

Контроллер 1 работает следующим образом. На первый вход первого счетчика 13, который определяет координату х текущего обрабатываемого пикселя, поступает тактовый сигнал CLK/3, по которому значение на групповом выходе первого счетчика 13 увеличивается на единицу и поступает на первый групповой вход первого компаратора 16. На второй групповой вход первого компаратора 16 подается константа (Х-1), где Х - размер кадра по горизонтали. С выхода первого компаратора 16 сигнал поступает на второй вход первого элемента ИЛИ 11, с выхода которого подается на второй вход первого счетчика 13. При единичном значении данного сигнала обеспечивается сброс первого счетчика 13. Одновременно с этим сигнал с выхода первого компаратора 16 поступает на первый вход второго счетчика 14, определяющего координату у текущего обрабатываемого пикселя, с выхода которого сигнал подается на первый групповой вход второго компаратора 17, на второй групповой вход которого подана константа (Y-1), где Y - размер кадра по вертикали. С выхода второго компаратора 17 сигнал поступает на второй вход второго элемента ИЛИ 12 и на первый вход первого элемента ИЛИ 11. С выхода второго элемента ИЛИ 12 сигнал подается на второй вход второго счетчика 14. При единичном значении данного сигнала обеспечивается сброс второго счетчика 14. Таким образом, обеспечивается последовательный перебор координат (х,у) пикселей, где x∈[0,Х-1], у∈[0,Y-1].Controller 1 operates as follows. At the first input of the first counter 13, which determines the x coordinate of the current pixel being processed, a clock signal CLK / 3 is received, according to which the value at the group output of the first counter 13 is increased by one and fed to the first group input of the first comparator 16. At the second group input of the first comparator 16 a constant (X-1) is supplied, where X is the horizontal frame size. From the output of the first comparator 16, the signal is supplied to the second input of the first element OR 11, the output of which is fed to the second input of the first counter 13. At a single value of this signal, the first counter 13 is reset. At the same time, the signal from the output of the first comparator 16 is fed to the first input the second counter 14, which determines the coordinate of the current processed pixel, from the output of which the signal is fed to the first group input of the second comparator 17, the second group input of which is supplied with a constant (Y-1), where Y is the size frame vertically. From the output of the second comparator 17, the signal is fed to the second input of the second OR element 12 and to the first input of the first OR element 11. From the output of the second OR element 12, the signal is fed to the second input of the second counter 14. At a single value of this signal, the second counter is reset 14. Thus Thus, sequential enumeration of coordinates (x, y) of pixels is provided, where x∈ [0, X-1], y∈ [0, Y-1].

С группового выхода первого счетчика 13 и группового выхода второго счетчика 14 координаты (х,у) текущего пикселя поступают соответственно на первый и второй групповые входы формирователя адреса 18, чей групповой выход, на котором формируется значение адреса текущего пикселя, является вторым групповым выходом контроллера 1.From the group output of the first counter 13 and the group output of the second counter 14, the coordinates (x, y) of the current pixel are received respectively at the first and second group inputs of the address generator 18, whose group output on which the value of the address of the current pixel is generated is the second group output of the controller 1 .

Третий счетчик 15, предназначенный для задания текущего режима работы контроллера, обеспечивает формирование на своем двубитном групповом выходе значений от 0 до 2. На первый вход третьего счетчика 15 поступает тактовый сигнал CLK, который обеспечивает инкрементирование значения на выходе счетчика. С группового выхода третьего счетчика 15 сигнал поступает на второй групповой вход буфера 110, на первый групповой вход которого подается сигнал от датчика изображения 10. При значении 0 на втором групповом входе буфера 110 обеспечивается пропускание сигнала от ДИ 10 на групповой выход буфера 110, который является первым групповым выходом контроллера 1. При остальных значениях на втором групповом входе буфера 110 его групповой выход находится в третьем высокоимпедансном состоянии.The third counter 15, designed to set the current operating mode of the controller, provides the formation of values from 0 to 2 on its two-bit group output. The CLK clock signal is supplied to the first input of the third counter 15, which provides an increment of the value at the counter output. From the group output of the third counter 15, the signal is supplied to the second group input of the buffer 110, to the first group input of which a signal from the image sensor 10 is supplied. If the value 0 is used at the second group input of the buffer 110, the signal from DI 10 is transmitted to the group output of the buffer 110, which is the first group output of the controller 1. With other values at the second group input of the buffer 110, its group output is in the third high-impedance state.

С выхода первого компаратора 16, с выхода второго компаратора 17 и старшего разряда группового выхода третьего счетчика 15 сигналы поступают на первый, второй и третий входы элемента И 19, с выхода которого сигнал поступает на третий выход контроллера 1 и означает завершение 0 режима работы устройства компенсации размытости изображения.From the output of the first comparator 16, from the output of the second comparator 17 and the senior discharge of the group output of the third counter 15, the signals are fed to the first, second and third inputs of the element And 19, the output of which the signal is fed to the third output of the controller 1 and means the completion of 0 operation mode of the compensation device motion blur.

С группового выхода третьего счетчика 15 сигнал поступает на второй групповой вход демультиплексора 111, первый групповой вход которого является четвертым групповым входом контроллера 1. При значении 0 на втором групповом входе демультиплексора 111 обеспечивается пропускание сигнала с его первого группового входа на его первый групповой выход, являющийся третьим групповым выходом контроллера 1. При значении 1 на втором групповом входе демультиплексора 111 обеспечивается подключение его первого группового входа на его второй групповой выход, являющийся четвертым групповым выходом контроллера 1.From the group output of the third counter 15, the signal is supplied to the second group input of the demultiplexer 111, the first group input of which is the fourth group input of the controller 1. At a value of 0 at the second group input of the demultiplexer 111, the signal is transmitted from its first group input to its first group output, which is the third group output of the controller 1. With a value of 1 at the second group input of the demultiplexer 111, it is possible to connect its first group input to its second group output , which is the fourth group output of the controller 1.

На третий вход первого элемента ИЛИ 11, первый вход второго элемента ИЛИ 12 и второй вход третьего счетчика 15 поступает сигнал, единичное значение которого блокирует работу контроллера 1.The third input of the first element OR 11, the first input of the second element OR 12 and the second input of the third counter 15 receives a signal, a unit value of which blocks the operation of the controller 1.

Сигнал со второго выхода контроллера 1 используется для управления режимом чтение/запись второго ОЗУ 6.The signal from the second output of the controller 1 is used to control the read / write mode of the second RAM 6.

Модуль обнаружения движения 2 работает следующим образом. На первый вход первого счетчика 21 поступает тактовый сигнал CLK/25, по которому первый счетчик 21 инкрементирует свое значение. С группового выхода первого счетчика 21 координата x текущего обрабатываемого пикселя подается на первый групповой вход первого сумматора 27 и первый групповой вход первого компаратора 25, на второй групповой вход которого поступает величина (Х-3). При совпадении значений на своих обоих групповых входах первый компаратор 25 подает сигнал на второй вход элемента ИЛИ 210, с выхода которого сигнал поступает на второй вход первого счетчика 21 и сбрасывает первый счетчик 21 в нулевое состояние. Одновременно с этим с выхода первого компаратора 25 сигнал поступает на первый вход второго счетчика 22, с группового выхода которого сигнал поступает на первый групповой вход второго компаратора 26, на второй групповой вход которого поступает величина (Y-3). При совпадении значений на обоих своих групповых входах второй компаратор 26 формирует единичный сигнал, поступающий на второй вход второго счетчика 22 и первый вход элемента ИЛИ 210 и далее с его выхода на второй вход первого счетчика 21, тем самым сбрасывая первый счетчик 21 и второй счетчик 22 в нулевое состояние. Таким образом, на групповом выходе первого счетчика 21 последовательно формируется координата х текущего обрабатываемого пикселя, принимающая значения от 0 до (Х-3); на выходе второго счетчика 22 последовательно формируется координата у текущего обрабатываемого пикселя, принимающая значения от 0 значения до (У-3).The motion detection module 2 operates as follows. The first input of the first counter 21 receives a clock signal CLK / 25, along which the first counter 21 increments its value. From the group output of the first counter 21, the x coordinate of the current pixel being processed is fed to the first group input of the first adder 27 and the first group input of the first comparator 25, to the second group input of which the value (X-3) is received. If the values coincide on both of their group inputs, the first comparator 25 supplies a signal to the second input of the OR element 210, from the output of which the signal goes to the second input of the first counter 21 and resets the first counter 21 to zero. At the same time, from the output of the first comparator 25, the signal enters the first input of the second counter 22, from the group output of which the signal enters the first group input of the second comparator 26, the second group input of which supplies the value (Y-3). When the values coincide on both of their group inputs, the second comparator 26 generates a single signal supplied to the second input of the second counter 22 and the first input of the OR element 210 and then from its output to the second input of the first counter 21, thereby resetting the first counter 21 and the second counter 22 to zero state. Thus, at the group output of the first counter 21, the x coordinate of the current processed pixel is successively formed, taking values from 0 to (X-3); at the output of the second counter 22, a coordinate is formed sequentially at the current processed pixel, taking values from 0 values to (Y-3).

На вход третьего счетчика 23 поступает тактовый сигнал CLK, на групповом выходе третьего счетчика 23 последовательно формируются значения i от 0 до 4 включительно, которые поступают на второй групповой вход первого сумматора 27. При переполнении третьего счетчика 23 на его втором выходе формируется сигнал, поступающий на вход четвертого счетчика 24 и инкрементирующий его выходное значение. С группового выхода четвертого счетчика 24 значения j от 0 до 4 включительно поступают на второй групповой вход второго сумматора 28. С групповых выходов первого счетчика 21 и второго счетчика 22 значения х и у поступают на первые групповые входы первого сумматора 27 и второго сумматора 28. На групповых выходах первого сумматора 27 и второго сумматора 28 формируются значения, определяющие координаты (x+i, у+j) текущего пикселя, которые поступают на первый и второй групповые входы первого формирователя адреса 29. Первый формирователь адреса 29 производит на своем групповом выходе формирование адреса А в соответствии с формулой A=(x+i)+(у+j)*X и подает адрес А на первый групповой выход МОД 2.At the input of the third counter 23, a clock signal CLK is received, at the group output of the third counter 23, values i from 0 to 4 inclusive are generated sequentially, which are transmitted to the second group input of the first adder 27. When the third counter 23 is overflowed, a signal is generated at its second output the input of the fourth counter 24 and incrementing its output value. From the group output of the fourth counter 24, the values of j from 0 to 4 inclusively arrive at the second group input of the second adder 28. From the group outputs of the first counter 21 and the second counter 22, the x and y values go to the first group inputs of the first adder 27 and the second adder 28. On group outputs of the first adder 27 and the second adder 28 are formed values that define the coordinates (x + i, y + j) of the current pixel, which are fed to the first and second group inputs of the first address generator 29. The first address generator 29 produces at its output group addresses A formation according to the formula A = (x + i) + (y + j) * X, and delivers the address A for the first group output MOD 2.

На первый групповой вход первого регистрового блока 212 с четвертого группового входа МОД 2 поступает значение яркости текущего пикселя текущего кадра. На первые групповые входы второго регистрового блока 213, третьего регистрового блока 214, четвертого регистрового блока 215, пятого регистрового блока 216, шестого регистрового блока 217, седьмого регистрового блока 218, восьмого регистрового блока 219, девятого регистрового блока 220, десятого регистрового блока 221 с третьего группового входа МОД 2 поступает значение яркости текущего пикселя предыдущего кадра. На вторые групповые входы первого регистрового блока 212, второго регистрового блока 213, третьего регистрового блока 214, четвертого регистрового блока 215, пятого регистрового блока 216, шестого регистрового блока 217, седьмого регистрового блока 218, восьмого регистрового блока 219, девятого регистрового блока 220, десятого регистрового блока 221 поступают значения j с группового выхода четвертого счетчика 24. На третьи групповые входы первого регистрового блока 212, второго регистрового блока 213, третьего регистрового блока 214, четвертого регистрового блока 215, пятого регистрового блока 216, шестого регистрового блока 217, седьмого регистрового блока 218, восьмого регистрового блока 219, девятого регистрового блока 220, десятого регистрового блока 221 поступают значения i с группового выхода третьего счетчика 23.The first group input of the first register block 212 from the fourth group input of MOD 2 receives the brightness value of the current pixel of the current frame. The first group inputs of the second register block 213, the third register block 214, the fourth register block 215, the fifth register block 216, the sixth register block 217, the seventh register block 218, the eighth register block 219, the ninth register block 220, the tenth register block 221 from the third group input MOD 2 receives the brightness value of the current pixel of the previous frame. The second group inputs of the first register block 212, the second register block 213, the third register block 214, the fourth register block 215, the fifth register block 216, the sixth register block 217, the seventh register block 218, the eighth register block 219, the ninth register block 220, tenth register block 221 receives the values of j from the group output of the fourth counter 24. At the third group inputs of the first register block 212, the second register block 213, the third register block 214, the fourth register block 215, the register unit 216 of the fifth, sixth register unit 217, the register unit 218 of the seventh, eighth register unit 219, the register unit 220 of the ninth, tenth register unit 221 receives the values of i from the group output of the third counter 23.

На групповом выходе первого регистрового блока 212 формируются элементы матрицы В(k) в соответствии с формулой (1) и поступают на первые групповые входы первого суммирующего блока 222, второго суммирующего блока 223, третьего суммирующего блока 224, четвертого суммирующего блока 225, пятого суммирующего блок 226, шестого суммирующего блока 227, седьмого суммирующего блока 228, восьмого суммирующего блока 229, девятого суммирующего блока 230.At the group output of the first register block 212, matrix elements B (k) are formed in accordance with formula (1) and are fed to the first group inputs of the first summing block 222, the second summing block 223, the third summing block 224, the fourth summing block 225, and the fifth summing block 226, a sixth summing block 227, a seventh summing block 228, an eighth summing block 229, a ninth summing block 230.

На групповых выходах второго регистрового блока 213, третьего регистрового блока 214, четвертого регистрового блока 215, пятого регистрового блока 216, шестого регистрового блока 217, седьмого регистрового блока 218, восьмого регистрового блока 219, девятого регистрового блока 220, десятого регистрового блока 221 формируются элементы матрицы В*(k) для каждого из 8 направлений движения в соответствии с формулой (2) и поступают на вторые групповые входы первого суммирующего блока 222, второго суммирующего блока 223, третьего суммирующего блока 224, четвертого суммирующего блока 225, пятого суммирующего блока 226, шестого суммирующего блока 227, седьмого суммирующего блока 228, восьмого суммирующего блока 229, девятого суммирующего блока 230.At the group outputs of the second register block 213, the third register block 214, the fourth register block 215, the fifth register block 216, the sixth register block 217, the seventh register block 218, the eighth register block 219, the ninth register block 220, the tenth register block 221, matrix elements are formed B * (k) for each of eight directions of movement in accordance with formula (2) and fed to the second inputs of the first group of the summing unit 222, a second summing block 223, a third summing unit 224, chetvertog Adder block 225, the summing unit 226 of the fifth, sixth summing junction 227, summing unit 228 of the seventh, eighth summing unit 229, the ninth summing block 230.

На групповых выходах первого суммирующего блока 222, второго суммирующего блока 223, третьего суммирующего блока 224, четвертого суммирующего блока 225, пятого суммирующего блока 226, шестого суммирующего блока 227, седьмого суммирующего блока 228, восьмого суммирующего блока 229, девятого суммирующего блока 230 формируются элементы матрицы В*(k-1) в соответствии с формулой (3).At the group outputs of the first summing block 222, the second summing block 223, the third summing block 224, the fourth summing block 225, the fifth summing block 226, the sixth summing block 227, the seventh summing block 228, the eighth summing block 229, the ninth summing block 230, matrix elements are formed B * (k-1) in accordance with formula (3).

Значение с группового выхода пятого суммирующего блока 226 поступает на первый групповой вход одиннадцатого компаратора 241, на второй групповой вход которого подается пороговая величина, при сравнении с которой определяется факт наличия движения текущего пикселя текущего кадра. С выхода одиннадцатого компаратора 241 сигнал поступает на третий выход МОД 2.The value from the group output of the fifth summing block 226 is fed to the first group input of the eleventh comparator 241, the second group input of which is supplied with a threshold value, when compared with which the fact of the presence of movement of the current pixel of the current frame is determined. From the output of the eleventh comparator 241, the signal is supplied to the third output of MOD 2.

Значения с групповых выходов первого суммирующего блока 222, второго суммирующего блока 223, третьего суммирующего блока 224, четвертого суммирующего блока 225, шестого суммирующего блока 227, седьмого суммирующего блока 228, восьмого суммирующего блока 229, девятого суммирующего блока 230 поступают на соответствующие групповые входы блока определения минимума 231 и на первые групповые входы третьего компаратора 233, четвертого компаратора 234, пятого компаратора 235, шестого компаратора 236, седьмого компаратора 237, восьмого компаратора 238, девятого компаратора 239, десятого компаратора 240. На вторые групповые входы третьего компаратора 233, четвертого компаратора 234, пятого компаратора 235, шестого компаратора 236, седьмого компаратора 237, восьмого компаратора 238, девятого компаратора 239, десятого компаратора 240 поступает величина с группового выхода блока определения минимума 231.The values from the group outputs of the first summing block 222, the second summing block 223, the third summing block 224, the fourth summing block 225, the sixth summing block 227, the seventh summing block 228, the eighth summing block 229, and the ninth summing block 230 go to the corresponding group inputs of the determining block minimum 231 and to the first group inputs of the third comparator 233, fourth comparator 234, fifth comparator 235, sixth comparator 236, seventh comparator 237, eighth comparator 238, ninth comp a radiator 239, a tenth comparator 240. The second group inputs of the third comparator 233, the fourth comparator 234, the fifth comparator 235, the sixth comparator 236, the seventh comparator 237, the eighth comparator 238, the ninth comparator 239, and the tenth comparator 240 receive the value from the group output of the minimum determination unit 231.

Таким образом, на выходах третьего компаратора 233, четвертого компаратора 234, пятого компаратора 235, шестого компаратора 236, седьмого компаратора 237, восьмого компаратора 238, девятого компаратора 239, десятого компаратора 240. На вторых групповых входах третьего компаратора 233, четвертого компаратора 234, пятого компаратора 235, шестого компаратора 236, седьмого компаратора 237, восьмого компаратора 238, девятого компаратора 239, десятого компаратора 240 в коде «1 из N» формируются направления движения текущего пикселя текущего кадра, которые подаются на групповой вход шифратора 242. На выходе шифратора 242, который является третьим групповым выходом МОД 2, формируются значения направлений движений в двоичном коде.Thus, at the outputs of the third comparator 233, fourth comparator 234, fifth comparator 235, sixth comparator 236, seventh comparator 237, eighth comparator 238, ninth comparator 239, tenth comparator 240. At the second group inputs of the third comparator 233, fourth comparator 234, fifth comparator 235, sixth comparator 236, seventh comparator 237, eighth comparator 238, ninth comparator 239, tenth comparator 240 in the “1 of N” code, the directions of movement of the current pixel of the current frame are generated, which are fed to g group input of encoder 242. At the output of encoder 242, which is the third group output of MOD 2, the values of the directions of movements in binary code are generated.

С группового выхода первого счетчика 21 координата х текущего пикселя поступает на первый групповой вход четвертого сумматора 245. С группового выхода второго счетчика 22 координата у текущего пикселя поступает на первый групповой вход третьего сумматора 244. На вторые групповые входы третьего сумматора 244 и четвертого сумматора 245, а также на второй групповой вход двенадцатого компаратора 247 поступает константа 2. С групповых выходов третьего сумматора 244 и четвертого сумматора 245 значения координат текущего пикселя (х+2, у+2) поступают на первый и второй групповые входы второго формирователя адреса 246, групповой выход которого является вторым групповым выходом МОД 2.From the group output of the first counter 21, the x coordinate of the current pixel goes to the first group input of the fourth adder 245. From the group output of the second counter 22, the coordinate of the current pixel goes to the first group input of the third adder 244. To the second group inputs of the third adder 244 and the fourth adder 245, and also the second group input of the twelfth comparator 247 receives a constant 2. From the group outputs of the third adder 244 and the fourth adder 245, the coordinates of the current pixel (x + 2, y + 2) go to the first the second and second group inputs of the second shaper address 246, the group output of which is the second group output MOD 2.

С выхода первого компаратора 25 и с выхода второго компаратора 26 сигналы поступают на первый и второй входы элемента И 211, с выхода которого сигнал поступает на первый выход МОД 2. Данный сигнал инкрементирует значение режима устройства компенсации размытости изображения.From the output of the first comparator 25 and from the output of the second comparator 26, the signals are fed to the first and second inputs of the element And 211, the output of which the signal is fed to the first output of MOD 2. This signal increments the mode value of the image blur compensation device.

Каждый из регистровых блоков 212-221 работает следующим образом. Со второго группового входа регистрового блока на первые групповые входы первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89 поступает величина i, с третьего группового входа регистрового блока на третьи групповые входы первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89, третий вход регистрового блока подключен к третьим входа первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89 поступает величина j. Величины i, j определяют координаты текущего пикселя текущего окна обработки 3×3. Координаты точек текущего окна обработки, определяемые первой константой 851, второй константой 852, третьей константой 853, четвертой константой 854, пятой константой 855, шестой константой 856, седьмой константой 857, восьмой константой 858, девятой константой 859, десятой константой 860, одиннадцатой константой 861, двенадцатой константой 862, тринадцатой константой 863, четырнадцатой константой 864, пятнадцатой константой 865, шестнадцатой константой 866, семнадцатой константой 867, восемнадцатой константой 868, подаются на вторые и четвертые групповые входы первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89. На выходах первого компаратора 81, второго компаратора 82, третьего компаратора 83, четвертого компаратора 84, пятого компаратора 85, шестого компаратора 86, седьмого компаратора 87, восьмого компаратора 88, девятого компаратора 89 формируются логические единицы при совпадении значений на их первом, втором групповых входах и третьем, четвертом групповых входах соответственно и поступают на входы первого регистра 810, второго регистра 811, третьего регистра 812, четвертого регистра 813, пятого регистра 814, шестого регистра 815, седьмого регистра 816, восьмого регистра 817, девятого регистра 818, выходы первого регистра 810, второго регистра 811, третьего регистра 812, четвертого регистра 813, шестого регистра 815, седьмого регистра 816, восьмого регистра 817, девятого регистра 818. С первого группового входа регистрового блока на групповые входы первого регистра 810, второго регистра 811, третьего регистра 812, четвертого регистра 813, пятого регистра 814, шестого регистра 815, седьмого регистра 816, восьмого регистра 817, девятого регистра 818, поступает значение яркости текущего пикселя. Регистры предназначены для хранения яркостей пикселей окна обработки 3×3. С группового выхода пятого регистра 814 значение яркости центрального пикселя подается на вторые групповые входы первого сумматора 819, второго сумматора 820, третьего сумматора 821, четвертого сумматора 822, пятого сумматора 823, шестого сумматора 824, седьмого сумматора 825, восьмого сумматора 826. С групповых выходов первого регистра 810, второго регистра 811, третьего регистра 812, четвертого регистра 813, шестого регистра 815, седьмого регистра 816, восьмого регистра 817, девятого регистра 818 значение яркостей периферийных пикселей окна обработки 3×3 поступают на первые групповые входы первого сумматора 819, второго сумматора 820, третьего сумматора 821, четвертого сумматора 822, шестого сумматора 824, седьмого сумматора 825, восьмого сумматора 826, выходы которых являются групповыми выходами регистрового блока. Сумматоры обеспечивают вычитание величины, поступившей на второй групповой вход, из величины, поступившей на первый групповой вход. Таким образом, на выходе регистрового блока формируется матрица В*(k), определяемая формулой (2).Each of the register blocks 212-221 operates as follows. From the second group input of the register block, the value of i comes from the first group inputs of the first comparator 81, second comparator 82, third comparator 83, fourth comparator 84, fifth comparator 85, sixth comparator 86, seventh comparator 87, eighth comparator 88, and ninth comparator 89 the third group input of the register block to the third group inputs of the first comparator 81, the second comparator 82, the third comparator 83, the fourth comparator 84, the fifth comparator 85, the sixth comparator 86, the seventh comparator 87 , the eighth comparator 88, the ninth comparator 89, the third input of the register unit is connected to the third input of the first comparator 81, the second comparator 82, the third comparator 83, the fourth comparator 84, the fifth comparator 85, the sixth comparator 86, the seventh comparator 87, the eighth comparator 88, the ninth comparator 89 receives the value of j. The values i, j determine the coordinates of the current pixel of the current 3 × 3 processing window. The coordinates of the points of the current processing window, defined by the first constant 851, the second constant 852, the third constant 854, the fourth constant 854, the sixth constant 855, the seventh constant 857, the eighth constant 858, the ninth constant 859, the tenth constant 861, 861, one , twelfth constant 862, thirteenth constant 863, fourteenth constant 864, fifteenth constant 865, sixteenth constant 866, seventeenth constant 867, eighteenth constant 868, are fed to the second and fourth group inputs first comparator 81, second comparator 82, third comparator 83, fourth comparator 84, fifth comparator 85, sixth comparator 86, seventh comparator 87, eighth comparator 88, ninth comparator 89. At the outputs of the first comparator 81, second comparator 82, third comparator 83, the fourth comparator 84, the fifth comparator 85, the sixth comparator 86, the seventh comparator 87, the eighth comparator 88, the ninth comparator 89 are formed logical units with the same values on their first, second group inputs and third, fourth volume group inputs, respectively, and enter the inputs of the first register 810, second register 811, third register 812, fourth register 813, fifth register 814, sixth register 815, seventh register 816, eighth register 817, ninth register 818, outputs of the first register 810, second register 811, third register 812, fourth register 813, sixth register 815, seventh register 816, eighth register 817, ninth register 818. From the first group input of the register block to the group inputs of the first register 810, second register 811, third register and 812, the fourth register 813, the fifth register 814, a sixth register 815, the seventh register 816, an eighth register 817, the ninth register 818 receives the brightness value of the current pixel. Registers are designed to store the brightness of the pixels of the processing window 3 × 3. From the group output of the fifth register 814, the brightness value of the central pixel is supplied to the second group inputs of the first adder 819, second adder 820, third adder 821, fourth adder 822, fifth adder 823, sixth adder 824, seventh adder 825, eighth adder 826. From group outputs the first register 810, the second register 811, the third register 812, the fourth register 813, the sixth register 815, the seventh register 816, the eighth register 817, the ninth register 818 the brightness of the peripheral pixels of the processing window 3 × 3 steps t the first inputs of the first adder group 819, second adder 820, a third adder 821, a fourth adder 822, the sixth adder 824, the adder 825 of the seventh, eighth adder 826 whose outputs are the outputs of the register group unit. Adders provide the subtraction of the value received at the second group input from the value received at the first group input. Thus, at the output of the register block, the matrix B * (k) is determined, which is determined by formula (2).

Каждый из суммирующих блоков 222÷230 работает следующим образом. Величины, поступившие на первые групповые входы первого сумматора 91, второго сумматора 92, третьего сумматора 93, четвертого сумматора 94, пятого сумматора 95, шестого сумматора 96, седьмого сумматора 97, восьмого сумматора 98, вычитаются из величин, поступивших на вторые групповые входы этих же сумматоров соответственно. Полученные разности с групповых выходов первого сумматора 91, второго сумматора 92, третьего сумматора 93, четвертого сумматора 94, пятого сумматора 95, шестого сумматора 96, седьмого сумматора 97, восьмого сумматора 98 поступают на соответствующие групповые входы девятого сумматора 99, на выходе которого формируется величина, определяющая величину смещения в каждом из 8 направлений в соответствии с формулой (4).Each of the summing blocks 222 ÷ 230 operates as follows. The values received at the first group inputs of the first adder 91, the second adder 92, the third adder 93, the fourth adder 94, the fifth adder 95, the sixth adder 96, the seventh adder 97, the eighth adder 98 are subtracted from the values received at the second group inputs of the same adders respectively. The differences obtained from the group outputs of the first adder 91, the second adder 92, the third adder 93, the fourth adder 94, the fifth adder 95, the sixth adder 96, the seventh adder 97, and the eighth adder 98 go to the corresponding group inputs of the ninth adder 99, at the output of which the value , which determines the amount of displacement in each of 8 directions in accordance with formula (4).

Модуль определения объектов МОО 3 предназначен для определения объектов, описываемых множеством координат его пикселей в соответствии с формулой (14). Для этого МОО 3 осуществляет последовательный анализ признаков направления движения каждого пикселя, в случае наличия движения поиск смежных с текущим пикселей, имеющих идентичное направление движения и определение количества пикселей каждого объекта.The MOO 3 object definition module 3 is designed to determine objects described by the set of coordinates of its pixels in accordance with formula (14). For this, MOO 3 performs a sequential analysis of the signs of the direction of movement of each pixel, in the case of movement, searches adjacent to the current pixels having the same direction of movement and determines the number of pixels of each object.

МОО 3 работает следующим образом. На первый вход первого элемента И 38, являющийся первым входом МООЗ, поступает тактовый сигнал CLKX. На второй вход первого элемента И 38 с выхода первого триггера 37 поступает сигнал, разрешающий прохождение тактового сигнала CLKX с выхода первого элемента И 38 на первый вход первого счетчика 31. На групповом выходе первый счетчик 31 формирует значение, определяющее координату х текущего обрабатываемого пикселя, которое поступает на первый групповой вход первого формирователя адреса 320 и на первый групповой вход первого компаратора 315. Со второго группового входа МОО 3 на второй групповой вход первого компаратора 315 поступает величина (Х-2). При совпадении значений на своих обоих групповых входах первый компаратор 315 подает сигнал на второй вход элемента ИЛИ 39, с выхода которого сигнал поступает на второй вход первого счетчика 31 и сбрасывает первый счетчик 31 в нулевое состояние. Одновременно с этим с выхода первого компаратора 315 сигнал поступает на первый вход второго счетчика 32, с группового выхода которого сигнал поступает на первый групповой вход второго компаратора 316, на второй групповой вход которого поступает величина (Y-2). При совпадении значений второй компаратор 316 формирует единичный сигнал, поступающий на второй вход второго счетчика 32 и первый вход элемента ИЛИ 39 и далее с его выхода на второй вход первого счетчика 31, тем самым сбрасывая первый счетчик 31 и второй счетчик 32 в нулевое состояние. Таким образом, на групповом выходе первого счетчика 31 последовательно формируется координата х текущего обрабатываемого пикселя, принимающая значения от 1 до (Х-2); на выходе второго счетчика 32 последовательно формируется координата у текущего обрабатываемого пикселя, принимающая значения от 1 значения до (Y-2).MOO 3 works as follows. At the first input of the first element And 38, which is the first input MOOZ, receives a clock signal CLKX. A signal is received at the second input of the first And 38 element from the output of the first trigger 37, allowing the clock signal CLKX to pass from the output of the first And 38 element to the first input of the first counter 31. At the group output, the first counter 31 generates a value that determines the x coordinate of the current processed pixel, which arrives at the first group input of the first address shaper 320 and at the first group input of the first comparator 315. From the second group input MOO 3 the value (X-2) is supplied to the second group input of the first comparator 315. If the values coincide on both of their group inputs, the first comparator 315 supplies a signal to the second input of the OR element 39, from the output of which the signal goes to the second input of the first counter 31 and resets the first counter 31 to zero. At the same time, from the output of the first comparator 315, the signal enters the first input of the second counter 32, from the group output of which the signal enters the first group input of the second comparator 316, the second group input of which supplies the value (Y-2). When the values coincide, the second comparator 316 generates a single signal supplied to the second input of the second counter 32 and the first input of the OR element 39 and then from its output to the second input of the first counter 31, thereby resetting the first counter 31 and the second counter 32 to zero. Thus, at the group output of the first counter 31, the x coordinate of the current processed pixel is successively generated, taking values from 1 to (X-2); at the output of the second counter 32, a coordinate is formed sequentially at the current processed pixel, taking values from 1 value to (Y-2).

На второй групповой вход первого формирователя адреса 320 поступает величина Y с группового выхода второго счетчика 32. На выходе первого формирователя адреса 320 формируется адрес текущего пикселя и поступает на первый групповой вход первого мультиплексора 322.At the second group input of the first shaper address 320, the value Y is received from the group output of the second counter 32. At the output of the first shaper address 320, the address of the current pixel is generated and goes to the first group input of the first multiplexer 322.

С выхода первого компаратора 315 и с выхода второго компаратора 316 сигналы поступают на первый и второй входы элемента И 321, с выхода которого сигнал поступает на первый выход МОО 3. Данный сигнал инкрементирует значение режима устройства компенсации размытости изображения.From the output of the first comparator 315 and from the output of the second comparator 316, the signals are fed to the first and second inputs of the And 321 element, the output of which the signal is fed to the first output of MOO 3. This signal increments the mode value of the image blur compensation device.

С выхода первого триггера 37 сигнал через первый инвертор 323 поступает на вход первого мультиплексора 322 и на вход первого регистра 324. На групповой вход первого регистра 324 поступает значение индекса направления движения текущего пикселя и при единичном уровне на его входе запоминается в данном регистре и выдается на групповой выход первого регистра 324. Групповой вход первого регистра 324 является первым групповым входом МОО 3. С группового выхода первого регистра 324 значение индекса направления движения текущего пикселя поступает на первый групповой вход третьего компаратора 325, на второй групповой вход которого подана константа 0. С выхода третьего компаратора 325, являющегося инверсным выходом, сигнал поступает на первый вход третьего элемента И 327. С выхода четвертого компаратора 328, являющегося инверсным выходом, на второй вход третьего элемента И 327 поступает сигнал, уведомляющий о том, что текущий пиксель уже ранее обработан/не обработан. На первый вход четвертого компаратора 328 с входа/выхода ОЗУ 71 поступает признак обработки пикселя, а на его второй вход подается константа 1. С выхода третьего элемента И 327 сигнал, единичное состояние которого запрещает переход к обработке следующего пикселя, поступает на первый вход первого триггера 37, сбрасывающий данный триггер в нулевое состояние.From the output of the first trigger 37, the signal through the first inverter 323 is fed to the input of the first multiplexer 322 and to the input of the first register 324. The group input of the first register 324 receives the value of the index of the direction of movement of the current pixel and is stored at this input at a unit level and is output to group output of the first register 324. The group input of the first register 324 is the first group input of MOO 3. From the group output of the first register 324 the value of the index of the direction of movement of the current pixel goes to the first the group input of the third comparator 325, to the second group input of which a constant 0 is applied. From the output of the third comparator 325, which is an inverse output, the signal goes to the first input of the third element And 327. From the output of the fourth comparator 328, which is an inverse output, to the second input of the third element And 327, a signal is received notifying that the current pixel has already been processed / not processed. At the first input of the fourth comparator 328, from the input / output of the RAM 71, a pixel processing flag is received, and a constant 1 is supplied to its second input. From the output of the third element And 327, a signal whose single state prohibits the transition to processing the next pixel is sent to the first input of the first trigger 37, resetting this trigger to zero.

При нулевом состоянии выхода третьего элемента И 327 первый счетчик 31 и второй счетчик 32 формируют на своих выходах управляющие сигналы для обработки следующего пикселя, а при единичном состоянии выхода третьего элемента И 327 производится поиск пикселя, свойства которого удовлетворяют условию из формулы (14). Для этого на вход третьего счетчика 33 поступает сигнал CLKX6, инкрементирующий значение счетчика, на выходе которого формируются значения i от 0 до 2. С выхода третьего счетчика 33 сигнал поступает на вход четвертого счетчика 34, инкрементирующий значение счетчика, на выходе которого формируются значения j от 0 до 1. С выхода третьего счетчика 33 сигнал поступает также на первый групповой вход первого сумматора 310, на второй групповой вход которого подана константа 1. На групповом выходе первого сумматора 310 формируются значения (i-1). Значения (i-1,j) определяют координаты текущей анализируемой точки в окрестности точки (х,у) (фиг.1).When the output state of the third AND 327 element is zero, the first counter 31 and the second counter 32 generate control signals at their outputs for processing the next pixel, and when the output state of the third And 327 element is single, the pixel is searched for whose properties satisfy the condition from formula (14). To do this, the input of the third counter 33 receives the signal CLKX6, incrementing the counter value, the output of which values i from 0 to 2 are generated. From the output of the third counter 33, the signal goes to the input of the fourth counter 34, incrementing the counter value, the output of which values j from 0 to 1. From the output of the third counter 33, the signal also enters the first group input of the first adder 310, the constant 1 is supplied to the second group input of which (i-1) is generated at the group output of the first adder 310. The values (i-1, j) determine the coordinates of the current analyzed point in the vicinity of the point (x, y) (figure 1).

С группового выхода первого сумматора 310 информация поступает на первый групповой вход второго сумматора 311, на второй групповой вход которого подается вспомогательная переменная 1 с группового выхода пятого счетчика 35. На третий групповой вход второго сумматора 311 поступает значение х с группового выхода первого счетчика 31. С группового выхода четвертого счетчика 34 значения j поступают на первый групповой вход третьего сумматора 312, на второй групповой вход которого подается вспомогательная переменная m с группового выхода шестого счетчика 36. На третий групповой вход третьего сумматора 312 поступает значение у с группового выхода второго счетчика 32. На групповых выходах второго сумматора 311 и третьего сумматора 312 формируются значения (x+i+1) и (у+j+m) соответственно, определяющие координаты пикселя, используемые при чтении данных из ОЗУ 70 и записи признаков обработки пикселя в ОЗУ 71. С группового выхода третьего счетчика 33 на первые групповые входы пятого компаратора 331, шестого компаратора 332, седьмого компаратора 333, восьмого компаратора 334, девятого компаратора 335, десятого компаратора 336 поступает значение i. На третьи групповые входы пятого компаратора 331, шестого компаратора 332, седьмого компаратора 333, восьмого компаратора 334, девятого компаратора 335, десятого компаратора 336 поступает значение j. На второй групповой вход и на четвертый групповой вход пятого компаратора 331 подается константа 0. На второй групповой вход и на четвертый групповой вход шестого компаратора 332 подаются соответственно константа 1 и константа 0. На второй групповой вход и на четвертый групповой вход седьмого компаратора 333 подаются соответственно константа 2 и константа 0. На второй групповой вход и на четвертый групповой вход восьмого компаратора 334 подаются соответственно константа 0 и константа 1. На второй групповой вход и на четвертый групповой вход девятого компаратора 335 подается константа 1. На второй групповой вход и на четвертый групповой вход десятого компаратора 336 подаются соответственно константа 2 и константа 1. Таким образом, на выходах пятого компаратора 331, шестого компаратора 332, седьмого компаратора 333, восьмого компаратора 334, девятого компаратора 335, десятого компаратора 336 формируется единичный сигнал, разрешающий запись данных и подключенный ко входам второго регистра 337, третьего регистра 338, четвертого регистра 339, пятого регистра 340, шестого регистра 341, седьмого регистра 342 соответственно, на первые групповые входы которых подается код направления перемещения пикселя. Таким образом, после считывания области из 6 пикселей, определяемой координатами (i,j) (относительно координат текущего пикселя (х,у)), на групповых выходах второго регистра 337, третьего регистра 338, четвертого регистра 339, пятого регистра 340, шестого регистра 341, седьмого регистра 342 записаны коды направлений перемещения пикселей текущей анализируемой подобласти, которые подаются на первые групповые входы одиннадцатого компаратора 343, двенадцатого компаратора 344, тринадцатого компаратора 345, четырнадцатого компаратора 346, пятнадцатого компаратора, 347 и шестнадцатого компаратора 348, на вторые групповые входы которых подается значение кода направления перемещения текущего пикселя (х,у). С выхода одиннадцатого компаратора 343 сигнал подается на первый вход четвертого элемента И 361 и на третий вход девятого элемента И 366. С выхода двенадцатого компаратора 344 сигнал подается на первый вход пятого элемента И 362, на второй вход четвертого элемента И 361, на первый вход шестого элемента И 363, на второй вход седьмого элемента И 364, на первый вход восьмого элемента И 365 и на первый вход девятого элемента И 366. С выхода тринадцатого компаратора 345 сигнал подается на второй вход пятого элемента И 362 и пятый вход девятого элемента И 366. С выхода четырнадцатого компаратора 346 сигнал подается на первый вход седьмого элемента И 364 и шестой вход девятого элемента И 366. С выхода пятнадцатого компаратора 347 сигнал подается на второй вход восьмого элемента И 365 и четвертый вход девятого элемента И 366. С выхода шестнадцатого компаратора 348 сигнал подается на второй вход шестого элемента И 363 и второй вход девятого элемента И 366. С выхода пятого элемента И 362 сигнал поступает на третий вход шестого элемента И 363. С выхода шестого элемента И 363 сигнал поступает на третий вход восьмого элемента И 365. С выхода восьмого элемента И 365 сигнал поступает на третий вход седьмого элемента И 364. С выхода седьмого элемента И 362 сигнал поступает на третий вход четвертого элемента И 361. Выходы четвертого элемента И 361, пятого элемента И 362, шестого элемента И 363, седьмого элемента И 364, восьмого элемента И 365, девятого элемента И 366 подключены соответственно к первым входам восьмого регистра 367, девятого регистра 368, десятого регистра 369, одиннадцатого регистра 370, двенадцатого регистра 371, тринадцатого регистра 372, на вторые входы которых поступает сигнал с выхода десятого компаратора 336, обеспечивающий запись данных в регистры, на чьи третьи входы поступает сигнал с выхода пятого компаратора 331, очищающий содержимое данных регистров. Таким образом, на выходах восьмого регистра 367, девятого регистра 368, десятого регистра 369, одиннадцатого регистра 370, двенадцатого регистра 371, тринадцатого регистра 372 формируется результат проверки условий (8)-(12) соответственно.From the group output of the first adder 310, information is supplied to the first group input of the second adder 311, the auxiliary group 1 from the group output of the fifth counter 35 is supplied to the second group input. The x value from the group output of the first counter 31 is received to the third group input of the second adder 31. C the group output of the fourth counter 34, the values of j go to the first group input of the third adder 312, the second group input of which is supplied with an auxiliary variable m from the group output of the sixth counter 36. The third group input of the third adder 312 receives the value of y from the group output of the second counter 32. At the group outputs of the second adder 311 and the third adder 312, the values (x + i + 1) and (y + j + m) are formed, which determine pixel coordinates used when reading data from RAM 70 and writing pixel processing attributes to RAM 71. From the group output of the third counter 33 to the first group inputs of the fifth comparator 331, sixth comparator 332, seventh comparator 333, eighth comparator 334, ninth comparator 335, tenth to comparator 336 receives the value of i. The third group inputs of the fifth comparator 331, the sixth comparator 332, the seventh comparator 333, the eighth comparator 334, the ninth comparator 335, and the tenth comparator 336 receive the value j. The second group input and the fourth group input of the fifth comparator 331 are supplied with a constant 0. The second group input and the fourth group input of the sixth comparator 332 are supplied with the constant 1 and the constant 0. The second group input and the fourth group input of the seventh comparator 333 are respectively fed constant 2 and constant 0. To the second group input and to the fourth group input of the eighth comparator 334, respectively, constant 0 and constant 1. are fed to the second group input and to the fourth group input of girls of this comparator 335, a constant 1 is supplied. A constant 2 and a constant 1 are supplied to the second group input and the fourth group input of the tenth comparator 336, respectively. Thus, the outputs of the fifth comparator 331, sixth comparator 332, seventh comparator 333, eighth comparator 334, ninth comparator 335, of the tenth comparator 336, a single signal is generated that allows data recording and is connected to the inputs of the second register 337, third register 338, fourth register 339, fifth register 340, sixth register 341, seventh register 3 42, respectively, at the first group inputs of which a code for the direction of movement of the pixel is supplied. Thus, after reading a region of 6 pixels defined by the coordinates (i, j) (relative to the coordinates of the current pixel (x, y)), at the group outputs of the second register 337, third register 338, fourth register 339, fifth register 340, sixth register 341, of the seventh register 342, codes of the directions of movement of pixels of the current analyzed subregion are recorded, which are fed to the first group inputs of the eleventh comparator 343, twelfth comparator 344, thirteenth comparator 345, fourteenth comparator 346, fifteenth compara torus, 347 and sixteenth comparator 348, to the second group inputs of which the value of the code of the direction of movement of the current pixel (x, y) is supplied. From the output of the eleventh comparator 343, the signal is fed to the first input of the fourth element And 361 and to the third input of the ninth element And 366. From the output of the twelfth comparator 344, the signal is fed to the first input of the fifth element And 362, to the second input of the fourth element And 361, to the first input of the sixth element And 363, to the second input of the seventh element And 364, to the first input of the eighth element And 365 and to the first input of the ninth element And 366. From the output of the thirteenth comparator 345, the signal is fed to the second input of the fifth element And 362 and the fifth input of the ninth element And 366. From exit fourteen comparator 346, the signal is supplied to the first input of the seventh element And 364 and the sixth input of the ninth element And 366. From the output of the fifteenth comparator 347, the signal is fed to the second input of the eighth element And 365 and the fourth input of the ninth element And 366. From the output of the sixteenth comparator 348, the signal is fed to the second input of the sixth element And 363 and the second input of the ninth element And 366. From the output of the fifth element And 362, the signal goes to the third input of the sixth element And 363. From the output of the sixth element And 363, the signal goes to the third input of the eighth element And 365. From the output of the eighth element And 365, the signal goes to the third input of the seventh element And 364. From the output of the seventh element And 362 the signal goes to the third input of the fourth element And 361. The outputs of the fourth element And 361, the fifth element And 362, the sixth element And 363, the seventh element And 364, the eighth element And 365, the ninth element And 366 are connected respectively to the first inputs of the eighth register 367, the ninth register 368, the tenth register 369, the eleventh register 370, the twelfth register 371, the thirteenth register 372, the second inputs of which receive a signal the output of the tenth comparator 336, which provides data recording in registers, to whose third inputs the signal from the output of the fifth comparator 331, cleans the contents of these registers. Thus, at the outputs of the eighth register 367, ninth register 368, tenth register 369, eleventh register 370, twelfth register 371, thirteenth register 372, the result of checking conditions (8) - (12), respectively, is generated.

В зависимости от условий (8)-(11) производится инкрементирование/декрементирование пятого счетчика 35 или инкрементирование шестого счетчика 36, а при выполнении условия (12) производится переход к проверке, является ли данная группа пикселей объектом. Для этого с выхода восьмого регистра 367 сигнал поступает на второй вход пятого элемента ИЛИ 376 и на первый вход второго элемента ИЛИ 373; с выхода девятого регистра 368 сигнал поступает на первый вход третьего элемента ИЛИ 374 и на второй вход второго элемента ИЛИ 373; выхода десятого регистра 369 сигнал поступает на первый вход четвертого элемента ИЛИ 375 и на третий вход второго элемента ИЛИ 373; выхода одиннадцатого регистра 370 сигнал поступает на первый вход пятого элемента ИЛИ 376 и на четвертый вход второго элемента ИЛИ 373; выхода двенадцатого регистра 371 сигнал поступает на третий вход четвертого элемента ИЛИ 375 и на пятый вход второго элемента ИЛИ 373. В результате на выходе второго элемента ИЛИ 373 при нахождении очередного пикселя, принадлежащего данному объекту, формируется единичное значение сигнала, который подается на первый вход седьмого счетчика 377, хранящего количество точек текущего объекта, и на первый вход восьмого счетчика 378, хранящего общее количество точек во всех найденных объектах. С выхода третьего элемента ИЛИ 374 сигнал, уведомляющий о необходимости увеличения абсциссы пикселя (x+i+1, у+j+m) на 1, подается на первый вход пятого счетчика 35. С выхода четвертого элемента ИЛИ 375 сигнал, уведомляющий о необходимости увеличения ординаты пикселя (x+i+1, у+j+m) на 1, подается на первый вход шестого счетчика 36. С выхода пятого элемента ИЛИ 376 сигнал, уведомляющий о необходимости уменьшения абсциссы пикселя (x+i+1, у+j+m) на 1, подается на второй вход пятого счетчика 35. Пятый счетчик 35 и шестой счетчик 36 сбрасываются в нулевое состояние подачей на их третий и второй входы соответственно сигнала с выхода элемента НЕ 323.Depending on conditions (8) - (11), the fifth counter 35 is incremented / decremented or the sixth counter 36 is incremented, and when condition (12) is fulfilled, it proceeds to check whether this group of pixels is an object. To do this, from the output of the eighth register 367, the signal is supplied to the second input of the fifth OR element 376 and to the first input of the second OR element 373; from the output of the ninth register 368, the signal is supplied to the first input of the third OR element 374 and to the second input of the second OR element 373; the output of the tenth register 369, the signal is supplied to the first input of the fourth element OR 375 and to the third input of the second element OR 373; the output of the eleventh register 370, the signal is supplied to the first input of the fifth element OR 376 and to the fourth input of the second element OR 373; the output of the twelfth register 371, the signal is fed to the third input of the fourth OR element 375 and to the fifth input of the second OR element 373. As a result, at the output of the second OR element 373, when the next pixel belonging to this object is found, a single signal value is generated, which is fed to the first input of the seventh counter 377, which stores the number of points of the current object, and the first input of the eighth counter 378, which stores the total number of points in all found objects. From the output of the third OR element 374, a signal notifying the need to increase the pixel abscissa (x + i + 1, y + j + m) by 1 is fed to the first input of the fifth counter 35. From the output of the fourth OR element 375, a signal notifying the need to increase pixel ordinates (x + i + 1, y + j + m) by 1, is fed to the first input of the sixth counter 36. From the output of the fifth element OR 376, a signal notifying the need to reduce the pixel abscissa (x + i + 1, y + j + m) by 1, is fed to the second input of the fifth counter 35. The fifth counter 35 and the sixth counter 36 are reset to zero by feeding n their third and second inputs, respectively, from the output signal of the NOR 323.

На первый вход девятого счетчика 379 поступает тактовый сигнал CLKY. С группового выхода седьмого счетчика 377 значение количества точек в текущем объекте поступает на групповой вход четырнадцатого регистра 380. С выхода тринадцатого регистра 372 сигнал поступает на второй вход девятого счетчика 379, первый вход десятого элемента И 381 и первый вход десятого счетчика 382. На второй вход десятого элемента И 381 подается сигнал с первого выхода девятого счетчика 379. Сигнал, поступающий с выхода десятого элемента И 381 на вход четырнадцатого регистра 380, разрешает запись данных в регистр. С группового выхода четырнадцатого регистра 380 сигнал поступает на групповой вход буферного элемента 383, с выхода которого он подается на групповой вход-выход второго ОЗУ 72. С группового выхода десятого счетчика 382 номер текущего объекта подается на первый групповой вход второго мультиплексора 384, с группового выхода которого он поступает на групповой вход ОЗУ 72. Таким образом, в ОЗУ 72 записывается количество пикселей текущего объекта. С первого и второго выхода девятого счетчика 379 сигналы поступают на первый и второй входы одиннадцатого элемента И 385, с выхода которого сигнал далее поступает на второй вход двенадцатого элемента И 386. С выхода двенадцатого элемента И 386 сигнал, разрешающий/запрещающий запись данных в второго ОЗУ 72, поступает на второй вход второго ОЗУ 72.The first input of the ninth counter 379 receives a clock signal CLKY. From the group output of the seventh counter 377, the value of the number of points in the current object goes to the group input of the fourteenth register 380. From the output of the thirteenth register 372, the signal goes to the second input of the ninth counter 379, the first input of the tenth element And 381 and the first input of the tenth counter 382. To the second input of the tenth element And 381, a signal is supplied from the first output of the ninth counter 379. The signal from the output of the tenth element And 381 to the input of the fourteenth register 380 allows data to be written to the register. From the group output of the fourteenth register 380, the signal is fed to the group input of the buffer element 383, from the output of which it is fed to the group input-output of the second RAM 72. From the group output of the tenth counter 382, the current object number is fed to the first group input of the second multiplexer 384, from the group output which he arrives at the group input of RAM 72. Thus, in RAM 72 is recorded the number of pixels of the current object. From the first and second outputs of the ninth counter 379, the signals are fed to the first and second inputs of the eleventh element And 385, the output of which the signal is then sent to the second input of the twelfth element And 386. From the output of the twelfth element And 386, a signal allowing / disabling data recording in the second RAM 72, is fed to the second input of the second RAM 72.

На первый групповой вход четвертого сумматора 313 поступает значение 1 с группового выхода пятого счетчика 35; на второй вход четвертого сумматора 313 поступает значение х с группового выхода первого счетчика 31. На первый групповой вход пятого сумматора 314 поступает значение у с группового выхода второго счетчика 32; на второй вход пятого сумматора 314 поступает значение m с группового выхода шестого счетчика 36. С групповых выходов четвертого сумматора 314 и пятого сумматора 315 координаты пикселя (х+,у+m) поступают на первый и второй групповые входы преобразователя данных 319, производящего объединение двух байтов данных в слово. С выхода преобразователя данных 319 данные поступают на групповой вход второго буфера 387, с выхода которого координаты текущего пикселя поступают на групповой вход-выход третьего ОЗУ 73. Адресом записи координат текущего пикселя является текущее значение суммарного количества всех точек объектов, подаваемое с группового выхода восьмого счетчика 378 на первый групповой вход третьего мультиплексора 388, с выхода которого оно поступает на групповой вход третьего ОЗУ 73. На первый групповой вход семнадцатого компаратора 379 поступает значение х с группового выхода первого счетчика 31. На второй групповой вход семнадцатого компаратора 379 поступает значение у с группового выхода второго счетчика 32. На третий вход семнадцатого компаратора 379 подается константа 0. На выходе семнадцатого компаратора 379 формируется единичный сигнал при совпадении значений на всех его входах и подается на второй вход восьмого счетчика 378 и второй вход десятого счетчика 382, сбрасывающий данные счетчики в нулевое состояние.The first group input of the fourth adder 313 receives the value 1 from the group output of the fifth counter 35; the second input of the fourth adder 313 receives the value of x from the group output of the first counter 31. The first group input of the fifth adder 314 receives the value of y from the group output of the second counter 32; the second input of the fifth adder 314 receives the value m from the group output of the sixth counter 36. From the group outputs of the fourth adder 314 and the fifth adder 315, the pixel coordinates (x +, y + m) are sent to the first and second group inputs of the data converter 319, combining the two bytes of data per word. From the output of the data converter 319, the data goes to the group input of the second buffer 387, from the output of which the coordinates of the current pixel go to the group input-output of the third RAM 73. The address of the recording coordinates of the current pixel is the current value of the total number of all points of the objects supplied from the group output of the eighth counter 378 to the first group input of the third multiplexer 388, from the output of which it goes to the group input of the third RAM 73. The value x s comes to the first group input of the seventeenth comparator 379 the group output of the first counter 31. The second group input of the seventeenth comparator 379 receives the value of y from the group output of the second counter 32. The constant 0 is supplied to the third input of the seventeenth comparator 379. A single signal is generated at the output of the seventeenth comparator 379 when the values at all its inputs match and feed to the second input of the eighth counter 378 and the second input of the tenth counter 382, resetting these counters to zero.

Запись в первое ОЗУ 71 производится для каждого обработанного пикселя. Для этого с выхода элемента НЕ сигнал поступает на вход первого ОЗУ 71 и разрешает запись данных в первое ОЗУ 71. Далее этот же сигнал поступает на первый и второй входы третьего буферного элемента 391, с выхода которого сигнал, имеющий единичное значение, подается на вход/выход первого ОЗУ 71. В результате в ОЗУ 71 по соответствующему адресу, сформированному вторым формирователем адреса 318, записывается константа 1, соответствующая признаку обработки пикселя.Writing to the first RAM 71 is performed for each processed pixel. To do this, from the output of the element NOT the signal goes to the input of the first RAM 71 and allows data to be written to the first RAM 71. Next, the same signal goes to the first and second inputs of the third buffer element 391, from the output of which a signal having a unit value is fed to the input / the output of the first RAM 71. As a result, a constant 1 corresponding to the pixel processing attribute is written to the RAM 71 at the corresponding address generated by the second address generator 318.

Разрешающим сигналом для записи данных во второе ОЗУ 72 и третье ОЗУ 73 является сигнал, формируемый на выходе восемнадцатого компаратора 392, на первый групповой вход которого с шестого группового входа MOO 3 поступает значение номера режима работы всего устройства, а на второй вход - константа 2.The enabling signal for writing data to the second RAM 72 and the third RAM 73 is the signal generated at the output of the eighteenth comparator 392, the first group input of which from the sixth group input MOO 3 receives the value of the operating mode number of the entire device, and the second input - constant 2.

Модуль коррекции 4 работает следующим образом. С первого группового входа МК 4 на групповой вход первого регистра 453 поступают значения координаты х текущего обрабатываемого пикселя. С второго группового входа МК 4 на первый групповой вход второго компаратора 456 поступают значения координаты у текущего обрабатываемого пикселя.Correction module 4 operates as follows. From the first group input MK 4 to the group input of the first register 453, the x coordinate values of the current processed pixel are received. From the second group input MK 4 the first group input of the second comparator 456 receives the coordinate values of the current processed pixel.

С третьего входа МК 4 сигнал поступает на вход первого регистра 453. С третьего группового входа МК 4 на групповой вход первого регистра 453 поступает значение количества обнаруженных в кадре объектов. Таким образом, первый регистр 453 хранит значение количества объектов, обнаруженных в кадре, которое подается с его группового выхода на первый групповой вход первого компаратора 454. На второй групповой вход первого компаратора 454 с группового выхода первого счетчика 455 подается номер очередного обрабатываемого объекта. С выхода первого компаратора 454 сигнал, принимающий единичное значение по завершении обработки всех объектов, поступает на второй вход первого счетчика 455 и на первый выход МК 4. Одновременно с этим с группового выхода первого счетчика 455 номер текущего объекта поступает на первый групповой выход МК 4. На третий групповой вход МК 4 поступает значение количества пикселей текущего объекта, которое подается на первый групповой вход второго компаратора 456, на второй групповой вход которого с четвертого группового входа МК 4 поступает пороговое значение, определяющее минимально допустимое количество пикселей в объекте, при котором он не считается помехой. На выходе второго компаратора 456 в случае превышения порога формируется единичное значение, которое подается на вход генератора импульсов 457 и разрешает его работу. Данное значение с выхода второго компаратора 456 подается также на первый вход первого триггера 461 и сбрасывает его в нулевое состояние. На групповой вход генератора импульсов 457 с третьего группового входа МК 4 поступает количество пикселей текущего объекта. Генератор импульсов 457 формирует на своем выходе количество импульсов, совпадающее с количеством пикселей текущего объекта. С выхода генератора импульсов 457 импульсы поступают на первый вход второго элемента И 458, с выхода которого импульсы поступают на первый вход второго счетчика 459. На групповом выходе второго счетчика 459 формируется номер текущего пикселя текущего обрабатываемого объекта, который поступает на второй групповой вход третьего компаратора 460, на первый групповой вход которого с третьего группового входа МК 4 подается общее количество точек текущего объекта. По завершении обработки всех пикселей текущего объекта на выходе третьего компаратора 460 формируется единичный сигнал, поступающий на второй вход первого триггера 461 и устанавливающий его в единичное состояние. На выходе первого триггера 461 формируется единичный сигнал, подаваемый на второй вход первого элемента И 462 и разрешающий прохождение сигналов с его первого входа, подключенного к первому входу МК 4. В результате на выходе первого элемента И 462 формируется импульс, подаваемый на первый вход третьего счетчика 465 и увеличивающий значение количества объектов на единицу. Сигнал с первого входа МК 4 подается также на первый вход третьего элемента И 483, на второй вход которого поступает сигнал с выхода второго триггера 466. С выхода третьего элемента И 483 сигнал подается на второй вход второго элемента И 458.From the third input of MK 4, the signal enters the input of the first register 453. From the third group input of MK 4, the value of the number of objects detected in the frame is sent to the group input of the first register 453. Thus, the first register 453 stores the value of the number of objects detected in the frame, which is supplied from its group output to the first group input of the first comparator 454. The number of the next processed object is fed to the second group input of the first comparator 454 from the group output of the first counter 455. From the output of the first comparator 454, a signal that takes a single value at the end of processing all the objects goes to the second input of the first counter 455 and to the first output of MK 4. At the same time, from the group output of the first counter 455, the number of the current object goes to the first group output of MK 4. The third group input MK 4 receives the value of the number of pixels of the current object, which is fed to the first group input of the second comparator 456, the second group input of which from the fourth group input MK 4 receives a threshold an entity that defines the minimum allowable number of pixels in an object at which it is not considered an interference. At the output of the second comparator 456, in case of exceeding the threshold, a unit value is formed, which is fed to the input of the pulse generator 457 and allows its operation. This value from the output of the second comparator 456 is also fed to the first input of the first trigger 461 and resets it to zero. The group input of the pulse generator 457 from the third group input MK 4 receives the number of pixels of the current object. The pulse generator 457 generates at its output a number of pulses that match the number of pixels of the current object. From the output of the pulse generator 457, the pulses are fed to the first input of the second element And 458, the output of which pulses are fed to the first input of the second counter 459. At the group output of the second counter 459, the number of the current pixel of the current processed object is generated, which goes to the second group input of the third comparator 460 , the first group input of which from the third group input MK 4 serves the total number of points of the current object. Upon completion of the processing of all the pixels of the current object, a single signal is generated at the output of the third comparator 460, which arrives at the second input of the first trigger 461 and sets it to a single state. At the output of the first trigger 461, a single signal is generated, applied to the second input of the first element And 462 and allowing the passage of signals from its first input connected to the first input of MK 4. As a result, the output of the first element And 462 generates a pulse applied to the first input of the third counter 465 and increasing the value of the number of objects per unit. The signal from the first input of MK 4 is also fed to the first input of the third element And 483, the second input of which receives a signal from the output of the second trigger 466. From the output of the third element And 483, the signal is fed to the second input of the second element And 458.

С выхода третьего компаратора 460 сигнал также поступает на второй вход второго счетчика 459 и при единичном значении сигнала сбрасывает второй счетчик 459 в нулевое состояние. Со второго входа МК 4 на первый вход третьего счетчика 465 поступает тактовый сигнал CLKZ. На второй вход третьего счетчика 465 с выхода второго компаратора 456 поступает сигнал, разрешающий инкрементирование третьего счетчика 465. Третий счетчик 465 определяет номер этапа коррекции и принимает значение от 0 до 4.From the output of the third comparator 460, the signal also goes to the second input of the second counter 459 and at a single value of the signal resets the second counter 459 to the zero state. From the second input MK 4 at the first input of the third counter 465 receives a clock signal CLKZ. A signal is received at the second input of the third counter 465 from the output of the second comparator 456, allowing the increment of the third counter 465. The third counter 465 determines the number of the correction step and takes a value from 0 to 4.

Номер текущего этапа коррекции с группового выхода третьего счетчика 465 поступает на групповой вход четвертого компаратора 463, который принимает единичное состояние при нулевом значении номера режима. Сигнал с выхода четвертого компаратора 463 поступает на первый вход второго триггера 466, который данным сигналом переводится в нулевое состояние, тем самым запрещая обработку текущего пикселя текущего объекта. Также данный сигнал поступает на вход второго регистра 467, на групповой вход которого с пятого группового входа модуля МК 4 подается значение яркости текущего пикселя. Это же значение поступает на групповые входы третьего регистра 468 и четвертого регистра 469. Для определения адреса текущего пикселя значение номера режима с группового выхода третьего счетчика 465 поступает на девятый групповой вход мультиплексора 470. С шестого группового входа МК 4 сигнал поступает на групповой вход преобразователя данных 471, выполняющего функцию разбиения слова на 2 байта, с первого группового выхода которого координата х поступает на первый, третий и четвертый групповые входы мультиплексора 470 и первый вход первого сумматора 472. Со второго группового выхода преобразователя данных 471 значение координаты у поступает на пятый, шестой и восьмой групповые входы мультиплексора 470 и второй групповой вход второго сумматора 473. На второй групповой вход первого сумматора 472 и на первый групповой вход второго сумматора 473 подается третья константа 474, равная 1. С групповых выходов первого сумматора 472 и второго сумматора 473 значения (х+1) и (у+1) соответственно поступают на второй и седьмой групповые входы мультиплексора 470. На первом групповом выходе мультиплексора 470 формируются значения, соответствующие значениям на первом, втором, третьем или четвертом его групповых входах, на втором групповом выходе мультиплексора 470 формируются значения, соответствующие значениям на пятом, шестом, седьмом или восьмом его групповых входах, и определяемые значением на его девятом групповом входе. С первого и второго групповых выходов мультиплексора 470 координаты пикселя поступают на первый и второй вход формирователя адреса 475 соответственно, на выходе которого формируется значение адреса текущего пикселя, подаваемое на второй групповой выход МК 4. На выходах пятого компаратора 464 и шестого компаратора 484 формируются единичные значения для номеров этапов коррекции 1 и 2 соответственно и поступают на входы третьего регистра 468 и четвертого регистра 469 соответственно. На вторые групповые входы четвертого компаратора 463, пятого компаратора 464, шестого компаратора 484 подаются постоянные значения, задаваемые четвертой константой 476, пятой константой 477, четвертой константой 478, равным 0, 1 и 2 соответственно.The number of the current stage of correction from the group output of the third counter 465 goes to the group input of the fourth comparator 463, which takes a single state when the mode number is zero. The signal from the output of the fourth comparator 463 is fed to the first input of the second trigger 466, which this signal is converted to the zero state, thereby prohibiting the processing of the current pixel of the current object. Also, this signal is fed to the input of the second register 467, to the group input of which the brightness value of the current pixel is supplied from the fifth group input of module MK 4. The same value goes to the group inputs of the third register 468 and the fourth register 469. To determine the address of the current pixel, the value of the mode number from the group output of the third counter 465 goes to the ninth group input of the multiplexer 470. From the sixth group input MK 4, the signal goes to the group input of the data converter 471, which performs the function of splitting a word into 2 bytes, from the first group output of which the x coordinate is supplied to the first, third and fourth group inputs of the multiplexer 470 and the first input of the first sum torus 472. From the second group output of the data converter 471, the coordinate y is supplied to the fifth, sixth and eighth group inputs of the multiplexer 470 and the second group input of the second adder 473. The third constant is supplied to the second group input of the first adder 472 and the first group input of the second adder 473. 474, equal to 1. From the group outputs of the first adder 472 and the second adder 473, the values (x + 1) and (y + 1) respectively enter the second and seventh group inputs of 470 multiplexer. At the first group output of 470 multiplexer values corresponding to the values at the first, second, third or fourth of its group inputs are generated, at the second group output of the multiplexer 470 values are generated corresponding to the values at its fifth, sixth, seventh or eighth group inputs and determined by the value at its ninth group input. From the first and second group outputs of the multiplexer 470, the pixel coordinates are sent to the first and second input of the address shaper 475, respectively, at the output of which the value of the current pixel address is supplied to the second group output of MK 4. Single values are generated at the outputs of the fifth comparator 464 and sixth comparator 484 for the numbers of the correction stages 1 and 2, respectively, and go to the inputs of the third register 468 and the fourth register 469, respectively. The second group inputs of the fourth comparator 463, the fifth comparator 464, the sixth comparator 484 are supplied with constant values specified by the fourth constant 476, the fifth constant 477, and the fourth constant 478 equal to 0, 1, and 2, respectively.

Таким образом, на групповых выходах второго регистра 467, третьего регистра 468 и четвертого регистра 469 по завершении трех этапов коррекции сформированы значения яркостей трех пикселей, определяемых координатами (х,у), (х+1,у) и (х,у+1), которые подаются соответственно на первый, второй и третий групповые входы модуля подчеркивания контуров 479, на выходе которого формируется скомпенсированное значение яркости пикселя (х,у) в соответствии с формулой (16), и поступает на групповой вход пятого регистра 480. Пятый регистр 480 по сигналу на его входе, подаваемом с выхода седьмого компаратора 481, принимающего единичное значение при значении 3 на групповом выходе третьего счетчика 462, подаваемом на первый групповой вход седьмого компаратора 481, на чей второй вход подано значение пятой константы 482, равное 3, производит запись информации на своем групповом входе и выдачу данных на третий групповой выход МК 4. Одновременно с этим с выхода седьмого компаратора 481 сигнал поступает на второй вход второго триггера 466, который переводит данный триггер в единичное состояние и разрешает обработку следующего пикселя текущего объекта.Thus, at the group outputs of the second register 467, the third register 468 and the fourth register 469, upon completion of the three stages of correction, brightness values of three pixels are determined, determined by the coordinates (x, y), (x + 1, y) and (x, y + 1 ), which are supplied respectively to the first, second, and third group inputs of the underlining module 479, at the output of which a compensated pixel brightness value (x, y) is formed in accordance with formula (16), and fed to the group input of the fifth register 480. Fifth register 480 by a signal at its input by taken from the output of the seventh comparator 481, which takes a single value with a value of 3 at the group output of the third counter 462, fed to the first group input of the seventh comparator 481, whose second input has a value of the fifth constant 482, equal to 3, records information on its group input and data output to the third group output MK 4. At the same time, from the output of the seventh comparator 481, the signal is fed to the second input of the second trigger 466, which translates this trigger into a single state and allows processing as follows th pixel of the current object.

Модуль подчеркивания контуров (МПК) 479 работает следующим образом. С первого группового входа МПК 479 на первый групповой вход первого сумматора 420 поступает значения яркости пикселя (х+1,y). С второго группового входа МПК 479 на второй групповой вход первого сумматора 420 и первый групповой вход второго сумматора 421 поступает значения яркости пикселя (х,у). С третьего группового входа МПК 479 на второй групповой вход второго сумматора 421 поступает значения яркости пикселя (х,у+1). Первый сумматор 420 на своем групповом выходе формирует значение, равное разности значений на его первом и втором групповых входах. Второй сумматор 421 на своем групповом выходе формирует значение, равное разности значений на его втором и первом групповых входах. С группового выхода первого сумматора 420 значение поступает на первый и второй групповые входы первого умножителя 411. С группового выхода второго сумматора 421 значение поступает на первый и второй групповые входы первого умножителя 412. С групповых выходов первого умножителя 411 и второго умножителя 412 значения поступают на первый и второй групповые входы третьего сумматора 417, с выхода которого значение подается на вход модуля выделения квадратного корня 419. Таким образом, блоки 420, 421, 411, 412, 417, 419 выполняют определение значения градиента в соответствии с формулой (17). С группового выхода модуля выделения квадратного корня 419 значение подается на первый групповой вход третьего умножителя 413, на второй групповой вход которого с четвертого группового входа МПК 479 подается постоянное значение k1, определяющее степень подчеркивания контура. С группового выхода третьего умножителя 413 значение поступает на первый групповой вход четвертого сумматора 422, на второй групповой вход которого подается значение с группового выхода четвертого умножителя 414. На первый групповой вход четвертого умножителя 414 подается яркость пикселя (х,у) со второго группового входа МПК 479. На второй групповой вход четвертого умножителя 414 с пятого группового входа МПК 479 подается постоянное значение k2, определяющее степень подчеркивания контура. На групповом выходе четвертого сумматора 422 формируется исправленное значение яркости пикселя.The module underline contours (IPC) 479 operates as follows. From the first group input of the IPC 479, the pixel brightness (x + 1, y) is supplied to the first group input of the first adder 420. From the second group input of the IPC 479, the brightness of the pixel (x, y) is supplied to the second group input of the first adder 420 and the first group input of the second adder 421. From the third group input of the IPC 479, the pixel brightness (x, y + 1) is supplied to the second group input of the second adder 421. The first adder 420 at its group output generates a value equal to the difference in values at its first and second group inputs. The second adder 421 at its group output generates a value equal to the difference in values at its second and first group inputs. From the group output of the first adder 420, the value goes to the first and second group inputs of the first multiplier 411. From the group output of the second adder 421, the value goes to the first and second group inputs of the first multiplier 412. From the group outputs of the first multiplier 411 and the second multiplier 412, the values go to the first and the second group inputs of the third adder 417, from the output of which the value is supplied to the input of the square root selection module 419. Thus, blocks 420, 421, 411, 412, 417, 419 determine the gradient value in sponds to the formula (17). From the group output of the square root selection module 419, the value is supplied to the first group input of the third multiplier 413, to the second group input of which from the fourth group input of the IPC 479 a constant value k1 is determined, which determines the degree of underlining of the contour. From the group output of the third multiplier 413, the value is supplied to the first group input of the fourth adder 422, the second group input of which is supplied from the group output of the fourth multiplier 414. The pixel brightness (x, y) from the second group input of the IPC is supplied to the first group input of the fourth multiplier 414 479. At the second group input of the fourth multiplier 414 from the fifth group input of the IPC 479, a constant value k2 is determined, which determines the degree of underlining of the contour. At the group output of the fourth adder 422, a corrected pixel brightness value is generated.

Все модули устройства, за исключением датчика изображения, могут быть реализованы в программируемой логической интегральной схеме средней степени интеграции, что обеспечит высокие технико-экономические показатели устройства.All modules of the device, with the exception of the image sensor, can be implemented in a programmable logic integrated circuit of medium degree of integration, which will ensure high technical and economic performance of the device.

Периоды следования тактовых сигналов должны быть связаны следующими соотношениямиThe repetition periods of clock signals should be related by the following relations

- сигналов CLK, CLK/3, CLK/25- signals CLK, CLK / 3, CLK / 25

TCLK=3*TCLK/3,T CLK = 3 * T CLK / 3 ,

TCLK=25*TCLK/25,T CLK = 25 * T CLK / 25 ,

где TCLK, TCLK/3, TCLK/25 - периоды следования тактовых сигналов CLK, CLK/3, CLK/25 соответственно;where T CLK , T CLK / 3 , T CLK / 25 - the repetition periods of the clock signals CLK, CLK / 3, CLK / 25, respectively;

- сигналов CLKX, CLKX6- signals CLKX, CLKX6

TCLKX=6*7CLKX6,T CLKX = 6 * 7 CLKX6 ,

где TCLKX, TCLKX - периоды следования тактовых сигналов CLKX, CLKX6 соответственно.where T CLKX , T CLKX are the repetition periods of clock signals CLKX, CLKX6, respectively.

Периоды следования тактовых сигналов CLK, CLKX, CLKY, CLKW, CLKZ между собой не связаны временными ограничениями и выбираются при реализации устройства компенсации размытости изображения движущихся объектов исходя из конкретной элементной базы.The repetition periods of clock signals CLK, CLKX, CLKY, CLKW, CLKZ are not related to each other by time constraints and are selected when implementing a device for compensating for motion blur in moving objects based on a specific element base.

Изобретение обеспечивает компенсацию размытости изображения движущихся объектов в режиме реального времени и может быть использовано для коррекции искажений изображений в видеодатчиках, выполненных на базе твердотельных матричных фотоприемников различных типов, системах технического зрения, а также в средствах отображения видеоинформации - жидкокристаллических дисплеях.The invention provides compensation for motion blur in moving objects in real time and can be used to correct image distortions in video sensors made on the basis of various types of solid-state matrix photodetectors, technical vision systems, and also in video information display means - liquid crystal displays.

Claims (2)

1. Способ компенсации размытости изображения движущихся объектов, включающий расчет разности между измеренной яркостью пикселей изображения и ранее полученной ее оценкой на основе последовательности предыдущих кадров, обнаружение движения путем сравнения полученной разности с пороговой величиной, отличающийся тем, что дополнительно считывают изображение, определяют направление движения каждого пикселя, объединяют движущиеся в одном направлении смежные пиксели в объект, выполняют подчеркивание контуров движущихся объектов путем сложения их исходного B(k) и градиентного ▽(B(k)) изображений, формируют выходное изображение
Figure 00000020
1. A method of compensating for motion blur of moving objects, including calculating the difference between the measured brightness of the image pixels and its previously obtained estimate based on the sequence of previous frames, detecting the movement by comparing the difference with a threshold value, characterized in that the image is additionally read, the direction of movement of each pixels, combine adjacent pixels moving in one direction into an object, underline the contours of moving objects by dix their original B (k) and gradient ▽ (B (k)) image, an output image is formed
Figure 00000020
Figure 00000021
, где k1, k2 - весовые коэффициенты.
Figure 00000021
where k 1 , k 2 - weighting factors.
2. Устройство для реализации способа по п.1, содержащее датчик изображения, (ДИ), отличающееся тем, что в него введены контроллер, модуль обнаружения движения (МОД), модуль определения объектов (МОО), модуль коррекции (МК), первое ОЗУ, второе ОЗУ, третье ОЗУ, счетчик, элемент ИЛИ, первый компаратор, первый мультиплексор, второй мультиплексор, третий мультиплексор, четвертый мультиплексор, пятый мультиплексор, шестой мультиплексор, седьмой мультиплексор, первый демультиплексор, второй демультиплексор, причем вход ДИ и первый вход контроллера являются тактовыми входами CLK-RW, групповой выход ДИ подключен к первому групповому входу контроллера, второй групповой выход контроллера подключен к первым групповым входам первого мультиплексора и третьего мультиплексора, групповой выход первого мультиплексора подключен к групповому входу первого ОЗУ, групповой вход-выход первого ОЗУ подключен к групповому входу первого демультиплексора и к групповому выходу пятого мультиплексора, первый групповой выход первого демультиплексора подключен к четвертому групповому входу контроллера, групповой вход-выход второго ОЗУ подключен к групповому входу второго демультиплексора и к групповому выходу шестого мультиплексора, третий групповой выход контроллера подключен к системной шине, четвертый групповой выход контроллера подключен к первому групповому входу шестого мультиплексора, первый групповой выход контроллера подключен к первому групповому входу пятого мультиплексора, первый выход контроллера подключен к первому входу второго мультиплексора, выход второго мультиплексора подключен к входу первого ОЗУ, второй выход контроллера подключен к первому входу четвертого мультиплексора, выход которого подключен к входу второго ОЗУ, на второй и третий групповые входы контроллера поступают константы (Х-1) и (Y-1) соответственно, второй вход контроллера и второй вход МОД являются тактовыми входами CLK, третий вход контроллера подключен к выходу первого компаратора, первый групповой вход которого подключен к групповому выходу счетчика и пятому групповому входу МОД, на второй групповой вход первого компаратора подана константа 0, третий выход контроллера подключен к первому входу элемента ИЛИ, первый вход МОД является тактовым входом CLK/25, первый, второй групповые входы МОД предназначены для подачи констант (Х-3) и (Y-3) соответственно, третий групповой вход МОД подключен к групповому выходу второго демультиплексора, четвертый групповой вход МОД подключен ко второму групповому выходу первого демультиплексора, первый групповой выход МОД подключен ко вторым групповым входам первого мультиплексора и третьего мультиплексора, второй групповой выход МОД подключен к второму групповому входу седьмого мультиплексора, третий групповой выход МОД подключен к групповому входу-выходу ОЗУ и первому групповому входу МОО, первый выход МОД подключен к второму входу элемента ИЛИ, второй выход МОД подключен к входу седьмого мультиплексора, третий выход МОД подключен к входу третьего ОЗУ, второй и третий групповые входы МОО предназначены для подачи констант (Х-2) и (Y-2) соответственно, четвертый групповой вход МОО подключен к первому групповому выходу МК, пятый групповой вход МОО подключен к четвертому групповому выходу МК, шестой групповой вход МОО подключен к групповому выходу счетчика, первый, второй и третий входы МОО предназначены для подачи тактовых сигналов CLKX, CLKX6, CLKY соответственно, первый групповой выход МОО подключен к первому групповому входу седьмого мультиплексора, групповой выход которого соединен с групповым входом третьего ОЗУ, второй групповой выход МОО подключен к первому групповому входу МК, третий групповой выход МОО подключен к второму групповому входу МК, четвертый групповой выход МОО подключен к третьему групповому входу МК, выход МОО подключен к третьему входу элемента ИЛИ и к третьему входу МК, четвертый вход элемента ИЛИ подключен к выходу МК, второй групповой выход МК подключен к третьему групповому входу первого мультиплексора, третий групповой выход МК подключен к второму групповому входу пятого мультиплексора, на четвертый групповой вход МК, подается пороговое значение Р, определяющее минимально допустимое количество пикселей в объекте, пятый групповой вход МК подключен к третьему групповому выходу первого демультиплексора, первый и второй входы МК предназначены для подачи тактовых сигналов CLKW и CLKZ соответственно, на второй вход второго мультиплексора подана константа 0, групповой выход счетчика подключен к четвертому групповому входу первого мультиплексора, групповому входу второго мультиплексора, третьему групповому входу третьего мультиплексора, пятому групповому входу четвертого мультиплексора, третьему групповому входу пятого мультиплексора, к второму групповому входу шестого мультиплексора, а также к вторым групповым входам первого демультиплексора и второго демультиплексора, на второй, третий, четвертый входы четвертого мультиплексора подается константа 0, при этом первый мультиплексор обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его четвертом групповом входе, со своего второго группового входа - при значении «1», со своего третьего группового входа - при значении «3», второй мультиплексор обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его третьем групповом входе, со своего второго группового входа - при значении «3», третий мультиплексор обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его третьем групповом входе, со своего второго группового входа - при значении «1», четвертый мультиплексор обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его пятом групповом входе, со своего второго группового входа - при значении «1», со своего третьего группового входа - при значении «2», со своего четвертого группового входа - при значении «3», пятый мультиплексор обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его третьем групповом входе, со своего второго группового входа - при значении «3», шестой мультиплексор обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его втором групповом входе, первый демультиплексор обеспечивает прохождение сигнала со своего группового входа на первый групповой выход при значении «0» на его втором групповом входе, при значении «1» - на свой второй групповой выход, при значении «3» - на свой третий групповой выход, второй демультиплексор обеспечивает прохождение сигнала со своего группового входа на свой групповой выход при значении «1» на его втором групповом входе, седьмой мультиплексор обеспечивает прохождение сигнала со своего первого группового входа на свой групповой выход при значении «0» на его входе, и со второго группового входа - при значении «1».2. The device for implementing the method according to claim 1, containing an image sensor (DI), characterized in that it contains a controller, a motion detection module (MOD), an object detection module (MOO), a correction module (MK), the first RAM , second RAM, third RAM, counter, OR element, first comparator, first multiplexer, second multiplexer, third multiplexer, fourth multiplexer, fifth multiplexer, sixth multiplexer, seventh multiplexer, first demultiplexer, second demultiplexer, and the input of the DI and the first input of the controller These are the CLK-RW clock inputs, the group output of the DI is connected to the first group input of the controller, the second group output of the controller is connected to the first group inputs of the first multiplexer and third multiplexer, the group output of the first multiplexer is connected to the group input of the first RAM, the group input-output of the first RAM is connected to the group input of the first demultiplexer and to the group output of the fifth multiplexer, the first group output of the first demultiplexer is connected to the fourth group input of the controller, gr The main input-output of the second RAM is connected to the group input of the second demultiplexer and to the group output of the sixth multiplexer, the third group output of the controller is connected to the system bus, the fourth group output of the controller is connected to the first group input of the sixth multiplexer, the first group output of the controller is connected to the first group input of the fifth multiplexer, the first output of the controller is connected to the first input of the second multiplexer, the output of the second multiplexer is connected to the input of the first RAM, the second output the controller is connected to the first input of the fourth multiplexer, the output of which is connected to the input of the second RAM, the constants (X-1) and (Y-1) respectively arrive at the second and third group inputs of the controller, the second input of the controller and the second input of the MOD are clock inputs CLK, the third controller input is connected to the output of the first comparator, the first group input of which is connected to the group output of the counter and the fifth group input of the MOD, the constant 0 is applied to the second group input of the first comparator, the third controller output is connected to the first input of the OR element, the first input of the MOD is a clock input CLK / 25, the first, second group inputs of the MOD are designed to supply constants (X-3) and (Y-3), respectively, the third group input of the MOD is connected to the group output of the second demultiplexer, the fourth group input of the MOD is connected to the second group output of the first demultiplexer, the first group output of the MOD is connected to the second group inputs of the first multiplexer and the third multiplexer, the second group output of the MOD is connected to the second group input of the seventh mult Iplexor, the third group output of the MOD is connected to the group input-output of RAM and the first group input of the MOO, the first output of the MOD is connected to the second input of the OR element, the second output of the MOD is connected to the input of the seventh multiplexer, the third output of the MOD is connected to the input of the third RAM, the second and third MOO group inputs are designed to supply constants (X-2) and (Y-2) respectively, the fourth MOO group input is connected to the first MK group output, the fifth MOO group input is connected to the fourth MK group output, the sixth MOO group input is connected it is connected to the group output of the counter, the first, second and third inputs of the MOO are designed to supply clock signals CLKX, CLKX6, CLKY, respectively, the first group output of the MOO is connected to the first group input of the seventh multiplexer, the group output of which is connected to the group input of the third RAM, the second group output The MOO is connected to the first group input of the MK, the third group output of the MOO is connected to the second group input of the MK, the fourth group output of the MOO is connected to the third group input of the MK, the output of the MOO is connected to the third input of OR to the third MK input, the fourth input of the OR element is connected to the MK output, the second group MK output is connected to the third group input of the first multiplexer, the third MK group output is connected to the second group input of the fifth multiplexer, a threshold value is applied to the fourth group input of MK P, which determines the minimum number of pixels in the object, the fifth group input MK is connected to the third group output of the first demultiplexer, the first and second MK inputs are designed to supply a clock signal CLKW and CLKZ, respectively, the constant 0 is applied to the second input of the second multiplexer, the group output of the counter is connected to the fourth group input of the first multiplexer, the group input of the second multiplexer, the third group input of the third multiplexer, the fifth group input of the fourth multiplexer, the third group input of the fifth multiplexer, to the second group input of the sixth multiplexer, as well as to the second group inputs of the first demultiplexer and second demultiplexer, to the second, third, fourth input The fourth multiplexer is supplied with the constant 0, while the first multiplexer provides a signal from its first group input to its group output with a value of “0” at its fourth group input, from its second group input with a value of “1”, from its third group input - with a value of "3", the second multiplexer ensures the passage of a signal from its first group input to its group output with a value of "0" on its third group input, from its second group input - with a value “3”, the third multiplexer provides a signal from its first group input to its group output with a value of “0” at its third group input, from its second group input with a value of “1”, the fourth multiplexer provides a signal from its first group entering your group output with a value of “0” at its fifth group input, from your second group input with a value of “1”, from your third group input with a value of “2”, from your fourth group input with a value of and “3”, the fifth multiplexer provides a signal from its first group input to its group output with a value of “0” at its third group input, from its second group input with a value of “3”, the sixth multiplexer provides a signal from its first group input to its group output with a value of “0” at its second group input, the first demultiplexer provides a signal from its group input to the first group output with a value of “0” at its second group input, pr and a value of “1” to its second group output, with a value of “3” to its third group output, the second demultiplexer provides a signal from its group input to its group output with a value of “1” at its second group input, the seventh multiplexer provides a signal from its first group input to its group output with a value of “0” at its input, and from the second group input with a value of “1”.
RU2006146536/09A 2006-12-27 2006-12-27 Method for blur compensation of moving object image and device for implementation of method RU2337501C2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
RU2006146536/09A RU2337501C2 (en) 2006-12-27 2006-12-27 Method for blur compensation of moving object image and device for implementation of method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
RU2006146536/09A RU2337501C2 (en) 2006-12-27 2006-12-27 Method for blur compensation of moving object image and device for implementation of method

Publications (2)

Publication Number Publication Date
RU2006146536A RU2006146536A (en) 2008-07-10
RU2337501C2 true RU2337501C2 (en) 2008-10-27

Family

ID=40042243

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2006146536/09A RU2337501C2 (en) 2006-12-27 2006-12-27 Method for blur compensation of moving object image and device for implementation of method

Country Status (1)

Country Link
RU (1) RU2337501C2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2469403C2 (en) * 2008-12-18 2012-12-10 Сони Корпорейшн Image processing apparatus, method and program
RU2575980C2 (en) * 2010-12-14 2016-02-27 Томсон Лайсенсинг Method and device for forming images having blurriness caused by object movement

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ШАПИРО Л., СТОКМАН ДЖ. Компьютерное зрение. М.: Бином. Лаборатория знаний, 2006, подписано в печать 04.03.2005 с.с.179-207, 214-219, 386-403, 414-417. ДЭВИД ФОРСАЙТ, ЖАН ПОНС. Компьютерное зрение. Современный подход. - М.: Издательский дом Вильямс, 2004, с.с.263-266. *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2469403C2 (en) * 2008-12-18 2012-12-10 Сони Корпорейшн Image processing apparatus, method and program
RU2575980C2 (en) * 2010-12-14 2016-02-27 Томсон Лайсенсинг Method and device for forming images having blurriness caused by object movement

Also Published As

Publication number Publication date
RU2006146536A (en) 2008-07-10

Similar Documents

Publication Publication Date Title
US9979896B2 (en) Image processing apparatus, image processing method, electronic equipment and program
US9036060B2 (en) Imaging device, image processing method and program for correction of blooming
US7408576B2 (en) Techniques for modifying image field data as a function of radius across the image field
CN102132570B (en) Image signal correcting device, imaging device, image signal correcting method
US7710461B2 (en) Image processing device, image processing method, and image processing program
US20040165084A1 (en) Flicker detecting method and flicker detecting apparatus
US7522199B2 (en) Imaging device with light-shielding region, control method thereof and CMOS image sensor with light-shielding region
CN104065854B (en) A kind of image processing method and a kind of electronic equipment
CN103379288A (en) Image processing device, image processing method, and program
US20110115942A1 (en) Image processing device, imaging apparatus, imaging processing method, and program
KR20090008139A (en) Image pickup apparatus, image processing method, and computer program
JP2007166527A (en) Image data processing circuit and image data processing method
CN104023173A (en) Solid-state imaging device and camera module
Chun et al. Suppressing rolling-shutter distortion of CMOS image sensors by motion vector detection
JPH08331463A (en) Smear correction in ccd image pickup device using active picture element
US8723969B2 (en) Compensating for undesirable camera shakes during video capture
US7652698B2 (en) Shading correction circuit of electronic camera
US20110069204A1 (en) Method and apparatus for image correction
RU2337501C2 (en) Method for blur compensation of moving object image and device for implementation of method
Toczek et al. Scene-based non-uniformity correction: from algorithm to implementation on a smart camera
US7693347B2 (en) Smear correction in a digital camera
JP2007079708A (en) Image processor and processing method
US20140355872A1 (en) Method for determining interpolating direction for color demosaicking
JP2006295874A (en) Signal processing apparatus
US9013626B2 (en) Signal processing circuit of solid-state imaging element, signal processing method of solid-state imaging element, and electronic apparatus

Legal Events

Date Code Title Description
MM4A The patent is invalid due to non-payment of fees

Effective date: 20081228