RU2504840C1 - Automatic photograph retouching method - Google Patents

Automatic photograph retouching method Download PDF

Info

Publication number
RU2504840C1
RU2504840C1 RU2012130659/08A RU2012130659A RU2504840C1 RU 2504840 C1 RU2504840 C1 RU 2504840C1 RU 2012130659/08 A RU2012130659/08 A RU 2012130659/08A RU 2012130659 A RU2012130659 A RU 2012130659A RU 2504840 C1 RU2504840 C1 RU 2504840C1
Authority
RU
Russia
Prior art keywords
images
photograph
matrix
barcode
automatic
Prior art date
Application number
RU2012130659/08A
Other languages
Russian (ru)
Inventor
Анатолий Петрович Калиниченко
Вячеслав Владимирович Лыков
Сергей Михайлович Шойко
Вячеслав Фёдорович Давыдов
Анатолий Владимирович Корольков
Original Assignee
Общество с ограниченной ответственностью "Фирма Фото-Тревел"
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Общество с ограниченной ответственностью "Фирма Фото-Тревел" filed Critical Общество с ограниченной ответственностью "Фирма Фото-Тревел"
Priority to RU2012130659/08A priority Critical patent/RU2504840C1/en
Application granted granted Critical
Publication of RU2504840C1 publication Critical patent/RU2504840C1/en

Links

Images

Abstract

FIELD: information technology.SUBSTANCE: automatic photograph retouching method involves creating a data array from photographs of different themes of classes, creating a database of references therefrom by interactive processing, based on Photoshop CS2, of predefined textures which give a comfortable perception of images of objects on the photographs, constructing a function of a photometric correction signal between the original and reference photographs, determining barcodes of the original photograph and the reference photograph by decoding brightness I(x,y) of matrices of images with the size |m×n| of elements in the matrix of intensities of tonal transitions with dimensions ||k×k|| of elements of the original and reference retouched photographs, algebraic subtraction of the matrix of barcodes while setting a threshold for positive identification of the reference, creating a reference address with barcode extension therefrom, a threshold difference and a photometric correction signal function, automatic search of the reference for the analysed photograph and retouching thereof based on the calculated barcode at the address in a reference database and the photometric correction signal function.EFFECT: automatic search for the reference for a processed photograph by creating code features of each reference located in a reference database, and subsequent automatic photometric correction of the processed photograph on a reference texture mask stored in the reference database.4 dwg

Description

Изобретение относится к информатике и может найти применение в системах сбора, преобразования, переработки информации в различных сферах человеческой деятельности: криминалистике, космонавтике.The invention relates to computer science and can find application in systems for the collection, conversion, processing of information in various fields of human activity: forensics, astronautics.

Дистанционное зондирование Земли из космоса в интересах разведки полезных ископаемых, лесного хозяйства, экологии, мониторинга почвенных покровов осуществляют путем получения цифровых изображений подстилающей поверхности. Селективными признаками объектов на изображениях являются цвет, тон, текстура, топология. Экологический мониторинг осуществляют, как правило, получением спектрозональных снимков на трехслойном фотоносителе с чувствительными слоями R, G, В диапазонов.Remote sensing of the Earth from space in the interests of mineral exploration, forestry, ecology, monitoring of soil cover is carried out by obtaining digital images of the underlying surface. Selective features of objects in the images are color, tone, texture, topology. Environmental monitoring is carried out, as a rule, by obtaining spectrozonal images on a three-layer photocarrier with sensitive layers of R, G, B ranges.

