RU2535482C2 - Method and apparatus for editing with image optimisation - Google Patents

Method and apparatus for editing with image optimisation Download PDF

Info

Publication number
RU2535482C2
RU2535482C2 RU2012125065/08A RU2012125065A RU2535482C2 RU 2535482 C2 RU2535482 C2 RU 2535482C2 RU 2012125065/08 A RU2012125065/08 A RU 2012125065/08A RU 2012125065 A RU2012125065 A RU 2012125065A RU 2535482 C2 RU2535482 C2 RU 2535482C2
Authority
RU
Russia
Prior art keywords
image
corrected
values
curve
contrast
Prior art date
Application number
RU2012125065/08A
Other languages
Russian (ru)
Other versions
RU2012125065A (en
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 Тенсент Текнолоджи (Шэньчжэнь) Компани Лимитед
Publication of RU2012125065A publication Critical patent/RU2012125065A/en
Application granted granted Critical
Publication of RU2535482C2 publication Critical patent/RU2535482C2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/68Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

FIELD: physics, computer engineering.
SUBSTANCE: invention relates to image editing means. The method includes correcting image contrast, adjusting the image curve with corrected contrast, performing HSV conversion at each point corresponding to the obtained image to obtain converted colour (H), saturation (S) and brightness (V) values; and after weighting the obtained S values, performing RGB conversion with H, V values and weighted S values to obtain an image with corrected saturation.
EFFECT: optimising image quality during editing by obtaining a brighter image colour without changing its hue.
9 cl, 7 dwg

Description

Область техники, к которой относится изобретениеFIELD OF THE INVENTION

Настоящее изобретение относится к области техники обработки изображений, а более конкретно - к способу и устройству для редактирования с оптимизацией изображений.The present invention relates to the field of image processing, and more specifically to a method and apparatus for editing with image optimization.

Уровень техникиState of the art

При возрастающем развитии технологии обработки изображений все больше и больше появляется способов для редактирования с оптимизацией изображений. При редактировании с оптимизацией изображения можно не только повысить качество отображения первоначального изображения, но также можно улучшить в целом визуальный эффект изображения.With the increasing development of image processing technology, more and more ways appear for editing with image optimization. When editing with image optimization, you can not only improve the display quality of the original image, but you can also improve the overall visual effect of the image.

Существующее решение для редактирования с оптимизацией изображения предусматривает способ автоматической коррекции цвета, то есть коррекции сдвига цвета первоначального изображения путем анализа цвета изображения. Например, после выполнения редактирования с оптимизацией изображения со светло-желтым фоном с помощью способа автоматической коррекции цвета фон может стать белым. Но светло-желтый фон может появиться в результате длительного хранения изображения или из-за светло-желтого цвета фона самого изображения, такого как фон, характерный для съемки. Если фон изображения является светло-желтым, то после выполнения редактирования с оптимизацией изображения с помощью способа автоматической коррекции цвета может возникнуть новая проблема, связанная со сдвигом цвета.An existing image optimization editing solution provides a method for automatically correcting color, that is, correcting a color shift of an original image by analyzing an image color. For example, after editing with image optimization with a light yellow background using the automatic color correction method, the background may turn white. But a light yellow background may appear as a result of prolonged storage of the image or because of the light yellow background color of the image itself, such as the background characteristic of shooting. If the background of the image is light yellow, then after performing editing with image optimization using the automatic color correction method, a new problem may arise related to color shift.

В предшествующем уровне техники регулировка цвета объединена с редактированием с оптимизацией изображения, что может приводить к новому сдвигу цвета и, таким образом, изменять оттенки некоторых изображений.In the prior art, color adjustment is combined with editing with image optimization, which can lead to a new color shift and thus change the hue of some images.

Раскрытие изобретенияDisclosure of invention

Для того чтобы улучшить и повысить яркость цвета изображения и избежать изменения оттенка изображения, варианты осуществления настоящего изобретения предусматривают способ и устройство для редактирования с оптимизацией изображения, техническое решение которого представлено ниже.In order to improve and increase the brightness of the color of the image and avoid changing the hue of the image, embodiments of the present invention provide a method and apparatus for editing with image optimization, the technical solution of which is presented below.

В одном аспекте, предложен способ редактирования с оптимизацией изображения, причем способ включает в себя этапы, на которых: регулируют кривую на оптимизируемом изображении для получения изображения с исправленной кривой; выполняют преобразование HSV в каждой точке, соответствующей полученному изображению с исправленной кривой, для получения преобразованных значений цвета (Н), чистоты (S) и яркости (V); и после взвешивания полученного значения S выполняют преобразование RGB со значениями Н, V и взвешенным значением S для получения изображения с исправленной насыщенностью цвета.In one aspect, a method for editing with image optimization is provided, the method comprising the steps of: adjusting a curve in an optimized image to obtain an image with a corrected curve; performing HSV conversion at each point corresponding to the obtained image with the corrected curve, to obtain the converted values of color (H), purity (S) and brightness (V); and after weighing the obtained value of S, RGB conversion is performed with the values of H, V and the weighted value of S to obtain an image with corrected color saturation.

В другом аспекте, предложено устройство редактирования с оптимизацией изображения, включающее в себя: модуль регулировки кривой для регулирования кривой оптимизируемого изображения для получения изображения с исправленной кривой; первый модуль преобразования для выполнения преобразования HSV в каждой точке, соответствующей изображению с исправленной кривой, для получения преобразованных значений цвета (H), чистоты (S) и яркости (V); и второй модуль преобразования для взвешивания полученного значения S и выполнения преобразования RGB со значениями H, V и взвешенным значением S для получения изображения с исправленной насыщенностью цвета.In another aspect, an image optimization editing apparatus is provided, including: a curve adjustment module for adjusting a curve of an optimized image to obtain an image with a corrected curve; a first conversion module for performing HSV conversion at each point corresponding to the image with the corrected curve to obtain the converted color values (H), clarity (S), and brightness (V); and a second conversion module for weighting the obtained value of S and performing the RGB conversion with the values of H, V and the weighted value of S to obtain an image with corrected color saturation.

Полезные результаты технического решения, обеспечиваемые вариантами осуществления настоящего изобретения, заключаются в следующем:Useful results of a technical solution provided by embodiments of the present invention are as follows:

за счет выполнения регулировки кривой и коррекции насыщенности изображения цвет изображения становится ярче и оттенок изображения не изменяется; кроме того, улучшается качество изображения при экспонировании за счет добавления коррекции контраста и, таким образом, качество отображения изображения можно дополнительно оптимизировать.by adjusting the curve and correcting the saturation of the image, the color of the image becomes brighter and the hue of the image does not change; in addition, the image quality during exposure is improved by adding contrast correction, and thus the image display quality can be further optimized.

Краткое описание чертежейBrief Description of the Drawings

Для того чтобы более ясно объяснить техническое решение, предусмотренное вариантами осуществления настоящего изобретения, чертежи, которые используются при описании вариантов осуществления, кратко представлены ниже. Очевидно, что чертежи, описанные ниже, представляют собой некоторые варианты осуществления настоящего изобретения, причем специалисты в данной области техники могут также получить другие чертежи, согласно этим чертежам, предполагая, что они обладают творческими навыками.In order to more clearly explain the technical solution provided by the embodiments of the present invention, the drawings that are used in the description of the embodiments are briefly presented below. It is obvious that the drawings described below represent some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to these drawings, assuming that they have creative skills.

Фиг.1 - схема последовательности операций, иллюстрирующая способ оптимального редактирования изображения, согласно первому варианту осуществления настоящего изобретения;1 is a flowchart illustrating a method for optimally editing an image according to a first embodiment of the present invention;

фиг.2 - схема последовательности операций, иллюстрирующая способ оптимального редактирования изображения, согласно второму варианту осуществления настоящего изобретения;2 is a flowchart illustrating a method for optimally editing an image according to a second embodiment of the present invention;

фиг.3 - блок-схема, иллюстрирующая структуру первого устройства для оптимального редактирования изображения, согласно третьему варианту осуществления настоящего изобретения;3 is a block diagram illustrating the structure of a first device for optimal image editing according to a third embodiment of the present invention;

фиг.4 - блок-схема, иллюстрирующая структуру второго устройства для оптимального редактирования изображения, согласно третьему варианту осуществления настоящего изобретения;4 is a block diagram illustrating a structure of a second device for optimally editing an image according to a third embodiment of the present invention;

фиг.5 - блок-схема, иллюстрирующая структуру третьего устройства для оптимального редактирования изображения, согласно третьему варианту осуществления настоящего изобретения;5 is a block diagram illustrating the structure of a third device for optimally editing an image according to a third embodiment of the present invention;

фиг.6 - блок-схема, иллюстрирующая структуру четвертого устройства для оптимального редактирования изображения, согласно третьему варианту осуществления настоящего изобретения;6 is a block diagram illustrating the structure of a fourth device for optimal image editing according to a third embodiment of the present invention;

фиг.7 - блок-схема, иллюстрирующая структуру пятого устройства для оптимального редактирования изображения, согласно третьему варианту осуществления настоящего изобретения.7 is a block diagram illustrating a structure of a fifth device for optimal image editing according to a third embodiment of the present invention.

Подробное описание изобретенияDETAILED DESCRIPTION OF THE INVENTION

Для того чтобы сделать более ясными задачи, технические решения и преимущества настоящего изобретения, варианты осуществления настоящего изобретения подробно описаны ниже со ссылками на сопроводительные чертежи.In order to clarify the objectives, technical solutions and advantages of the present invention, embodiments of the present invention are described in detail below with reference to the accompanying drawings.

Вариант I осуществленияOption I implementation

Как показано на фиг.1, вариант осуществления предусматривает способ редактирования с оптимизацией изображения. Специфическая процедура способа выполняется следующим образом:As shown in FIG. 1, an embodiment provides an editing method with image optimization. The specific procedure of the method is as follows:

на этапе 101 выполняют регулировку кривой оптимизируемого изображения для получения изображения с исправленной кривой;in step 101, an optimized image curve is adjusted to obtain an image with a corrected curve;

на этапе 102 выполняют преобразование HSV в каждой точке, соответствующей полученному изображению с исправленной кривой, для получения значений цвета H, чистоты S и яркости V после преобразования;in step 102, HSV conversion is performed at each point corresponding to the obtained image with a corrected curve to obtain color values H, purity S, and brightness V after conversion;

на этапе 103, после взвешивания полученного значения S, выполняют преобразование RGB со значениями H, V и взвешенным значением S для получения изображения с исправленной насыщенностью.in step 103, after weighing the obtained value of S, RGB conversion is performed with the values of H, V and the weighted value of S to obtain an image with corrected saturation.

В вышеприведенной процедуре HSV - модель цвета, H - цвет, S - чистота и V - яркость.In the above procedure, HSV is the color model, H is the color, S is the purity, and V is the brightness.

Более того, после регулировки и коррекции насыщенности оптимизируемого изображения, способ, предусмотренный вариантом осуществления, также объединяет коррекцию контраста, таким образом, позволяя дополнительно повысить качество отображения изображения. Вариант осуществления не предусматривает каких-либо специфических ограничений на выбор того, какой использовать вид режима объединения. Режим специфического объединения может представлять собой любую из следующих ситуаций:Moreover, after adjusting and correcting the saturation of the optimized image, the method provided by the embodiment also combines the correction of contrast, thereby allowing an additional improvement in the image display quality. The embodiment does not provide any specific restrictions on the choice of which type of association mode to use. The specific association mode may be any of the following situations:

Ситуация 1. Перед выполнением регулировки кривой оптимизируемого изображения выполняют коррекцию контраста оптимизируемого изображения для получения изображения с исправленным контрастом, соответственно, выполняют регулировку кривой оптимизируемого изображения, которая специально включает в себя выполнение настройки кривой на полученном изображении с исправленным контрастом.Situation 1. Before performing the adjustment of the curve of the optimized image, the contrast correction of the optimized image is performed to obtain an image with corrected contrast; accordingly, the curve of the optimized image is adjusted, which specifically includes performing curve adjustment on the received image with the corrected contrast.

Ситуация 2. По выбору, перед выполнением регулировки кривой оптимизируемого изображения, дополнительно включают этап, на котором выполняют коррекцию контраста оптимизируемого изображения для получения изображения с исправленным контрастом; соответственно, после выполнения преобразования RGB со значениями H, V и взвешенным значением S для получения изображения с исправленной насыщенностью, дополнительно включен этап, на котором накладывают изображение с исправленным контрастом на изображение с исправленной насыщенностью.Situation 2. Optionally, before performing the adjustment of the curve of the optimized image, an additional step is included in which the contrast correction of the optimized image is performed to obtain an image with corrected contrast; accordingly, after performing the RGB conversion with the values of H, V and the weighted value of S to obtain the image with the corrected saturation, an additional step is included in which the image with the corrected contrast is superimposed on the image with the corrected saturation.

Ситуация 3. По выбору, после выполнения преобразования RGB со значениями H, V и взвешенным значением S для получения изображения с исправленной насыщенностью, дополнительно включен этап, на котором выполняют коррекцию контраста оптимизируемого изображения для получения изображения с исправленным контрастом, и накладывают изображение с исправленным контрастом на изображение с исправленной насыщенностью.Situation 3. Optionally, after performing the RGB conversion with the H, V values and the weighted S value to obtain an image with a corrected saturation, an additional step is included in which the contrast correction of the optimized image is performed to obtain an image with a corrected contrast, and an image with a corrected contrast is applied image with corrected saturation.

Ситуация 4. По выбору, после выполнения преобразования RGB со значениями H, V и взвешенным значением S для получения изображения с исправленной насыщенностью, дополнительно включен этап, на котором выполняют коррекцию контраста изображения с исправленной насыщенностью.Situation 4. Optionally, after performing the RGB conversion with the values of H, V and the weighted value of S to obtain an image with a corrected saturation, an additional step is included in which the contrast of the image with the corrected saturation is corrected.

Способ, предусмотренный вариантом осуществления, позволяет получить ярче цвет изображения без изменения оттенка изображения путем выполнения настройки кривой и коррекции насыщенности изображения, которое будут оптимизировать, и дополнительно объединен с коррекцией контраста, при этом способ позволяет повысить качество экспонировании изображения таким образом, чтобы дополнительно оптимизировать качество отображения изображения.The method provided by the embodiment allows to obtain a brighter color of the image without changing the hue of the image by adjusting the curve and adjusting the saturation of the image, which will be optimized, and further combined with the correction of contrast, while the method can improve the quality of exposure of the image so as to further optimize the quality display image.

Вариант II осуществленияOption II implementation

Вариант осуществления предусматривает способ оптимального редактирования изображения. Этот способ объединяет вместе регулировку кривой, коррекцию насыщенности и коррекцию контраста для того, чтобы повысить качество экспонирования изображения, а также цвет оптимизируемого изображения, что позволяет получить ярче цвет изображения без изменения оттенка изображения. Существует много видов режимов для объединения регулировки кривой, коррекции насыщенности и коррекции контраста. Для более легкого объяснения в вариантах осуществления используется режим объединения в качестве примера, в котором сначала выполняют коррекцию контраста изображения, затем выполняют регулировку кривой и коррекцию насыщенности изображения с исправленным контрастом для того, чтобы подробно объяснить способ оптимального редактирования изображения, предусмотренный вариантом осуществления. Как показано на фиг.2, специфическая процедура способа выполняется следующим образом.An embodiment provides a method for optimally editing an image. This method combines curve adjustment, saturation correction and contrast correction in order to improve the exposure quality of the image, as well as the color of the optimized image, which allows you to get a brighter color image without changing the hue of the image. There are many kinds of modes for combining curve adjustment, saturation correction, and contrast correction. For easier explanation, the embodiments use the merge mode as an example in which the image contrast correction is first performed, then the curve adjustment and the saturation correction of the image with the corrected contrast are performed in order to explain in detail the optimal image editing method provided by the embodiment. As shown in FIG. 2, a specific procedure of the method is as follows.

На этапе 201 выполняют коррекцию контраста оптимизируемого изображения для получения изображения с исправленным контрастом. На этом этапе, на котором в качестве примера выполняют коррекцию контраста по 24-битовой карте, 24-битовое изображение представляет собой точечную матрицу с каналом RGB. Каждая точка изображения имеет три значения R, G и В, которые, соответственно, представляют собой значения красной составляющей, зеленой составляющей и синей составляющей в этой точке. Следующие R(i,j), G(i,j), B(i,j) представляют собой, соответственно, значения красной составляющей, зеленой составляющей и синей составляющей в положении (i,j). I(x,y) представляет собой комбинацию составляющих R, G, В в этой точке. Этапы выполнения коррекции контраста оптимизируемого изображения подробно описаны ниже.At 201, contrast correction of the optimized image is performed to obtain an image with corrected contrast. At this stage, in which, by way of example, contrast correction is performed on a 24-bit map, the 24-bit image is a dot matrix with an RGB channel. Each image point has three values of R, G, and B, which respectively represent the values of the red component, the green component, and the blue component at this point. The following R (i, j), G (i, j), B (i, j) are, respectively, the values of the red component, the green component, and the blue component in position (i, j). I (x, y) is a combination of the components R, G, B at this point. The steps for performing contrast correction on the optimized image are described in detail below.

Сначала выполняют сбор статистики со значением RGB в каждой точке I оптимизируемого изображения:First, statistics are collected with the value of RGB at each point I of the optimized image:

RCчетчик [256]; // RCчетчик [256] представляет собой массив с 256 элементами, RCчетчик [0] представляет собой доступ к первому элементу;RC counter [256]; // RC counter [256] represents an array with 256 elements, RC counter [0] represents access to the first element;

GСчетчик [256];G Counter [256];

ВСчетчик [256];VS counter [256];

для (каждой точки изображения)for (each image point)

{{

RCчетчик [RCij)]++; // Статистическое значение RCчетчика [], соответствующее значению R(i,j), увеличивается на единицу;RC counter [RCij)] ++ ; // The statistical value of the RC counter [] corresponding to the value of R (i, j) is increased by one;

GСчетчик [G (i,j)]++;G Counter [G (i, j)] ++;

ВСчетчик [В(i,jj)]++;VS counter [В (i, jj)] ++;

}}

