Claims (2)
1. Способ повышения качества изображения при фиброэзофагогастродуоденоскопии, включающий совместную цифровую обработку двух кадров, отличающийся тем, что в него введены обнаружение бликов, подсчет количества составляющих их точек, коррекция засвеченной области изображения при помощи медианного фильтра при условии, что количество точек блика невелико, коррекция засвеченной области изображения путем получения еще одного кадра в текущей позиции эндоскопа при уменьшенном значении чувствительности датчика изображения и замены искаженных точек первого изображения расположенными в соответствующих позициях точками второго в противном случае.1. A method for improving image quality during fibroesophagogastroduodenoscopy, including joint digital processing of two frames, characterized in that it includes detection of glare, counting the number of component points, correction of the illuminated image area using a median filter, provided that the number of glare points is small, correction the illuminated area of the image by obtaining another frame at the current position of the endoscope with a reduced value of the sensitivity of the image sensor and replacing the distorted x first image points arranged in the respective positions of the second points otherwise.
2. Устройство для реализации способа по п.1, отличающееся тем, что введены блок ввода изображения, блок вывода восстановленного изображения, блок обработки изображения, блок замены, блок медианной фильтрации, блок вывода восстановленного изображения, блок регистров, первое запоминающее устройство, второе запоминающее устройство, третье запоминающее устройство, четвертое запоминающее устройство, и первый и второй групповые входы и первый и второй групповые входы-выходы блока обработки изображения подключены соответственно ко второму и первому групповым выходам и третьему и второму групповым входам-выходам блока регистров, вход блока обработки изображения подключен к выходу блока ввода изображения, третий и четвертый групповые входы-выходы блока обработки изображения соединены с групповым входом-выходом четвертого запоминающего устройства и с групповым входом-выходом третьего запоминающего устройства соответственно, второй выход блока обработки изображения связан с первым входом блока вывода восстановленного изображения, групповой вход которого соединен с первым групповым выходом первого запоминающего устройства, а групповой выход предназначен для вывода информации, первый вход-выход блока обработки изображения соединен с входом-выходом блока медианной фильтрации, первый и второй групповые входы-выходы которого подключены к первому групповому входу-выходу блока регистров и к первому групповому входу-выходу первого запоминающего устройства соответственно, а групповой вход - к первому групповому выходу третьего запоминающего устройства, второй вход-выход блока обработки изображения связан с входом-выходом блока замены, в котором первый и второй групповые входы подключены к групповому выходу второго запоминающего устройства и ко второму групповому выходу третьего запоминающего устройства соответственно,' а групповой вход-выход соединен со вторым групповым входом-выходом первого запоминающего устройства, третий групповой вход блока обработки изображения связан со вторым групповым выходом первого запоминающего устройства, в свою очередь групповые входы первого запоминающего устройства и второго запоминающего устройства подключены соответственно к первому и второму групповым выходам блока ввода изображения, вход которого подключен к выходу блока регистров, групповой вход блока ввода изображения предназначен для ввода информации от датчика изображения, групповой выход блока контроля чувствительности предназначен для установки значения интенсивности датчика изображения, групповой вход-выход блока контроля чувствительности соединен с четвертым групповым входом-выходом блока регистров, а вход - с первым выходом блока обработки изображения.2. The device for implementing the method according to claim 1, characterized in that an image input unit, a restored image output unit, an image processing unit, a replacement unit, a median filtering unit, a restored image output unit, a register unit, a first storage device, a second storage device are introduced the device, the third storage device, the fourth storage device, and the first and second group inputs and the first and second group inputs and outputs of the image processing unit are connected respectively to the second and the first group outputs and the third and second group inputs-outputs of the register block, the input of the image processing unit is connected to the output of the image input unit, the third and fourth group inputs and outputs of the image processing unit are connected to the group input-output of the fourth storage device and to the group input-output the third storage device, respectively, the second output of the image processing unit is connected to the first input of the output unit of the restored image, the group input of which is connected to the first group output of the first storage device, and the group output is designed to output information, the first input-output of the image processing unit is connected to the input-output of the median filtering unit, the first and second group inputs and outputs of which are connected to the first group input-output of the register block and to the first group input-output of the first storage device, respectively, and group input to the first group output of the third storage device, the second input-output of the image processing unit is associated with input-output of the replacement unit, in which the first and second group inputs are connected to the group output of the second storage device and to the second group output of the third storage device, respectively, and the group input-output is connected to the second group input-output of the first storage device, the third group input the image processing unit is connected to the second group output of the first storage device, in turn, the group inputs of the first storage device and the second storage device connected respectively to the first and second group outputs of the image input unit, the input of which is connected to the output of the register unit, the group input of the image input unit is used to enter information from the image sensor, the group output of the sensitivity control unit is used to set the value of the image sensor intensity, group input-output The sensitivity control unit is connected to the fourth group input-output of the register unit, and the input to the first output of the image processing unit.