Известен «Способ оценки загрязнения атмосферы», Патент RU №2117286, 1998, A01G 23/00 - аналог. Способ-аналог включает преобразование спектральной яркости изображения I(x,y) в цифровые матрицы |m×n| элементов в G, R участках видимого спектра, поэлементную логическую сортировку пикселей в обоих матрицах в соответствии с алгоритмом: если R>G, то R, а если R<G, то R=Rmax-|k|·G, где k - коэффициент корреляции хроматических коэффициентов r, g, получают результирующую матрицу тех же размеров, вычисляют числовые характеристики электрического сигнала результирующей матрицы: математическое ожидание, дисперсию, огибающую пространственного спектра, рассчитывают гистограмму распределения пикселей по яркости, осуществляют привязку полученного относительного закона распределения к абсолютным значениям индекса состояния атмосферы региона по его значениям и площади контрольных площадок.The well-known "Method for assessing atmospheric pollution", Patent RU No. 2117286, 1998, A01G 23/00 - analogue. The analogue method includes converting the spectral brightness of the image I (x, y) into digital matrices | m × n | elements in the G, R sections of the visible spectrum, elementwise logical sorting of pixels in both matrices in accordance with the algorithm: if R> G, then R, and if R <G, then R = R max - | k | · G, where k - the correlation coefficient of chromatic coefficients r, g, get the resulting matrix of the same size, calculate the numerical characteristics of the electrical signal of the resulting matrix: mathematical expectation, variance, envelope of the spatial spectrum, calculate the histogram of the distribution of pixels by brightness, carry out the binding of the obtained relative Foot distribution law to the absolute values of the state of the atmosphere in the region of the index from its values and Square reference sites.

Недостатком аналога является зависимость коэффициента корреляции хроматических коэффициентов r, g от условий съемки и неадекватность алгоритма логической сортировки пикселей физическому процессу, что искажает итоговую гистограмму распределения пикселей по яркости и точность оценки расчетного параметра.The disadvantage of the analogue is the dependence of the correlation coefficient of chromatic coefficients r, g on the shooting conditions and the inadequacy of the algorithm for logical sorting of pixels to the physical process, which distorts the final histogram of the distribution of pixels by brightness and the accuracy of the estimated parameter estimation.

Ближайшим аналогом заявленного технического решения является способ ретуширования изображений в интерактивном режиме [см, например, П.А.Минько, «Обработка графики в Photoshop GS2, изд. «Эксмо», 2007 г., гл.7. «Настройка изображения», стр.170-186]. В способе ближайшего аналога область ретуширования задают путем ее предварительного выделения, затем осуществляют заполнение выделенной области, выбранным визуально оператором, отдельным оттенком из множества предлагаемых программой Photoshop предустановленных текстур в стандартной палитре цветов BGR или в других палитрах CMYK, Lab, дающих комфортное восприятие образа объекта.The closest analogue of the claimed technical solution is a method of retouching images interactively [see, for example, P.A. Minko, “Processing of Graphics in Photoshop GS2, ed. Eksmo, 2007, chap. 7. “Image Adjustment”, pp. 170-186]. In the closest analogue method, the retouching area is set by pre-selecting it, then the selected area is filled with a visually selected operator, a separate shade from the set of predefined textures offered by Photoshop in the standard BGR color palette or in other CMYK, Lab palettes, giving a comfortable perception of the image of the object.

Недостатками ближайшего аналога можно считать:The disadvantages of the closest analogue can be considered:

- отсутствие кодового признака, позволяющего автоматически выбрать эталонный снимок для обрабатываемого изображения;- the absence of a code feature that allows you to automatically select a reference image for the processed image;

- субъективность комфортного восприятия образа объекта, зависящая от оператора.- the subjectivity of the comfortable perception of the image of the object, depending on the operator.

Задача, решаемая заявленным изобретением, состоит в автоматическом поиске эталона для обрабатываемого снимка путем создания кодовых признаков каждого эталона, находящегося в базе эталонов, и последующей автоматической фотометрической коррекции обрабатываемого снимка по маске текстуры эталона, хранящейся в базе эталонов.The problem solved by the claimed invention is to automatically search for a reference for the processed image by creating code features of each reference located in the reference database, and subsequent automatic photometric correction of the processed image on the mask texture mask stored in the reference database.