При выполнении сбора статистики в точках значений RGB получают число точек, соответствующее каждому значению значений R, и затем получают значения яркости более темной точки, одинаковой точки и более яркой точки. При конкретной реализации статистические значения R для каждой точки можно сортировать в возрастающем порядке, затем высшее значение 1% R принимают в качестве значения Ilow яркости более темной точки, подобным образом, высшее значение 50% R принимают в качестве значения Imid яркости одинаковой точки, и высшее значение 99% R принимают в качестве значения Ihigh яркости более яркой точки. К тому же, статистические значения R для каждой точки можно сортировать в убывающем порядке, затем высшее значение 1% R принимают в качестве значения Ihigh яркости более яркой точки, подобным образом высшее значение 50% R принимает в качестве значения Imid яркости одинаковой точки, и высшее значение 99% R принимают в качестве значения Ilow яркости более темной точки. Вариант осуществления не ограничивает специфический способ того, как получить эти три значения.When performing statistics collection at the points of the RGB values, the number of points corresponding to each value of the R values is obtained, and then the brightness values of the darker point, the same point, and the brighter point are obtained. In a particular implementation, the statistical values of R for each point can be sorted in ascending order, then the highest value 1% R is taken as the I low value of the brightness of the darker point, similarly, the highest value 50% R is taken as the I mid value of the brightness of the same point, and the highest value of 99% R is taken as the I high value of the brightness of the brighter point. In addition, the statistical values of R for each point can be sorted in descending order, then the highest value of 1% R is taken as the I high value of the brightness of the brighter point, similarly, the highest value of 50% R takes as the value of I mid brightness of the same point, and the highest value of 99% R is taken as the I low value of the brightness of the darker point. An embodiment does not limit a specific method of how to obtain these three values.