Техническое решение задачи достигается тем, что способ автоматического ретуширования снимков включает создание массива данных из снимков различного сюжета и классов, формирование базы эталонов из них посредством обработки «в интерактивном режиме» на основе специализированного программного обеспечения Photoshop CS2, предустановленных текстур, дающих комфортное восприятие образов объектов на снимках, построение функции сигнала фотометрической коррекции между исходным и эталонным снимками, определение «штрих-кодов» исходного снимка и эталона путем перекодировки яркости I(х,у) матриц изображений размером |mxn| элементов в матрицы интенсивностей тональных переходов размерностью ||kxk|| элементов исходного и эталонного ретушированного снимков, алгебраическое вычитание матриц «штрих-кодов» с установлением порога для достоверной идентификации эталона, формирование адреса эталона с расширением из его «штрих-кода», пороговой разности и функции сигнала фотометрической коррекции, автоматический поиск эталона для анализируемого снимка и его ретуширование на основе рассчитанного «штрих-кода» по адресу в базе эталонов и функции сигнала фотометрической коррекции.The technical solution to the problem is achieved by the fact that the method of automatic retouching of images includes creating an array of data from images of various subjects and classes, forming a database of standards from them by processing "in interactive mode" based on specialized software Photoshop CS2, pre-installed textures that give a comfortable perception of images of objects in the pictures, the construction of the photometric correction signal function between the source and reference pictures, the definition of "barcodes" of the original picture and this bosom by recoding the brightness I (x, y) of image matrices of size | mxn | elements in the matrix of intensities of tonal transitions of dimension || kxk || elements of the initial and reference retouched images, algebraic subtraction of “barcode” matrices with a threshold for reliable identification of the standard, the formation of the standard address with the extension of its “bar code”, the threshold difference and the function of the photometric correction signal, automatic search for the standard for the analyzed image and its retouching based on the calculated “barcode” at the address in the base of standards and the function of the photometric correction signal.

Изобретение поясняется чертежами, где:The invention is illustrated by drawings, where:

фиг.1 - функции сигналов фотометрической коррекции:figure 1 - the functions of the signals of photometric correction:

а) гистограммы яркости пикселей текущего 1 и ретушированного 2 снимков;a) histograms of brightness of pixels of the current 1 and retouched 2 images;

б) стандартная (оптимальная) кривая повышения контрастности большинства снимков ближайшего аналога;b) the standard (optimal) curve for increasing the contrast of most pictures of the closest analogue;

фиг.2 - визуализированные образы матриц «штрих-кодов»:figure 2 - visualized images of the matrix of "barcodes":

а) эталонного ретушированного снимка, б) исходного снимка, в) алгебраического вычитания матриц «штрих-кодов»;a) a reference retouched image, b) an initial image, c) algebraic subtraction of the “barcode” matrices;

фиг.3 - функциональная схема устройства, реализующая способ;figure 3 is a functional diagram of a device that implements the method;

фиг.4 - результат автоматического ретуширования снимков:figure 4 - the result of automatic retouching of pictures:

а) анализируемый снимок; б) автоматически ретушированный снимок.a) the analyzed image; b) automatically retouched image.

Техническая сущность способа состоит в следующем.The technical essence of the method is as follows.

Интерактивное улучшение параметров фотоизображений широко применяется в различных фоторедакторах [см., например, П.А.Минько, «Обработка графики в Photoshop CS2, изд. «Эксмо», 2007 г., стр.71-89, стр.145-151]. Однако уровень автоматизации процессов фотокоррекции пока очень низок: человек-фоторедактор вынужден сам подбирать оптимальные параметры преобразований фотоизображений в соответствии со своим художественным вкусом. Автоматизация заключается в написании специальных программ (скриптов и экшенов) на языках, воспринимаемых фоторедакторами, которые могут осуществлять фиксированную последовательность преобразований при запуске соответствующей программы.Interactive photo image enhancement is widely used in various photo editors [see, for example, P.A. Minko, “Graphics Processing in Photoshop CS2, ed. Eksmo, 2007, pp. 71-89, pp. 145-151]. However, the level of automation of photo-correction processes is still very low: the person who is the photo editor is forced to choose the optimal parameters for transforming photo images in accordance with his artistic taste. Automation consists in writing special programs (scripts and actions) in languages perceived by photo editors, which can carry out a fixed sequence of transformations when the corresponding program is launched.

Пока не существует универсальных методов автоматической оптимизации основных параметров фотоснимков, поскольку выбор алгоритмов и параметров такой оптимизации зависит от сюжета фотоизображений. Например, меню общего и избирательного контрастирования снимков с использованием низкочастотной и высокочастотной фильтрации ближайшего аналога представляется галереей, включающей более 80 фильтров (см. ближайший аналог, стр.225-237).While there are no universal methods for automatic optimization of the basic parameters of photographs, since the choice of algorithms and parameters for such optimization depends on the plot of the images. For example, the menu for general and selective contrasting of images using low-pass and high-pass filtering of the closest analogue is represented by a gallery including more than 80 filters (see the closest analogue, pp. 225-237).

Инструментами интерактивного ретуширования снимков ближайшего аналога являются:The tools for interactive retouching of pictures of the closest analogue are:

- коррекция гистограмм распределения пикселей по яркости, команда Histogram, Photoshop CS2, стр.171, иллюстрируемая фиг.1;- correction of histograms of the distribution of pixels by brightness, Histogram command, Photoshop CS2, p.171, illustrated in figure 1;

- повышение контрастности, общее затемнение или осветление изображения, команда Levels, стр.172;- increasing contrast, general dimming or lightening of the image, Levels command, p.172;

- избирательное изменение контрастности с использованием галереи фильтров, команды Curves, группы Adjustment, меню Filter, стр.174, 225-229.- Selective contrast adjustment using the filter gallery, Curves command, Adjustment group, Filter menu, pp. 174, 225-229.

В заявленном способе для автоматического ретуширования снимков используют кодовое преобразование матрицы исходного изображения, функции яркости I(x,y) размерностью |m×n| элементов, в матрицу «штрих-кодов» (матрицу фреймов) размером ||k×k|| элементов, где k - максимальное значение яркости. Матрица фреймов не является обратимым преобразованием исходного изображения, но она несет полную информацию для распознавания сюжета изображения.In the claimed method, for automatic retouching of images, a code conversion of the matrix of the original image, the brightness function I (x, y) of dimension | m × n | elements into a “barcode” matrix (matrix of frames) of size || k × k || elements, where k is the maximum brightness value. The frame matrix is not a reversible transformation of the original image, but it carries complete information for recognizing the plot of the image.

Алгоритм перекодировки включает следующие процедуры:The transcoding algorithm includes the following procedures:

- задают матрицу |k×k| элементов «штрих-кодов», где k - максимальное значение яркости;- define the matrix | k × k | barcode elements, where k is the maximum brightness value;

- выбирают окно фиксированной апертуры размерностью 2 элемента по строке;- choose a fixed aperture window with a dimension of 2 elements per line;

- задают цикл сканирования матрицы в пределах 1≤i≤m; 1≤j≤n, где i - номер строки, j - номер столбца;- set the scan cycle of the matrix within 1≤i≤m; 1≤j≤n, where i is the row number, j is the column number;

- циклически выбирают по два соседних элемента x(i,j) и x(i,j+1) исходной матрицы, и если значение x(i,j)=a, x(i,j+l)=b, то элемент матрицы «штрих-кода» с индексами (а, b) увеличивается на 1;- cyclically select two adjacent elements x (i, j) and x (i, j + 1) of the original matrix, and if the value x (i, j) = a, x (i, j + l) = b, then the element barcode matrices with indices (a, b) are increased by 1;

- отображают элементы матрицы |k×k|, не равные нулю, в виде узлов матрицы «штрих-кода», размеры которых пропорциональны накопленным значениям k-й яркости;- display the elements of the matrix | k × k | that are not equal to zero, in the form of nodes of the "barcode" matrix, the sizes of which are proportional to the accumulated values of the kth brightness;

- вычисляют диагональный элемент матриц «штрих-кодов»- calculate the diagonal element of the matrix of "barcodes"

Перечисленные процедуры, а также алгоритм вычитания матрицы «штрих-кода» текущего изображения из эталона реализуется на основе специализированных программ на языке Турбо-Паскаль.The above procedures, as well as the algorithm for subtracting the “barcode” matrix of the current image from the standard, are implemented on the basis of specialized programs in the Turbo-Pascal language.

Программа получения матриц «штрих-кодов».The program for obtaining matrices of "barcodes".

Figure 00000001
Figure 00000001

Figure 00000002
Figure 00000002

Разность матриц (матрицу разности) можно получить по простому алгоритмуMatrix difference (difference matrix) can be obtained using a simple algorithm

Figure 00000003
Figure 00000003

По результатам выполнения перечисленных выше операций формируют адрес эталона с расширением из его «штрих-кода», пороговой разности и функции сигнала фотометрической коррекции для данного класса и сюжета анализируемых снимков. Процедура реализации автоматического ретуширования рассмотрена в примере конкретной реализации.Based on the results of the above operations, the address of the standard is formed with the extension of its “bar code”, threshold difference and the function of the signal of photometric correction for this class and plot of the analyzed images. The procedure for implementing automatic retouching is considered in the example of a specific implementation.