Затем, значения Ilow, Imid и Ihigh используются для получения коэффициента коррекции Гамма (Gamma). Вариант осуществления не ограничивает специфический способ тем, как получить этот коэффициент. В конкретной реализации, коэффициент можно получить путем программирования. Пример такого программирования приведен ниже:Then, the I low , I mid and I high values are used to obtain the Gamma correction factor. The embodiment does not limit the specific method to how to obtain this coefficient. In a specific implementation, the coefficient can be obtained by programming. An example of such programming is given below:

if(Ilow<Imid&&Imid<Ihigh)if (I low <I mid && I mid <I high )

{{

Gamma=log (0.5)/log ((Imid-Ilow)/(Ihigh-Ilow));Gamma = log (0.5) / log ((I mid -I low ) / (I high -I low ));

if(Gamma<0.8)if (Gamma <0.8)

{{

Gamma=0.8; // Если значение Gamma меньше чем 0,8, то выбирают значение Gamma, равное 0,8.Gamma = 0.8; // If the Gamma value is less than 0.8, then select a Gamma value of 0.8.

}}

if(Gamma>1.2)if (Gamma> 1.2)

{{

Gamma=1.2; // Если значение Gamma больше чем 1,2, то выбирают значение Gamma, равное 1,2.Gamma = 1.2; // If the Gamma value is greater than 1.2, then select a Gamma value of 1.2.

}}

}}

elseelse

{{

Gamma=1.0f;Gamma = 1.0f;

}}

В приведенной выше программе все значения 0,5, 0,8 и 1,2 представляют собой эмпирические коэффициенты, которые можно настраивать согласно различным критериям оптимизации изображения. Вариант осуществления не ограничивает принятый специфический эмпирический коэффициент и в практических приложениях можно также применять другие эмпирические коэффициенты.In the above program, all values of 0.5, 0.8, and 1.2 are empirical coefficients that can be adjusted according to various image optimization criteria. The embodiment does not limit the accepted specific empirical coefficient, and other empirical coefficients may also be used in practical applications.

После получения коэффициента коррекции в качестве примера выбирают канал R, значение F(x) отображения можно получить для точки, значение R которой равно X, с помощью приведенной ниже программы. Программа для получения значения отображения канала G или В является такой же, как и для получения значения отображения канала R, и таким образом здесь обсуждаться не будет.After obtaining the correction coefficient, the channel R is selected as an example, the display value F (x) can be obtained for a point whose R value is equal to X using the program below. The program for obtaining the display value of the channel G or B is the same as for the display value of the channel R, and thus will not be discussed here.

float v=(X-Ilow);float v = (XI low );

if(v<0)if (v <0)

{{

F(X)=Ilow; // Если X<Ilow, то значение отображения F(X)=Ilow;F (X) = I low ; // If X <I low , then the mapping value F (X) = I low ;

}}

else if(v+Ilow>=Ihigh)else if (v + I low > = I high )

{{

F(X)=Ihigh; // Если X>=Ihigh, то значение отображения F(X)=Ihjgh;F (X) = I high ; // If X> = I high , then the mapping value F (X) = I hjgh ;

}}

elseelse

{{

F(X)=Ilow+(Ihigh-Ilow)*pow(v/(Ihigh-Ilow), Gamma) // Если Ilow≤X≤Ihigh, то значение отображения F(X)=Ilow+(Ihigh-Ilow)*pow(v/(Ihigh-Ilow), Gamma), где pow(v/(Ihigh-Ilow), Gamma) представляет собой v/(Ihigh-Ilow) в степени Gamma, и* представляет собой операцию умножения;F (X) = I low + (I high -I low ) * pow (v / (I high -I low ), Gamma) // If I low ≤X≤I high , then the mapping value F (X) = I low + (I high -I low ) * pow (v / (I high -I low ), Gamma), where pow (v / (I high -I low ), Gamma) represents v / (I high -I low ) to the power of Gamma, and * represents the operation of multiplication;

}}