Пример реализации способа.An example implementation of the method.

Заявленный способ может быть реализован по схеме фиг.3. Функциональная схема устройства фиг.3 содержит флеш-карту 1, набор клиентских цифровых фотоизображений в одном из общеупотребимых форматов (JPG, TIFF, RAW и др.), аппаратно-программную систему сети Интернет 2, реализованный на микропроцессорной базе цифровой конвертер 3, формирующий из цифровых фотоизображений (клиентских или эталонных) специальные матрицы фреймов изображений, ОЗУ 4, содержащее матрицу фреймов клиентских фотоизображений, ПЗУ 5, содержащее эталонные цифровые фотоизображения в одном из общеупотребимых форматов, ПЗУ 6, содержащее массив матриц фреймов эталонных фотоизображений, реализованный на микропроцессорной базе цифровой анализатор-дискриминатор 7, определяющий путем попарного сравнения матриц фреймов для каждого клиентского фотоизображения ближайшее эталонное фотоизображение и меру отличия клиентского фотоизображения от эталонного, реализованный на микропроцессорной базе цифровой преобразователь 8, корректирующий клиентские цифровые фотоизображения с учетом меры отличия каждого клиентского фотоизображения от соответствующего ему эталонного, ОЗУ 9, содержащее скорректированные клиентские цифровые фотоснимки в одном из общеупотребимых форматов. Все элементы устройства реализованы на существующей технической базе, ПЭВМ типа Intel. Предварительно, в ПЗУ 5 устанавливают специализированное программное обеспечение Photoshop QS2 с глобальным доступом задействуемых команд функций сигнала фотометрической коррекции: Histogram, Levels, Curves. В ОЗУ 4 устанавливают специализированную программу расчета матриц «штрих-кодов» снимков.The claimed method can be implemented according to the scheme of figure 3. Functional diagram of the device of Fig. 3 contains a flash card 1, a set of client digital photo images in one of the commonly used formats (JPG, TIFF, RAW, etc.), a hardware-software system of the Internet 2, implemented on a microprocessor base, a digital converter 3, forming digital photo images (client or reference) special matrix of image frames, RAM 4, containing a matrix of frames of client photo images, ROM 5, containing reference digital photo images in one of the commonly used formats, ROM 6, containing m Assist of matrix frames of reference photo images, a digital analyzer-discriminator 7 implemented on a microprocessor base, which determines, by pairwise comparison of frame matrices for each client photo image, the nearest reference photo image and the measure of difference between the client photo image and the reference image, a digital converter 8 implemented on the microprocessor base that corrects client digital images taking into account the differences between each client’s photo image and the corresponding reference image, RAM 9, containing adjusted client digital photographs in one of the commonly used formats. All elements of the device are implemented on the existing technical base, Intel-type PCs. Previously, in ROM 5, specialized Photoshop QS2 software is installed with global access to the involved commands of the photometric correction signal functions: Histogram, Levels, Curves. In RAM 4 install a specialized program for calculating the matrix of "bar codes" of images.

Интенсивности пикселей (0..255) изображения находятся в текстовом файле A1.txt. Значения интенсивностей прочитываются из файла построчно попарно. Пара «соседних» значений интенсивности, деленных нацело на 16, определяет координаты матрицы размером 16х16, названной штрих-кодом. Значением элемента матрицы штрих-кода является целое число, соответствующее количеству горизонтальных пар пикселей изображения с интенсивностями, значения которых совпадают с координатами элемента. Матрица штрих-кода построчно записывается в текстовый файл SCod.txt.The pixel intensities (0..255) of the image are in the A1.txt text file. The intensities are read from the file line by line in pairs. A pair of "neighboring" intensity values, divided entirely by 16, determines the coordinates of a 16x16 matrix, called a barcode. The value of the element of the barcode matrix is an integer corresponding to the number of horizontal pairs of image pixels with intensities whose values coincide with the coordinates of the element. The barcode matrix is written line-by-line to the SCod.txt text file.

Матрица «штрих-кода», полученная по изображению, представленному на фиг.2а.The matrix "barcode" obtained from the image shown in figa.

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 123123 33 170170 1one 00 00 00 00 00 00 00 00 00 00 00 00 22 00 11eleven 00 00 00 00 00 00 00 00 00 00 00 00 00 158158 77 71997199 11511151 720720 00 33 00 00 00 00 00 00 00 00 00 22 1one 10271027 20812081 15081508 1one 1313 00 22 00 00 00 00 1one 00 00 33 1one 638638 13011301 4241642416 21872187 24492449 1313 3232 00 1313 22 00 4four 00 00 1one 00 1one 4four 20322032 38143814 21812181 4four 77 00 1one 1one 00 22 00 00 4four 00 5656 2222 21272127 20392039 4752547525 23972397 189189 1one 112112 2828 00 108108 00 00 1one 00 1010 88 3636 00 21972197 1924419244 28982898 00 3232 88 00 5151 00 00 1one 1one 99 66 3333 33 102102 27682768 5983359833 88 180180 2929th 00 165165 00 00 00 00 00 00 00 00 00 00 4four 1one 4four 00 00 1one 00 00 00 00 1616 1010 30thirty 1one 14fourteen 4four 115115 00 156156 14fourteen 00 221221 00 00 1one 00 5252 15fifteen 11eleven 00 1212 33 22 00 77 1one 00 8282 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1one 00 4949 3737 146146 33 112112 5252 5656 00 7676 103103 00 5600256002

Визуализированный образ матрицы «штрих-кода» исходного снимка (фиг. 2а) иллюстрируется фиг.2б.A visualized image of the matrix "barcode" of the original image (Fig. 2A) is illustrated in fig.2b.

Матрица «штрих-кода», полученная из исходного снимка путем использования команды «Curves» оптимальной фотометрической коррекции.The barcode matrix obtained from the original image by using the Curves optimal photometric correction command.

471471 00 4four 00 5555 1212 88 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4four 00 107107 33 152152 1one 00 00 00 00 00 00 00 00 00 00 00 00 22 00 1010 00 00 00 00 00 00 00 00 00 00 00 5656 00 140140 66 67406740 11211121 718718 00 33 00 00 00 00 00 00 00 1212 00 22 1one 10041004 20482048 14981498 1one 1313 00 22 00 00 00 00 1one 77 00 33 1one 630630 12981298 4240942409 21872187 24492449 1313 3232 00 1313 22 00 4four 00 00 1one 00 1one 4four 20322032 38143814 21812181 4four 77 00 1one 1one 00 22 00 00 4four 00 5656 2222 21272127 20392039 4752547525 23972397 189189 1one 112112 2828 00 108108 00 00 1one 00 1010 88 3636 00 21972197 1924419244 28982898 00 3232 88 00 5151 00 00 1one 1one 99 66 3333 33 102102 27682768 5983359833 88 180180 2929th 00 165165 00 00 00 00 00 00 00 00 00 00 4four 1one 4four 00 00 1one 00 00 00 00 1616 1010 30thirty 1one 14fourteen 4four 115115 00 156156 14fourteen 00 221221 00 00 1one 00 5252 15fifteen 11eleven 00 1212 33 22 00 77 1one 00 8282 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1one 00 4949 3737 146146 33 112112 5252 5656 00 7676 103103 00 5600256002

Визуализированный образ матрицы «штрих-кода» ретушированного снимка иллюстрируется фиг.2а.A visualized image of the matrix of the "bar code" of the retouched image is illustrated in figa.

Для установления «соответствия» исходного изображения эталону осуществляют алгебраическое вычитание матриц с получением разностной матрицы. Меру соответствия выбирают установлением некоторого порога по критерию N<E, где N - принятая норма матрицы разности, например максимальное абсолютное значение, Е - число, установленное экспертом. Очевидно, что для снимков разного класса и сюжетов число (Е) может варьироваться в некоторых пределах и должно устанавливаться экспериментально. Для анализируемого исходного снимка фиг.2а разностная матрица приняла следующий вид.To establish the "correspondence" of the original image to the standard, algebraic subtraction of matrices is performed to obtain a difference matrix. The compliance measure is chosen by setting a certain threshold according to the criterion N <E, where N is the accepted norm of the difference matrix, for example, the maximum absolute value, E is the number set by the expert. Obviously, for pictures of different classes and scenes, the number (E) can vary within certain limits and should be established experimentally. For the analyzed source image of FIG. 2a, the difference matrix took the following form.