В каждой точке RGB оптимизируемого изображения изображение с исправленным контрастом можно получить с использованием вышеупомянутой зависимости F(X) отображения для выполнения отображения на значениях RGB.At each RGB point of the optimized image, an image with corrected contrast can be obtained using the aforementioned display dependency F (X) to perform display on the RGB values.

На этапе 202 выполняют настройку кривой изображения с исправленным контрастом для получения изображения со своей настроенной кривой; где настройка кривой представляет собой общий способ для коррекции цифровой картинки. Вариант осуществления не ограничивает применяемый способ специфической настройки. В данном случае настройка кривой описана посредством примера, выполненного по каналу R.At step 202, adjusting the image curve with the corrected contrast is performed to obtain an image with its adjusted curve; where curve adjustment is a common way to correct a digital image. The implementation option does not limit the applied method of specific settings. In this case, the curve adjustment is described using an example performed on channel R.

Интервал R обозначен как [0, 255], функция отображения обозначена y=F(X) с областью определения [0, 255] и интервалом [0, 255]. Выбирая кривую изображения в качестве примера, кривая представляет собой вогнутую функцию в пределах области [0, 127) и включает в себя точку (127, 127), и кривая представляет собой выпуклую функцию в пределах области (127, 255]. В практических приложениях существует много функций отображения, которые можно выбрать для применения, и вариант осуществления не ограничивается принятой специфической функцией отображения. Принимая F(x)=x-1.5*sin(x*2*3.1415926/255) в качестве примера, где * представляет собой операцию умножения, шаг выполнения отображения со значением R из I(ij) с использованием F(x) обозначается как Rresult(i,j)=F(R(i,j)), то отображение подобно тому, которое выполняется на интервале канала R, выполняется по каналам G и В, которые обозначены как Gresult(i,j)=F(G(i,j)) и Bresult(i,j)=F(B(i,j)), таким образом, окончательно получают изображение со своей настроенной кривой. В примере значение [F(x)-x]/x находится в интервале между 0,95 и 1,05.The interval R is denoted as [0, 255], the display function is denoted by y = F (X) with the definition domain [0, 255] and the interval [0, 255]. Selecting an image curve as an example, the curve is a concave function within the region [0, 127) and includes a point (127, 127), and the curve is a convex function within the region (127, 255]. there are many display functions that can be selected for application, and the embodiment is not limited to the adopted specific display function. Taking F (x) = x-1.5 * sin (x * 2 * 3.1415926 / 255) as an example, where * represents the multiplication operation , a step of performing a mapping with a value of R from I (ij) using F (x) is denoted as R result (i, j) = F (R (i, j)), then a mapping similar to that performed on the interval of channel R is performed on channels G and B, which are designated as G result (i, j) = F (G (i, j)) and B result (i, j) = F (B (i, j)), thus, they finally get the image with their adjusted curve. In the example, the value of [F (x) -x] / x is in the range between 0.95 and 1.05.

На этапе 203 выполняют преобразование HSV в каждой точке, соответствующей полученному изображению с исправленной кривой, для получения преобразованных значений цвета H, чистоты S и яркости V.At step 203, HSV conversion is performed at each point corresponding to the obtained image with a corrected curve to obtain the converted values of color H, purity S, and brightness V.

Преобразование HSV по точкам в модели RGB можно реализовать с помощью предшествующего уровня техники, и вариант осуществления не ограничивается специфическим способом его реализации. В практической реализации, преобразование можно реализовать с помощью программирования. Пример такого программирования представлен ниже:Point-to-point HSV conversion in the RGB model can be implemented using the prior art, and the embodiment is not limited to a specific implementation method. In practical implementation, the transformation can be implemented using programming. An example of such programming is presented below:

/**/ **

Преобразуют значение цвета RGB в HSV. Формула преобразованияConvert RGB color value to HSV. Conversion formula

*Адаптируют из http://en.wikipedia.org/wiki/HSV_color_space.* Adapted from http://en.wikipedia.org/wiki/HSV_color_space.

*Предполагают, что r, g и b содержатся в наборе [0, 255], и возвращают h, s и *v в набор [0, 1].* Assume that r, g and b are contained in the set [0, 255], and return h, s and * v to the set [0, 1].

**

*@param Число r Значение красного цвета* @ param Number r Red value

*@param Число g Значение зеленого цвета* @ param Number g Green value

*@param Число b Значение синего цвета* @ param Number b Blue value

*@param Массив Представление HSV* @ param Array HSV Representation

*/* /

Function rgb То HSV(r, g, b) {Function rgb To HSV (r, g, b) {

r=r/255, g=g/255, b=b/255; // Преобразуют RGB в десятичную дробь между 0 and 1;r = r / 255, g = g / 255, b = b / 255; // Convert RGB to decimal between 0 and 1;

var max=Math.max(r, g, b), min=Math.min(r, g, b); // max - максимальное значение среди r, g и b, и min - минимальное значение среди r, g и b;var max = Math.max (r, g, b), min = Math.min (r, g, b); // max is the maximum value among r, g and b, and min is the minimum value among r, g and b;

var h, s, v=max;var h, s, v = max;

var d=max-min;var d = max-min;

s=max==0? 0: d/max; // Если max==0, then the result s is 0, otherwise s=d/max;s = max == 0? 0: d / max; // If max == 0, then the result s is 0, otherwise s = d / max;

if (max==min) { // Если max is equal to the min, then the value of h is 0;if (max == min) {// If max is equal to the min, then the value of h is 0;

h=0; //achromatich is 0; // achromatic

} else { // Otherwise, the formula as below is used in calculation;} else {// Otherwise, the formula as below is used in calculation;

switch (max) {switch (max) {

case r: h=(g-b)/d+(g<b?6:0);break; // Если r равно max, то h=(g-b)/d+(g<b?6:0); где (g<b?6:0) представляет собой то, что если g<b, то результат равен 6, в противном случае результат равен 0;case r: h = (g-b) / d + (g <b? 6: 0); break; // If r is equal to max, then h = (g-b) / d + (g <b? 6: 0); where (g <b? 6: 0) is that if g <b, then the result is 6, otherwise the result is 0;

case g: h=(b-r)/d+2;break; // Если g равно max, то h=(b-r)/d+2;case g: h = (b-r) / d + 2; break; // If g is equal to max, then h = (b-r) / d + 2;

case b: h=(r-g)/d+4;break; // Если b равно max, то b=(r-g)/d+4;case b: h = (r-g) / d + 4; break; // If b is equal to max, then b = (r-g) / d + 4;

}}

h/=6;h / = 6;

}}

return [h, s, v] // Возвращают полученные значения h, s и v;return [h, s, v] // Return the received values h, s and v;

}}

На этапе 204, после взвешивания полученного значения S, выполняют преобразование RGB со значениями H, V и взвешенным значением S для получения изображения с коррекцией насыщенности.At step 204, after weighting the obtained value of S, RGB conversion is performed with the values of H, V and the weighted value of S to obtain an image with saturation correction.

На этом этапе, при взвешивании полученного значения S, специфическое взвешенное значение можно определить в соответствии с практической ситуацией и можно настроить в соответствии с различными критериями оптимизации изображения. Вариант осуществления не ограничивает принятое специфическое взвешенное значение. Этот этап описан здесь, принимая взвешенное значение, равное 1,02, то есть новое взвешенное значение S Snew=1,02S, в качестве примера. В одном примере значение Snew находится в интервале между 1S и 1,05S.At this stage, when weighing the obtained S value, the specific weighted value can be determined in accordance with the practical situation and can be adjusted in accordance with various image optimization criteria. The embodiment does not limit the accepted specific weighted value. This step is described here, taking a weighted value equal to 1.02, that is, a new weighted value S Snew = 1.02S, as an example. In one example, the Snew value is between 1S and 1.05S.

После получения нового взвешенного значения S Snew преобразование RGB выполняют со значениями H, Snew и V, где модель HSV можно преобразовать в модель RGB с использованием предшествующего уровня техники. Вариант осуществления не ограничивается специфическим способом преобразования. В практической реализации, преобразование можно реализовать с помощью программирования. Пример такогоAfter obtaining a new weighted S Snew value, RGB conversion is performed with the values of H, Snew, and V, where the HSV model can be converted to the RGB model using the prior art. An embodiment is not limited to a specific conversion method. In practical implementation, the transformation can be implemented using programming. An example of this

программирования приведен ниже:programming is given below:

/**/ **