-471-471 00 -4-four 00 -55-55 -12-12 -8-8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -4-four 00 1616 00 18eighteen 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1one 00 00 00 00 00 00 00 00 00 00 00 -56-56 00 18eighteen 1one 459459 30thirty 22 00 00 00 00 00 00 00 00 00 -12-12 00 00 00 2323 3333 1010 00 00 00 00 00 00 00 00 00 -7-7 00 00 00 88 33 77 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Визуализируемый образ разностной матрицы «штрих-кодов» иллюстрируется фиг.2в. База данных эталонов может представлять собой реляционную базу данных, поля записей которых состоят из указателя (адрес эталона) в составе матрицы «штрих-кода», классификатора (меры совпадения разностной матрицы) и расширения (команды Curves - функции сигнала фотометрической коррекции).The visualized image of the difference matrix of "barcodes" is illustrated in figv. The database of standards can be a relational database, the fields of records of which consist of a pointer (address of the standard) as part of a “barcode” matrix, a classifier (measure of coincidence of a difference matrix), and extensions (Curves commands — photometric correction signal functions).

Эффективность способа характеризуется возможностью автоматического ретуширования снимков с различным сюжетом с высокой достоверностью идентификации и качеством обработки.The effectiveness of the method is characterized by the ability to automatically retouch images with a different plot with high reliability of identification and quality of processing.

Claims (1)

Способ автоматического ретуширования снимков включает создание массива данных из снимков различного сюжета и классов, формирование базы эталонов из них посредством обработки «в интерактивном режиме» на основе специализированного программного обеспечения Photoshop CS2, предустановленных текстур, дающих комфортное восприятие образов объектов на снимках, построение функции сигнала фотометрической коррекции между исходным и эталонным снимками, определение «штрих-кодов» исходного снимка и эталона путем перекодировки яркости I(x,y) матриц изображений размером |m×n| элементов в матрицы интенсивностей тональных переходов размерностью ||k×k|| элементов исходного и эталонного ретушированного снимков, алгебраическое вычитание матриц «штрих-кодов» с установлением порога для достоверной идентификации эталона, формирование адреса эталона с расширением из его «штрих-кода», пороговой разности и функции сигнала фотометрической коррекции, автоматический поиск эталона для анализируемого снимка и его ретуширование на основе рассчитанного «штрих-кода» по адресу в базе эталонов и функции сигнала фотометрической коррекции. The method of automatic retouching of images includes creating an array of data from images of various subjects and classes, forming a database of standards from them by processing "in interactive mode" based on specialized software Photoshop CS2, predefined textures that provide a comfortable perception of images of objects in images, building a photometric signal function corrections between the source and reference images, the definition of "barcodes" of the original image and the standard by recoding the brightness I (x, y) of the matrices from size expressions | m × n | elements in the matrix of intensities of tonal transitions with dimension || k × k || elements of the initial and reference retouched images, algebraic subtraction of “barcode” matrices with a threshold for reliable identification of the standard, the formation of the standard address with the extension of its “bar code”, the threshold difference and the function of the photometric correction signal, automatic search for the standard for the analyzed image and its retouching based on the calculated “barcode” at the address in the base of standards and the function of the photometric correction signal.
RU2012130659/08A 2012-07-19 2012-07-19 Automatic photograph retouching method RU2504840C1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
RU2012130659/08A RU2504840C1 (en) 2012-07-19 2012-07-19 Automatic photograph retouching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
RU2012130659/08A RU2504840C1 (en) 2012-07-19 2012-07-19 Automatic photograph retouching method

Publications (1)

Publication Number Publication Date
RU2504840C1 true RU2504840C1 (en) 2014-01-20

Family

ID=49948077

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2012130659/08A RU2504840C1 (en) 2012-07-19 2012-07-19 Automatic photograph retouching method

Country Status (1)