Преобразуют значение цвета HSV в GRB. Формула преобразованияConvert the HSV color value to GRB. Conversion formula

*Адаптируют из http://en.wikipedia.org/wiki/HSV_color_space.* Adapted from http://en.wikipedia.org/wiki/HSV_color_space.

*Предполагают, что r, g и b содержатся в наборе [0, 1], и возвращают h, s и *v в набор [0,255].* Assume that r, g and b are contained in the set [0, 1], and return h, s and * v to the set [0,255].

*@param Число h Оттенок* @ param Number h Hue

*@param Число s Насыщенность* @ param s Number Saturation

*@param Число v Значение* @ param Number v Value

*@return Массив Представление GRB* @ return Array GRB View

*/* /

Function hsv То Rgb(h,s,v){Function hsv Then Rgb (h, s, v) {

var r, b, g;var r, b, g;

var i=Math.floor(h*6); // Значение i равно максимальному ближайшему целому числу h*6 (например, максимальное ближайшее целое число для 2.6 равно 3);var i = Math.floor (h * 6); // The value of i is equal to the maximum nearest integer h * 6 (for example, the maximum nearest integer for 2.6 is 3);

var f=h*6-i;var f = h * 6-i;

var p=v*(1-s);var p = v * (1-s);

var q=v*(1-f*s);var q = v * (1-f * s);

var t=v*(1-(1-f)*s);var t = v * (1- (1-f) * s);

switch (f%6){switch (f% 6) {

case 0:r=v, g=t, b=p; break; // После деления на 6, если остаток равен 0, то r=v, g=t, b=p;case 0: r = v, g = t, b = p; break; // After dividing by 6, if the remainder is 0, then r = v, g = t, b = p;

case l:r=q, g=v, b=p; break; // Если остаток равен 1, то r=q, g=v, b=p;case l: r = q, g = v, b = p; break; // If the remainder is 1, then r = q, g = v, b = p;

case 2:r=p, g=v, b=t; break; // Если остаток равен 2, то r=p, g=v, b=t;case 2: r = p, g = v, b = t; break; // If the remainder is 2, then r = p, g = v, b = t;

case 3:r=p, g=q, b=v; break; // Если остаток равен 3, то r=p, g=q, b=v;case 3: r = p, g = q, b = v; break; // If the remainder is 3, then r = p, g = q, b = v;

case 4:r=t, g=p, b=v; break; // Если остаток равен 4, то r=t, g=p, b=v;case 4: r = t, g = p, b = v; break; // If the remainder is 4, then r = t, g = p, b = v;

case 5:r=v, g=p, b=q; break; // Если остаток равен 5, то r=v, g=p, b=q;case 5: r = v, g = p, b = q; break; // If the remainder is 5, then r = v, g = p, b = q;

}}

Return[r*255,g*255,b*255]; // Полученные значения RBG возвращают с интервалом [0,255]; }Return [r * 255, g * 255, b * 255]; // The received RBG values are returned with an interval of [0.255]; }

После получения значений R, G и В эти значения выбираются в качестве значений цвета точки Iresult (x, y), и изображение Iresult выбирается в качестве результата обработки. До сих пор этапы оптимального редактирования оптимизируемого изображения были завершены.After obtaining the values of R, G, and B, these values are selected as the color values of the Iresult (x, y) point, and the Iresult image is selected as the processing result. So far, the stages of optimal editing of the optimized image have been completed.

Следует отметить, что способ, выполненный согласно варианту осуществления, объяснен подробно, выбирая в качестве примера режим, в котором сначала выполняют коррекцию контраста оптимизируемого изображения и затем выполняют настройку кривой и коррекцию насыщенности изображения с исправленным контрастом. В практических приложениях существует множество режимов для объединения настройки кривой, коррекции насыщенности и коррекции контраста, где объединение настройки кривой и коррекция насыщенности позволяет достигнуть эффекта коррекции обращаемой пленки. Кроме вышеупомянутого режима объединения коррекции обращаемой пленки и коррекции контраста для получения эффекта оптимального редактирования изображения, сначала можно также выполнить коррекцию обращаемой пленки по отношению к изображению, и затем выполнить коррекцию контраста изображения с помощью выполняемой коррекции обращаемой пленки. С другой стороны, можно также по отдельности выполнить коррекцию обращаемой пленки и коррекцию контраста изображения, и затем наложить два исправленных изображения для получения эффекта оптимизации подобно тому, который был получен в вышеупомянутом способе. При наложении двух исправленных изображений вариант осуществления не ограничивает специфический способ наложения. Если результат коррекции обращаемой пленки представляет собой Ireversal (i,j) и результат коррекции контраста представляет собой Icontrast (i,j), то два результата можно взвесить по отдельности при их наложении, например, наложить изображение Isuperposed (i,j)=Ireversal(i,j)×a+Icontrast(i,j)×(255-a), где a - взвешенное значение. Вариант осуществления не ограничивает принятое специфическое взвешенное значение, которое можно настроить в соответствии с необходимыми результатами.It should be noted that the method performed according to the embodiment is explained in detail, choosing as an example a mode in which the contrast correction of the optimized image is first performed and then the curve adjustment and the saturation correction of the image with the corrected contrast are performed. In practical applications, there are many modes for combining curve settings, saturation correction and contrast correction, where combining the curve settings and saturation correction allows you to achieve the effect of correction of the reversed film. In addition to the aforementioned mode of combining reversed film correction and contrast correction to obtain the effect of optimal image editing, you can also first correct the reversed film with respect to the image, and then perform image contrast correction using the performed reversal film correction. On the other hand, it is also possible to individually perform reversal film correction and image contrast correction, and then apply two corrected images to obtain an optimization effect similar to that obtained in the above method. When superimposing two corrected images, the embodiment does not limit the specific superposition method. If the result of the correction of the reversed film is I reversal (i, j) and the result of the correction of contrast is I contrast (i, j), then the two results can be weighed separately when superimposed, for example, to overlay the image I superposed (i, j) = I reversal (i, j) × a + I contrast (i, j) × (255-a), where a is the weighted value. The implementation option does not limit the adopted specific weighted value, which can be adjusted in accordance with the desired results.

Путем объединения коррекции контраста и более слабого алгоритма коррекции обращаемой пленки способ, выполненный согласно варианту осуществления, позволяет улучшить не только качество экспонирования, но также цвет изображения, что позволяет получить более яркий цвет изображения без изменения оттенка изображения.By combining the correction of contrast and the weaker correction algorithm of the reversed film, the method performed according to the embodiment improves not only the exposure quality, but also the color of the image, which makes it possible to obtain a brighter image color without changing the hue of the image.

Вариант III осуществленияOption III implementation

Как показано на фиг.3, вариант осуществления предусматривает устройство для оптимального редактирования изображения, включающий в себя:As shown in FIG. 3, an embodiment provides a device for optimal image editing, including:

модуль 301 регулировки кривой, который выполнен с возможностью регулировки кривой оптимизируемого изображения для получения изображения с исправленной кривой;a curve adjustment unit 301, which is configured to adjust a curve of the optimized image to obtain an image with a corrected curve;

первый модуль 302 преобразования, который выполнен с возможностью выполнения преобразования HSV в каждой точке, соответствующей изображению с исправленной кривой, для получения преобразованных значений цвета H, чистоты S и яркости V;the first conversion module 302, which is configured to perform HSV conversion at each point corresponding to the image with the corrected curve, to obtain the converted values of color H, purity S, and brightness V;

второй модуль 303 преобразования, который выполнен с возможностью взвешивания полученного значения S и выполнения преобразования RGB со значениями H, V и взвешенным значением S для получения изображения с исправленной насыщенностью.the second conversion module 303, which is configured to weight the obtained value of S and perform the RGB conversion with the values of H, V and the weighted value of S to obtain an image with corrected saturation.

Как показано на фиг.4, устройство дополнительно включает в себя: первый модуль 304 коррекции контраста, который выполнен с возможностью выполнения коррекции контраста оптимизируемого изображения, для получения изображения с исправленным контрастом перед тем, как модуль настройки кривой выполняет настройку кривой оптимизируемого изображения; иAs shown in FIG. 4, the device further includes: a first contrast correction unit 304, which is configured to perform contrast correction of the optimized image to obtain an image with corrected contrast before the curve setting module adjusts the curve of the optimized image; and

модуль 301 настройки кривой, который, соответственно, специфическим образом выполнен с возможностью выполнения настройки кривой изображению с исправленным контрастом для получения изображения с исправленной кривой.a curve adjustment module 301, which, accordingly, is specifically configured to perform curve adjustment for the image with the corrected contrast to obtain an image with the corrected curve.

По выбору, как показано на фиг.5, устройство дополнительно включает в себя:Optionally, as shown in FIG. 5, the device further includes:

первый модуль 304 коррекции контраста, который выполнен с возможностью выполнения коррекции контраста оптимизируемого изображения для получения изображения с исправленным контрастом перед тем, как модуль 301 регулировки кривой выполнит настройку кривой оптимизируемого изображения; иa first contrast correction module 304 that is configured to perform contrast correction of the optimized image to obtain an image with corrected contrast before the curve adjustment module 301 performs curve adjustment of the optimized image; and

первый модуль 305 наложения, который выполнен с возможностью наложения изображения с исправленным контрастом, полученным с помощью первого модуля 304 коррекции контраста, и изображения с исправленной насыщенностью, полученной с помощью второго модуля 303 преобразования после того, как второй модуль 303 преобразования выполнит преобразование RGB со значениями Н, V и взвешенным значением S для получения изображения с исправленной насыщенностью.the first overlay unit 305, which is configured to overlay the image with the corrected contrast obtained by the first contrast correction unit 304, and the image with the corrected saturation obtained by the second conversion unit 303 after the second conversion unit 303 performs RGB conversion with the values H, V and weighted S to obtain an image with corrected saturation.

По выбору, как показано на фиг.6, устройство дополнительно включает в себя:Optionally, as shown in FIG. 6, the device further includes:

второй модуль 306 коррекции контраста, который выполнен с возможностью выполнения коррекции контраста оптимизируемого изображения для получения изображения с исправленным контрастом после того, как второй модуль 303 преобразования выполнит преобразование RGB со значениями H, V и взвешенным значением S для получения изображения с исправленной насыщенностью; иa second contrast correction unit 306, which is configured to perform contrast correction of the optimized image to obtain an image with corrected contrast after the second conversion module 303 performs RGB conversion with the values of H, V and a weighted value of S to obtain an image with the corrected saturation; and

второй модуль 307 наложения, который выполнен с возможностью наложения изображения с исправленным контрастом, полученным с помощью второго модуля коррекции 306 контраста, на изображение с исправленной насыщенностью, полученное с помощью второго модуля 303 преобразования.the second overlay unit 307, which is configured to overlay the image with the corrected contrast obtained by the second contrast correction unit 306, on the image with the corrected saturation obtained using the second conversion unit 303.

По выбору, как показано на фиг.7, устройство дополнительно включает в себя:Optionally, as shown in FIG. 7, the device further includes:

третий модуль 308 коррекции контраста, который выполнен с возможностью для выполнения коррекции контраста изображения с исправленной насыщенностью, которое получается после того, как второй модуль 303 преобразования выполнит преобразование RGB со значениями H, V и взвешенным значением S.a third contrast correction unit 308, which is configured to perform contrast correction of the image with the corrected saturation, which is obtained after the second conversion unit 303 performs RGB conversion with the values of H, V and the weighted value S.

Следует отметить, что, когда устройство, выполненное согласно варианту осуществления, выполняет, например, оптимальное редактирование изображения, оно только принимает вышеупомянутое деление на функциональные модули. В практических приложениях эти функции, при необходимости, можно присвоить другим функциональным модулям, то есть внутреннюю структуру устройства можно разделить на функциональные модули, которые отличаются от тех, которые показаны на чертежах для реализации в целом или частично вышеупомянутых функций. В добавление, устройство и способ, выполненные согласно варианту осуществления, для выполнения оптимального редактирования изображения, принадлежат к тому же самому замыслу, как и вариант осуществления способа оптимального редактирования изображения, так как такие специфические процессы реализации и устройства могут иметь отношение к вариантам осуществления способа, и их можно не описывать здесь.It should be noted that when a device made according to an embodiment performs, for example, optimal image editing, it only accepts the aforementioned division into functional modules. In practical applications, these functions, if necessary, can be assigned to other functional modules, that is, the internal structure of the device can be divided into functional modules that differ from those shown in the drawings for the implementation in whole or in part of the aforementioned functions. In addition, the device and method performed according to the embodiment for performing optimal image editing belong to the same concept as the embodiment of the optimal image editing method, since such specific implementation processes and devices may be related to embodiments of the method, and they can not be described here.

Принимая во внимание вышеупомянутое, за счет объединения коррекции контраста, регулировки кривой и коррекции насыщенности, устройство, выполненное согласно варианту осуществления, улучшает цвет и качество экспонирования первоначального изображения, что позволяет получить более ярким цвет изображения без изменения оттенка изображения.Considering the above, by combining contrast correction, curve adjustment, and saturation correction, the apparatus according to the embodiment improves the color and exposure quality of the original image, which makes it possible to obtain a brighter image color without changing the hue of the image.

Порядковые номера в вышеупомянутых вариантах осуществления настоящего изобретения используются только для описания и не представляют собой доводы "за" и "против" вариантов осуществления.The sequence numbers in the above embodiments of the present invention are used for description only and do not constitute the pros and cons of the embodiments.

Все или частично этапы варианта осуществления настоящего изобретения можно реализовать с помощью программного обеспечения, и соответствующие программы программного обеспечения можно хранить на считываемых носителях информации, таких как CD или жесткий диск или т.д.All or part of the steps of an embodiment of the present invention can be implemented using software, and the corresponding software programs can be stored on readable storage media such as a CD or hard disk, etc.

Вышеизложенные варианты осуществления представляют собой только варианты осуществления настоящего изобретения и не предназначены для ограничения настоящего изобретения. Все любые модификации, эквиваленты, улучшения и т.д., выполненные в пределах объема и сущности настоящего изобретения, включены в объем охраны настоящего изобретения.The foregoing embodiments are only embodiments of the present invention and are not intended to limit the present invention. All any modifications, equivalents, improvements, etc. made within the scope and essence of the present invention are included in the scope of protection of the present invention.

Claims (8)

1. Способ редактирования с оптимизацией изображения, содержащий этапы, на которых:
выполняют коррекцию контраста оптимизируемого изображения для получения изображения с исправленным контрастом;
выполняют регулировку кривой изображения с исправленным контрастом для получения изображения с исправленной кривой;
выполняют преобразование HSV в каждой точке, соответствующей полученному изображению с исправленной кривой, для получения преобразованных значений цвета (Н), чистоты (S) и яркости (V); и
после взвешивания полученных значений S выполняют преобразование RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью.
1. An editing method with image optimization, comprising the steps of:
performing correction of the contrast of the optimized image to obtain an image with corrected contrast;
adjusting the image curve with the corrected contrast to obtain an image with the corrected curve;
performing HSV conversion at each point corresponding to the obtained image with the corrected curve, to obtain the converted values of color (H), purity (S) and brightness (V); and
after weighing the obtained S values, the RGB conversion is performed with the H, V values and the weighted S values to obtain an image with corrected saturation.
2. Способ редактирования с оптимизацией изображения, содержащий этапы, на которых:
выполняют коррекцию контраста оптимизируемого изображения для получения изображения с исправленным контрастом;
выполняют регулировку кривой оптимизируемого изображения для получения изображения с исправленной кривой;
выполняют преобразование HSV в каждой точке, соответствующей полученному изображению с исправленной кривой, для получения преобразованных значений цвета (Н), чистоты (S) и яркости (V); и
после взвешивания полученных значений S выполняют преобразование RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью и
накладывают изображение с исправленным контрастом на изображение с исправленной насыщенностью.
2. An editing method with image optimization, comprising the steps of:
performing correction of the contrast of the optimized image to obtain an image with corrected contrast;
adjusting the curve of the optimized image to obtain an image with a corrected curve;
performing HSV conversion at each point corresponding to the obtained image with the corrected curve, to obtain the converted values of color (H), purity (S) and brightness (V); and
after weighing the obtained values of S, RGB conversion is performed with the values of H, V and weighted values of S to obtain an image with corrected saturation and
overlay the image with the corrected contrast on the image with the corrected saturation.
3. Способ редактирования с оптимизацией изображения, содержащий этапы, на которых:
выполняют регулировку кривой оптимизируемого изображения для получения изображения с исправленной кривой;
выполняют преобразование HSV в каждой точке, соответствующей полученному изображению с исправленной кривой, для получения преобразованных значений цвета (Н), чистоты (S) и яркости (V); и
после взвешивания полученных значений S выполняют преобразование RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью;
выполняют коррекцию контраста оптимизируемого изображения для получения изображения с исправленным контрастом; и
накладывают изображение с исправленным контрастом на изображение с исправленной насыщенностью.
3. An editing method with image optimization, comprising the steps of:
adjusting the curve of the optimized image to obtain an image with a corrected curve;
performing HSV conversion at each point corresponding to the obtained image with the corrected curve, to obtain the converted values of color (H), purity (S) and brightness (V); and
after weighing the obtained values of S, RGB conversion is performed with the values of H, V and weighted values of S to obtain an image with corrected saturation;
performing correction of the contrast of the optimized image to obtain an image with corrected contrast; and
overlay the image with the corrected contrast on the image with the corrected saturation.
4. Способ редактирования с оптимизацией изображения, содержащий этапы, на которых:
выполняют регулировку кривой оптимизируемого изображения для получения изображения с исправленной кривой;
выполняют преобразование HSV в каждой точке, соответствующей полученному изображению с исправленной кривой, для получения преобразованных значений цвета (Н), чистоты (S) и яркости (V); и
после взвешивания полученных значений S выполняют преобразование RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью;
выполняют коррекцию контраста изображения с исправленной насыщенностью.
4. An editing method with image optimization, comprising the steps of:
adjusting the curve of the optimized image to obtain an image with a corrected curve;
performing HSV conversion at each point corresponding to the obtained image with the corrected curve, to obtain the converted values of color (H), purity (S) and brightness (V); and
after weighing the obtained values of S, RGB conversion is performed with the values of H, V and weighted values of S to obtain an image with corrected saturation;
perform image contrast correction with corrected saturation.
5. Устройство редактирования с оптимизацией изображения, содержащее:
модуль коррекции контраста для выполнения коррекции контраста оптимизируемого изображения для получения изображения с исправленным контрастом;
модуль регулировки кривой для выполнения регулировки кривой оптимизируемого изображения с исправленным контрастом для получения изображения с исправленной кривой;
первый модуль преобразования для выполнения преобразования HSV в каждой точке, соответствующей изображению с исправленной кривой, для получения преобразованных значений цвета (Н), чистоты (S) и яркости (V); и
второй модуль преобразования для взвешивания полученных значений S и выполнения преобразования RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью.
5. An editing device with image optimization, comprising:
a contrast correction module for performing contrast correction of the optimized image to obtain an image with corrected contrast;
a curve adjustment module for adjusting a curve of an optimized image with corrected contrast to obtain an image with a corrected curve;
a first conversion module for performing HSV conversion at each point corresponding to the image with the corrected curve to obtain the converted color values (H), clarity (S), and brightness (V); and
a second conversion module for weighting the obtained S values and performing the RGB conversion with H, V and weighted S values to obtain an image with corrected saturation.
6. Устройство редактирования с оптимизацией изображения, содержащее:
модуль регулировки кривой для выполнения регулировки кривой оптимизируемого изображения для получения изображения с исправленной кривой;
первый модуль преобразования для выполнения преобразования HSV в каждой точке, соответствующей изображению с исправленной кривой, для получения преобразованных значений цвета (Н), чистоты (S) и яркости (V);
второй модуль преобразования для взвешивания полученных значений S и выполнения преобразования RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью;
модуль коррекции контраста для выполнения коррекции контраста оптимизируемого изображения для получения изображения с исправленным контрастом перед выполнением модулем регулировки кривой регулировки кривой оптимизируемого изображения; и
модуль наложения для наложения изображения с исправленным контрастом, полученного с помощью модуля коррекции контраста, на изображение с исправленной насыщенностью, полученное с помощью второго модуля преобразования, после выполнения вторым модулем преобразования преобразования RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью.
6. An editing device with image optimization, comprising:
a curve adjustment module for adjusting a curve of an optimized image to obtain an image with a corrected curve;
a first conversion module for performing HSV conversion at each point corresponding to the image with the corrected curve to obtain the converted color values (H), clarity (S), and brightness (V);
a second conversion module for weighting the obtained S values and performing the RGB conversion with H, V and weighted S values to obtain an image with corrected saturation;
a contrast correction unit for performing contrast correction of the optimized image to obtain an image with corrected contrast before the adjustment curve adjustment module of the optimized image curve is executed; and
an overlay module for overlaying the image with the corrected contrast obtained by the contrast correction module on the image with the corrected saturation obtained with the second conversion module after the second conversion module performs the RGB conversion with H, V and weighted S values to obtain the image with the corrected saturation.
7. Устройство редактирования с оптимизацией изображения, содержащее:
модуль регулировки кривой для выполнения регулировки кривой оптимизируемого изображения для получения изображения с исправленной кривой;
первый модуль преобразования для выполнения преобразования HSV в каждой точке, соответствующей изображению с исправленной кривой, для получения преобразованных значений цвета (Н), чистоты (S) и яркости (V);
второй модуль преобразования для взвешивания полученных значений S и выполнения преобразования RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью;
модуль коррекции контраста для выполнения коррекции контраста оптимизируемого изображения для получения изображения с исправленным контрастом после выполнения модулем преобразования преобразования RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью; и
модуль наложения для наложения изображения с исправленным контрастом, полученным с помощью модуля коррекции контраста, на изображение с исправленной насыщенностью, полученное с помощью второго модуля преобразования.
7. An editing device with image optimization, comprising:
a curve adjustment module for adjusting a curve of an optimized image to obtain an image with a corrected curve;
a first conversion module for performing HSV conversion at each point corresponding to the image with the corrected curve to obtain the converted color values (H), clarity (S), and brightness (V);
a second conversion module for weighting the obtained S values and performing the RGB conversion with H, V and weighted S values to obtain an image with corrected saturation;
a contrast correction module for performing contrast correction of the optimized image to obtain an image with corrected contrast after the conversion module performs RGB transforms with values of H, V and weighted S values to obtain an image with corrected saturation; and
an overlay module for overlaying the image with the corrected contrast obtained by the contrast correction module on the image with the corrected saturation obtained using the second conversion module.
8. Устройство редактирования с оптимизацией изображения по п. 6, дополнительно содержащее:
модуль регулировки кривой для выполнения регулировки кривой оптимизируемого
изображения для получения изображения с исправленной кривой;
первый модуль преобразования для выполнения преобразования HSV в каждой точке, соответствующей изображению с исправленной кривой, для получения преобразованных значений цвета (Н), чистоты (S) и яркости (V);
второй модуль преобразования для взвешивания полученных значений S и выполнения преобразования RGB со значениями Н, V и взвешенными значениями S для получения изображения с исправленной насыщенностью; и
модуль коррекции контраста для выполнения коррекции контраста изображения с исправленной насыщенностью, полученного после выполнения вторым модулем преобразования преобразования RGB со значениями Н, V и взвешенными значениями S.
8. An editing device with image optimization according to claim 6, further comprising:
curve adjustment module to perform curve adjustment optimized
images to obtain an image with a corrected curve;
a first conversion module for performing HSV conversion at each point corresponding to the image with the corrected curve to obtain the converted color values (H), clarity (S), and brightness (V);
a second conversion module for weighting the obtained S values and performing the RGB conversion with H, V and weighted S values to obtain an image with corrected saturation; and
a contrast correction unit for performing contrast correction of the image with the corrected saturation obtained after the second conversion module performs the RGB conversion with the values of H, V and weighted values of S.
RU2012125065/08A 2010-02-08 2011-01-28 Method and apparatus for editing with image optimisation RU2535482C2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201010112228.1 2010-02-08
CN2010101122281A CN101742340B (en) 2010-02-08 2010-02-08 Method and device for optimizing and editing image
PCT/CN2011/070765 WO2011095116A1 (en) 2010-02-08 2011-01-28 Method and apparatus for image optimization editing

Publications (2)

Publication Number Publication Date
RU2012125065A RU2012125065A (en) 2014-03-20
RU2535482C2 true RU2535482C2 (en) 2014-12-10

Family

ID=42465106

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2012125065/08A RU2535482C2 (en) 2010-02-08 2011-01-28 Method and apparatus for editing with image optimisation

Country Status (4)

Country Link
CN (1) CN101742340B (en)
BR (1) BR112012014666B1 (en)
RU (1) RU2535482C2 (en)
WO (1) WO2011095116A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742340B (en) * 2010-02-08 2012-05-30 腾讯科技(深圳)有限公司 Method and device for optimizing and editing image
CN102169585A (en) * 2011-03-31 2011-08-31 汉王科技股份有限公司 Method and device for detecting image color cast
CN102568437B (en) 2012-01-20 2014-07-30 华为终端有限公司 Image displaying method and equipment
CN103294429A (en) * 2012-03-05 2013-09-11 联想(北京)有限公司 Display method and device
TWI510101B (en) * 2013-09-12 2015-11-21 Au Optronics Corp Method for adjusting saturation degree and color adjusting system
CN104954767B (en) * 2014-03-26 2017-08-29 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104505035A (en) * 2014-12-18 2015-04-08 深圳市华星光电技术有限公司 Conversion method and conversion system of RGB (Red, Green, Blue) data
CN111615714B (en) * 2018-06-27 2023-12-15 华为技术有限公司 Color adjustment method of RGB data
CN109447958B (en) * 2018-10-17 2023-04-14 腾讯科技(深圳)有限公司 Image processing method, image processing device, storage medium and computer equipment
WO2020187424A1 (en) * 2019-03-21 2020-09-24 Huawei Technologies Co., Ltd. Image processor
CN109859299B (en) * 2019-03-27 2020-12-22 腾讯科技(深圳)有限公司 Portrait picture processing method and device, computer readable storage medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU92005807A (en) * 1992-11-12 1995-01-09 Черкасский завод "Фотоприбор" DEVICE FOR COLOR PHOTO PRINTING
JP2005006049A (en) * 2003-06-12 2005-01-06 Konica Minolta Medical & Graphic Inc Method for adjusting color, program for implementing the same, recording medium for storing the same program, and image output system
US20050047657A1 (en) * 2003-08-25 2005-03-03 Samsung Electronics Co., Ltd. Color saturation adjusting apparatus and method used for a display system
JP2006261968A (en) * 2005-03-16 2006-09-28 Ricoh Co Ltd Luminance adjusting device, image processing device, luminance adjustment method, computer program and recording medium
RU2320011C1 (en) * 2006-07-05 2008-03-20 Самсунг Электроникс Ко., Лтд. Method for automatic correction of red-eye effect

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5450217A (en) * 1994-05-23 1995-09-12 Xerox Corporation Image-dependent color saturation correction in a natural scene pictorial image
CN100407765C (en) * 2005-09-07 2008-07-30 逐点半导体(上海)有限公司 Image contrast reinforcing means and method
CN2838169Y (en) * 2005-09-08 2006-11-15 上海广电(集团)有限公司中央研究院 Image color enhancing device
CN101742340B (en) * 2010-02-08 2012-05-30 腾讯科技(深圳)有限公司 Method and device for optimizing and editing image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU92005807A (en) * 1992-11-12 1995-01-09 Черкасский завод "Фотоприбор" DEVICE FOR COLOR PHOTO PRINTING
JP2005006049A (en) * 2003-06-12 2005-01-06 Konica Minolta Medical & Graphic Inc Method for adjusting color, program for implementing the same, recording medium for storing the same program, and image output system
US20050047657A1 (en) * 2003-08-25 2005-03-03 Samsung Electronics Co., Ltd. Color saturation adjusting apparatus and method used for a display system
JP2006261968A (en) * 2005-03-16 2006-09-28 Ricoh Co Ltd Luminance adjusting device, image processing device, luminance adjustment method, computer program and recording medium
RU2320011C1 (en) * 2006-07-05 2008-03-20 Самсунг Электроникс Ко., Лтд. Method for automatic correction of red-eye effect

Also Published As

Publication number Publication date
CN101742340A (en) 2010-06-16
CN101742340B (en) 2012-05-30
BR112012014666B1 (en) 2021-09-08
BR112012014666A2 (en) 2016-04-05
WO2011095116A1 (en) 2011-08-11
RU2012125065A (en) 2014-03-20

Similar Documents

Publication Publication Date Title
RU2535482C2 (en) Method and apparatus for editing with image optimisation
CN101277453B (en) Imaging device and method for processing imaging result in imaging device
RU2397542C2 (en) Method and device for creating images with high dynamic range from multiple exposures
US9077942B2 (en) Spectral synthesis for image capture device processing
CN100574453C (en) Imaging device and image processor
JP6005857B2 (en) Method for converting data, display device, arithmetic device, and program incorporated therein, and method for optimizing coefficients, optimization device, and program incorporated therein
US10796461B2 (en) Image color conversion apparatus, non-transitory computer-readable medium storing computer program, and image color conversion method
US10832621B2 (en) Backlight adjustment method of display panel, backlight adjustment device, and display device reducing red pixel color shift
US20110205400A1 (en) Method and apparatus for applying tonal correction to images
US20220006982A1 (en) Color adjustment method, color adjustment device, electronic device and computer-readable storage medium
US9704273B2 (en) Image processing device, method, and imaging device
US20180262673A1 (en) Device and method for reducing the set of exposure times for high dynamic range video/imaging
CN117156289A (en) Color style correction method, system, electronic device, storage medium and chip
CN115088252A (en) Image processing method and related device
CN116362988A (en) Apparatus and method for image processing
CN113099191B (en) Image processing method and device
CN113096046A (en) Image processing method and device
US20210405352A1 (en) Display device and method of adjusting chromatic aberration of display device
CN114169380A (en) Training method and device of image processing model, electronic equipment and storage medium
WO2007032324A1 (en) Imaging device, image processing device, image processing method, and image processing program
CN116825038B (en) Saturation adjusting method and device, storage medium and color ink screen equipment
US20240169487A1 (en) Image processing method and device
Finlayson et al. Extended Linear Color Correction
CN117201950A (en) Hue adjustment method, hue adjustment device, and readable storage medium
CN116741089A (en) Correction method, correction device, terminal device and computer readable storage medium