Country Link
RU (1) RU2504840C1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372114A (en) * 2018-12-26 2020-07-03 深圳佳力拓科技有限公司 Video display method and device for multi-style display area

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002052050A1 (en) * 2000-12-26 2002-07-04 Nikolai Vladimirovich Zots Method for loparite concentrate processing
US20030112483A1 (en) * 2001-12-18 2003-06-19 Hiroaki Takano Image forming method
US6792160B2 (en) * 2001-07-27 2004-09-14 Hewlett-Packard Development Company, L.P. General purpose image enhancement algorithm which augments the visual perception of detail in digital images
RU2298226C1 (en) * 2005-10-28 2007-04-27 Самсунг Электроникс Ко., Лтд. Method for improving digital images
RU2298223C2 (en) * 2005-04-25 2007-04-27 Самсунг Электроникс Ко., Лтд. System and method for correcting dark tones on digital photographs
RU2367015C1 (en) * 2008-05-12 2009-09-10 Дмитрий Валерьевич Шмунк Method of enhancing digital images
US20100025710A1 (en) * 2008-08-01 2010-02-04 Oki Semiconductor Co., Ltd. Semiconductor device and fabrication method thereof
WO2011147943A1 (en) * 2010-05-27 2011-12-01 Anthropics Technology Limited Applying effects to electronic media files

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002052050A1 (en) * 2000-12-26 2002-07-04 Nikolai Vladimirovich Zots Method for loparite concentrate processing
US6792160B2 (en) * 2001-07-27 2004-09-14 Hewlett-Packard Development Company, L.P. General purpose image enhancement algorithm which augments the visual perception of detail in digital images
US20030112483A1 (en) * 2001-12-18 2003-06-19 Hiroaki Takano Image forming method
RU2298223C2 (en) * 2005-04-25 2007-04-27 Самсунг Электроникс Ко., Лтд. System and method for correcting dark tones on digital photographs
RU2298226C1 (en) * 2005-10-28 2007-04-27 Самсунг Электроникс Ко., Лтд. Method for improving digital images
RU2367015C1 (en) * 2008-05-12 2009-09-10 Дмитрий Валерьевич Шмунк Method of enhancing digital images
US20100025710A1 (en) * 2008-08-01 2010-02-04 Oki Semiconductor Co., Ltd. Semiconductor device and fabrication method thereof
WO2011147943A1 (en) * 2010-05-27 2011-12-01 Anthropics Technology Limited Applying effects to electronic media files

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372114A (en) * 2018-12-26 2020-07-03 深圳佳力拓科技有限公司 Video display method and device for multi-style display area

Similar Documents

Publication Publication Date Title
US20220028126A1 (en) Methods and Systems for Human Imperceptible Computerized Color Transfer
US20190130169A1 (en) Image processing method and device, readable storage medium and electronic device
Li et al. Single image dehazing using the change of detail prior
CN108024107B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN107784669A (en) A kind of method that hot spot extraction and its barycenter determine
CN110348263B (en) Two-dimensional random code image identification and extraction method based on image identification
KR102261532B1 (en) Method and system for image dehazing using single scale image fusion
Varma et al. Black Spot: a platform for automated and rapid estimation of leaf area from scanned images
US20150131902A1 (en) Digital Image Analysis
CN108764321B (en) Image-recognizing method and device, electronic equipment, storage medium
CN109389569B (en) Monitoring video real-time defogging method based on improved DehazeNet
US9591240B1 (en) System and method for generating a dataset for real noise reduction evaluation
Besheer et al. Modified invariant colour model for shadow detection
CN111882555B (en) Deep learning-based netting detection method, device, equipment and storage medium
Zhan et al. Quantitative analysis of shadow effects in high-resolution images of urban areas
US20210374527A1 (en) Information processing apparatus, information processing method, and storage medium
CN107424134B (en) Image processing method, image processing device, computer-readable storage medium and computer equipment
JP4715288B2 (en) Spectral reflectance candidate calculation method, color conversion method, spectral reflectance candidate calculation device, color conversion device, spectral reflectance candidate calculation program, color conversion program
RU2504840C1 (en) Automatic photograph retouching method
JP2009038737A (en) Image processing apparatus
CN112651945A (en) Multi-feature-based multi-exposure image perception quality evaluation method
CN116883303A (en) Infrared and visible light image fusion method based on characteristic difference compensation and fusion
US20020126910A1 (en) Method of calculating noise from multiple digital images utilizing common noise characteristics
CN116310889A (en) Unmanned aerial vehicle environment perception data processing method, control terminal and storage medium
US20220260420A1 (en) Method For Determining A Tooth Colour

Legal Events

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

Effective date: 20140720