RU2295839C2 - Method for compressing digital images and device for realization of said method - Google Patents
Method for compressing digital images and device for realization of said method Download PDFInfo
- Publication number
- RU2295839C2 RU2295839C2 RU2004138242/09A RU2004138242A RU2295839C2 RU 2295839 C2 RU2295839 C2 RU 2295839C2 RU 2004138242/09 A RU2004138242/09 A RU 2004138242/09A RU 2004138242 A RU2004138242 A RU 2004138242A RU 2295839 C2 RU2295839 C2 RU 2295839C2
- Authority
- RU
- Russia
- Prior art keywords
- values
- color
- block
- channels
- channel
- Prior art date
Links
Images
Landscapes
- Color Television Systems (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
Настоящее изобретение относится к цифровой обработке изображений и может быть использовано в устройствах, осуществляющих сжатие цифровых изображений, получаемых с помощью фото и видеокамер.The present invention relates to digital image processing and can be used in devices that compress digital images obtained using cameras and video cameras.
В связи с бурным развитием и внедрением систем фото-видео съемки, в настоящее время большое развитие получают устройства для качественного цифрового захвата изображений. Обычно такие устройства захватывают не полноцветное, а так называемое Байеровское мозаичное изображение (БМИ). Повышение разрешающей способности устройств захвата изображений приводит к увеличению размера изображений и, соответственно, требует больших объемов памяти для хранения этих данных. Развитие подсистем устройств хранения информации и увеличение пропускной способности каналов передачи данных лишь отчасти решает эту проблему, поэтому разработка методов сжатия БМИ может существенно уменьшить требования к этим подсистемам и каналам передачи.Due to the rapid development and implementation of photo-video shooting systems, devices for high-quality digital image capture are currently undergoing great development. Typically, such devices do not capture full-color, but the so-called Bayer mosaic image (BMI). Increasing the resolution of image capture devices leads to an increase in image size and, accordingly, requires large amounts of memory to store this data. The development of subsystems of information storage devices and an increase in the bandwidth of data transmission channels only partially solve this problem; therefore, the development of BMI compression methods can significantly reduce the requirements for these subsystems and transmission channels.
Известно описание изобретения к патенту США №6154493 "Compression of color images based on a 2-dimensional discrete wavelet transform yielding a perceptually lossless image", МПК H 04 N 7/12, содержащий способ сжатия цифровых изображений, который состоит из разделения необработанных цифровых данных, полученных с устройства захвата изображений, на множество цветовых каналов, включая цветоразностные. При этом для устранения взаимной корреляции при формировании дифференциальных каналов используется прямая разность цветовых каналов. Каждый из полученных таким образом каналов подвергаются двумерному дискретному вейвлет-преобразованию и квантованию, позволяющему проводить сжатие изображений без визуальных потерь. Устройство для реализации указанного способа включает в себя блок захвата и предобработки изображения, генератора каналов, блока сжатия и блока хранения информации. Указанный метод и реализующее его устройство можно использовать для сжатия БМИ. Применяемые коэффициенты квантования зависят от обрабатываемого цветового канала и подполосы вейвлет-коэффициентов.A description of the invention is known to US patent No. 6154493 "Compression of color images based on a 2-dimensional discrete wavelet transform yielding a perceptually lossless image", IPC H 04 N 7/12, containing a method for compressing digital images, which consists of the separation of raw digital data received from the device for capturing images on a variety of color channels, including color difference. In this case, to eliminate mutual correlation in the formation of differential channels, the direct difference of color channels is used. Each of the channels thus obtained is subjected to two-dimensional discrete wavelet transform and quantization, which allows image compression without visual loss. A device for implementing this method includes an image capture and preprocessing unit, a channel generator, a compression unit, and an information storage unit. The specified method and its implementing device can be used to compress the BMI. The quantization coefficients used depend on the color channel being processed and the sub-band of wavelet coefficients.
Однако указанные способ и устройство сжатия не позволяют эффективно сжимать данные, так как корреляция между цветовыми каналами устраняется не полностью, что приводит к многократному сжатию одной и той же информации и, как следствие, к большему размеру сжатых данных.However, the indicated compression method and device does not allow efficient data compression, since the correlation between color channels is not completely eliminated, which leads to multiple compression of the same information and, as a result, to a larger size of the compressed data.
Кроме того, при обработке БМИ указанный метод сжатия не позволяет перейти в систему цветопредставления YCbCr, для которой известны коэффициенты квантования, применение которых приводит к получению меньшего по размеру сжатого изображения.In addition, when processing BMI, this compression method does not allow switching to the YCbCr color rendering system, for which quantization coefficients are known, the use of which results in a smaller compressed image.
Техническим результатом настоящего изобретения является сжатие данных, с эффективным устранением взаимной корреляции между цветовыми каналами, что дает меньший размер сжатых данных. При применении к БМИ позволяет перейти в систему цветопредставления YCbCr, что делает возможным использование коэффициентов квантования, разработанных для этой системы цветопредставления.The technical result of the present invention is data compression, with the effective elimination of cross-correlation between color channels, which gives a smaller size of the compressed data. When applied to the BMI, it allows you to switch to the YCbCr color rendering system, which makes it possible to use the quantization coefficients developed for this color rendering system.
Указанный результат достигается за счет того, что в известном методе сжатия цифровых изображений, заключающемся в последовательном применении операций разделения необработанных цифровых данных, полученных с устройства захвата изображений, на множество каналов, с их последующим прямым цветовым преобразованием, вейвлет-преобразованием и квантованием, предложены следующие правила прямого цветового преобразования каналов:This result is achieved due to the fact that in the well-known method of compressing digital images, which consists in sequentially applying the operations of dividing the raw digital data received from the image capture device into multiple channels, with their subsequent direct color conversion, wavelet conversion and quantization, the following are proposed rules for direct color conversion of channels:
- получение четырех полноразмерных расширенных матриц (получение матриц из мозаичного изображения представлено на фиг.1) из трех цветовых каналов, первая из которых содержит значения первого канала, вторая и третья содержат значения второго канала, четвертая - значения из третьего канала,- receiving four full-sized expanded matrices (obtaining matrices from a mosaic image is shown in Fig. 1) from three color channels, the first of which contains the values of the first channel, the second and third contain the values of the second channel, the fourth - the values from the third channel,
- с помощью интерполяции цветовых матриц, содержащих значения первого и третьего цветового каналов, получают данные в точках, где известны значения второго цветового канала,- using interpolation of color matrices containing the values of the first and third color channels, data is obtained at points where the values of the second color channel are known,
- преобразуют значения во второй и третьей матрицах (С2А', С2В'), используя интерполированные значения первой и четвертой матриц (С1i', С3i') в новые значения (YA и YB) по формуле- convert the values in the second and third matrices (C2A ', C2B') using the interpolated values of the first and fourth matrices (C1i ', C3i') into new values (YA and YB) according to the formula
- где а1, а2, а3 - вещественные коэффициенты,- where a1, a2, a3 are real coefficients,
- с помощью интерполяции цветовых матриц, содержащих значения второго цветового канала, получают данные в точках, где известны значения первого и третьего цветовых каналов,- using interpolation of color matrices containing the values of the second color channel, data is obtained at points where the values of the first and third color channels are known,
- преобразуют значения первой и четвертой матриц (С1', С3'), используя интерполированные значения второго канала (Y') в новые значения (DC1, DC2) по формуле:- convert the values of the first and fourth matrices (C1 ', C3') using the interpolated values of the second channel (Y ') into the new values (DC1, DC2) according to the formula:
DС1=b1*(С1'-Y')DC1 = b1 * (C1'-Y ')
DC3=b2*(C3'-Y')DC3 = b2 * (C3'-Y ')
где b1, b2 - вещественные коэффициенты,where b1, b2 are real coefficients,
- по значениям второй матрицы вычисляют значения третьей матрицы, после чего в третью матрицу записывают поправки от вычисленных значений и- from the values of the second matrix, the values of the third matrix are calculated, after which the corrections from the calculated values are recorded in the third matrix, and
- от преобразованных полноразмерных расширенных матриц переходят обратно к цветовым каналам, три из которых являются дифференциальными.- from the converted full-sized extended matrices go back to the color channels, three of which are differential.
Изображение, получаемое с сенсора, обычно имеет мозаичную структуру, когда в каждой точке известно значение лишь одного цвета, а значения двух других цветов неизвестны. Набор известных цветов в каждой точке может быть различным, наиболее распространен так называемый Байеровский набор цветовых светофильтров (БНЦС). Таким образом, цветовые каналы, из которых состоит изображение, оказываются разреженными. Мозаичное изображение, полученное с помощью БНЦС, и есть Байеровское мозаичное изображение. Кроме того, в БМИ количество точек, в которых известны значения зеленого, в два раза больше, чем количество точек с красным и синим цветом, поэтому канал зеленого делят на два подканала, получая четыре канала - два зеленых, один красный и один синий. Значения этих каналов можно записать в специальные матрицы С1', С2А', С2В', С3', как указано на фиг.1. Это делается для удобства программной и аппаратной реализации последующего алгоритма преобразования каналов цвета. В случае БНЦС С1 - канал красного, С2 - канал зеленого, С3 - канал синего цветов. Для перехода в систему YCbCr в каждой точке изображения необходимо иметь все три компонента цвета:The image received from the sensor usually has a mosaic structure, when at each point the value of only one color is known, and the values of the other two colors are unknown. The set of known colors at each point can be different, the most common is the so-called Bayer set of color filters (BSCS). Thus, the color channels that make up the image are sparse. The mosaic image obtained with the help of the BSCC is the Bayer mosaic image. In addition, in the BMI the number of points at which the green values are known is twice as many as the number of points with red and blue, therefore the green channel is divided into two subchannels, receiving four channels - two green, one red and one blue. The values of these channels can be written into special matrices C1 ', C2A', C2B ', C3', as indicated in figure 1. This is done for the convenience of software and hardware implementations of the subsequent color channel conversion algorithm. In the case of the BNCC, C1 is the red channel, C2 is the green channel, C3 is the blue channel. To go to the YCbCr system at each point in the image, you must have all three color components:
αR=0.299; αB=0.114; αG=0.587α R = 0.299; α B = 0.114; α G = 0.587
Y=αR·R+αG·G+αB·ВY = α R · R + α G · G + α B · В
Из формул преобразования следует, что в зеленых точках имеет смысл вычислять компонент Y, так как в него зеленый компонент системы RGB (для случая БНЦС) входит с наибольшим весом, поэтому относительная ошибка при вычислении именно этого компонента будет наименьшей. Аналогично, вместо компонентов R и В имеет смысл вычислять компоненты Cr и Cb. Для вычисления красного и синего цветов в точках с известным зеленым цветом можно применить линейную интерполяцию, используя соседние точки с известными красными и синими цветами (у каждой зеленой точки есть по две соседние красные и синие, для вычисления значений красного и синего в зеленой точке берется полусумма значений из соседних красных и синих точек). После получения недостающих компонент цвета в зеленых точках вычисляется компонент У (яркость). Так как имеется две матрицы со значениями зеленого канала цвета для различения значений яркости, принадлежащих этим матрицам, обозначим их YA для С2А' и YB для С2B'. Полученные значения яркости интерполируются в синие и красные точки (каждая такая точка имеет четыре соседних значений яркости по диагонали, интерполированное значение равно четверти суммы соседних яркостей). По интерполированным значениям яркости и имеющимся значениям красного или синего цветов вычисляются значения цветоразностей Cr и Cb. Полученные из матриц С1', С3' значения цветоразностей обозначим DC1 и DC3.It follows from the transformation formulas that it makes sense to calculate the Y component at green points, since the green component of the RGB system (for the case of the BSCS) is the one with the highest weight, so the relative error in calculating this particular component will be the smallest. Similarly, instead of the components R and B, it makes sense to calculate the components Cr and Cb. To calculate red and blue colors at points with known green color, linear interpolation can be applied using neighboring points with known red and blue colors (each green point has two adjacent red and blue ones; half the sum is taken to calculate the red and blue values in the green point values from adjacent red and blue dots). After receiving the missing color components in green dots, the Y component (brightness) is calculated. Since there are two matrices with green color channel values for distinguishing the brightness values belonging to these matrices, we denote them YA for C2A 'and YB for C2B'. The resulting brightness values are interpolated into blue and red points (each such point has four adjacent brightness values diagonally, the interpolated value is a quarter of the sum of neighboring brightnesses). The color values Cr and Cb are calculated from the interpolated brightness values and available red or blue colors. The color values obtained from the matrices C1 ', C3' are denoted by DC1 and DC3.
Значения в матрицах С2А' и С2В' на фиг.1 (до цветопреобразования это значения зеленого канала, а после яркость) сильно коррелированы между собой. Для устранения корреляции можно значения матрицы С2В' предсказывать с помощью значений матрицы С2А' и хранить в матрице С2В' только поправки от предсказанных значений. В простейшем случае можно воспользоваться для предсказания билинейной интерполяцией, то есть в качестве интерполированного значения матрицы С2В' использовать четверть суммы четырех соседних значений матрицы С2А', то есть значений, индексы позиций которых в матрице С2А' отличаются не больше, чем на единицу от индексов предсказываемого значения в матрице С2В'. Полученные значения поправок обозначим dY.The values in the matrices C2A 'and C2B' in Fig. 1 (before color conversion, these are the values of the green channel, and after brightness) are strongly correlated with each other. To eliminate the correlation, the values of the matrix C2B 'can be predicted using the values of the matrix C2A' and only corrections from the predicted values can be stored in the matrix C2B '. In the simplest case, it is possible to use bilinear interpolation for prediction, that is, as the interpolated value of the matrix C2B ', use a quarter of the sum of four adjacent values of the matrix C2A', that is, values whose position indices in the matrix C2A 'differ no more than one from the predicted indices values in the matrix C2B '. The resulting correction values are denoted by dY.
Для сохранения среднего уровня сигнала в канале зеленого (после цветопреобразования - канала яркости) для матрицы С2А' с помощью поправок, хранимых в матрице С2В', делается следующая операция: к каждому значению матрицы С2А' добавляется одна восьмая от суммы ближайших соседних поправок, хранимых в матрице С2В'. Операция сохранения среднего может быть любой, при выполнении следующего условия:To maintain the average signal level in the green channel (after color conversion, the luminance channel) for the matrix C2A 'using the corrections stored in the matrix C2B', the following operation is performed: one eighth of the sum of the nearest neighboring corrections stored in the matrix C2A 'is added matrix C2B '. The operation of preserving the average can be any, subject to the following conditions:
Полученные обновленные значения матрицы С2А' обозначим YA'.The obtained updated values of the matrix C2A 'will be denoted by YA'.
Таким образом, получаем из матриц С1', С2А', С2В', С3' соответственно матрицу со значениями цветоразности Cr - DC1, матрицу со значениями яркости YA', матрицу поправок dY, матрицу со значениями цветоразности Cb - DC3.Thus, we obtain from the matrices C1 ', C2A', C2B ', C3', respectively, a matrix with color values Cr - DC1, a matrix with brightness values YA ', a correction matrix dY, a matrix with color values Cb - DC3.
После выполненных преобразований от матриц переходят к каналам: С1T, C2AT, С2ВТ и С3Т. При этом значения каналов необходимо выбирать из позиций матриц, соответствующих позициям с ненулевыми значениями исходных матриц. Из этих каналов три являются дифференциальными.After the conversions are completed, they pass from the matrices to the channels: C1T, C2AT, C2BT and C3T. In this case, the channel values must be selected from the positions of the matrices corresponding to the positions with nonzero values of the original matrices. Of these channels, three are differential.
Формальное описание обратного преобразования цветовых каналов следующее:The formal description of the inverse color channel conversion is as follows:
1. Получение из цветовых каналов: С1Т, С2АТ, С2ВТ и С3Т полноразмерных расширенных матриц DC1, YA', dY, DC3.1. Obtaining from color channels: C1T, C2AT, C2BT and C3T full-sized extended matrices DC1, YA ', dY, DC3.
2. Отмена операции сохранения среднего для YA' путем применения к матрице, полученной поэлементным сложением YA' и dY, фильтра со следующей импульсной характеристикой:2. Cancellation of the operation of storing the average for YA 'by applying to the matrix obtained by the elementwise addition of YA' and dY, a filter with the following impulse response:
с последующим прореживанием получившейся матрицы (все позиции, кроме тех, в которых изначально были ненулевые значения YA', заполняются нулями). Таким образом, получаем матрицу YA.followed by decimation of the resulting matrix (all positions, except those in which initially there were nonzero values of YA ', are filled with zeros). Thus, we obtain the matrix YA.
3. Построение предсказателей для ненулевых значений матрицы YB по ненулевым значениям матрицы YA достигается путем применения к матрице YA в позициях, соответствующих ненулевым значениям матрицы YB, интерполирующего фильтра со следующей импульсной характеристикой:3. The construction of predictors for nonzero values of the matrix YB from nonzero values of the matrix YA is achieved by applying to the matrix YA in positions corresponding to nonzero values of the matrix YB an interpolating filter with the following impulse response:
Полученную матрицу обозначим Р.We denote the resulting matrix by R.
Получение значений YB: YB=dY+P (операция поэлементного сложения, выполняется только для ненулевых значений матрицы dY).Obtaining the values of YB: YB = dY + P (the operation of elementwise addition, performed only for nonzero values of the matrix dY).
4. Получение интерполированных значений для матриц YA и YB в позициях расположения ненулевых значений матриц DC1 и DC3, достигается применением к сумме матриц YA и YB фильтра со следующей импульсной характеристикой:4. Obtaining interpolated values for the matrices YA and YB at the positions of nonzero values of the matrices DC1 and DC3 is achieved by applying a filter with the following impulse response to the sum of the matrices YA and YB:
Обозначим полученную матрицу как Y'.Denote the resulting matrix as Y '.
5. Получение матриц С1' и С3' из цветоразностных матриц DC1 и DC3 в точках расположения ненулевых значений матриц DC1 и DC3:5. Obtaining matrices C1 'and C3' from the color difference matrices DC1 and DC3 at the locations of nonzero values of the matrices DC1 and DC3:
где b1, b2 - некоторые вещественные коэффициенты, которые в случае БМИ таковы: b1=0,7133; b2=0,5643.where b1, b2 are some real coefficients, which in the case of BMI are as follows: b1 = 0.7133; b2 = 0.5643.
6. С помощью линейной интерполяции матриц С1' и С3' получаются данные в позициях, где находятся ненулевые значения YA и YB. Полученные интерполированные значения матрицы обозначим С1'i и С3'i.6. Using linear interpolation of the matrices C1 'and C3', data is obtained at the positions where the nonzero values YA and YB are located. The obtained interpolated values of the matrix are denoted by C1'i and C3'i.
7. Преобразование ненулевых значений YA и YB в С2А', С2В' по следующим формулам:7. The conversion of nonzero values of YA and YB to C2A ', C2B' according to the following formulas:
где а1, а2, а3 - некоторые вещественные коэффициенты, которые в случае БМИ таковы: а1=0,299; а2=0,587; а3=0,114.where a1, a2, a3 are some real coefficients, which in the case of BMI are as follows: a1 = 0.299; A2 = 0.587; a3 = 0.114.
8. Получение из полноразмерных расширенных матриц С1', С2А', С2В', С3' восстановленных цветовых каналов: С1, С2 и С3 (фиг.1).8. Obtaining from the full-sized expanded matrices C1 ', C2A', C2B ', C3' of the restored color channels: C1, C2 and C3 (Fig. 1).
Указанный способ сжатия реализуется устройством.The specified compression method is implemented by the device.
На фиг.1 изображен структура полноразмерных расширенных цветовых матриц.Figure 1 shows the structure of full-sized extended color matrices.
На фиг.2 представлена общая структурная схема устройства сжатия цифровых изображений.Figure 2 presents the General structural diagram of a device for compressing digital images.
На фиг.3 представлена структурная схема блока преобразования цветовых каналов.Figure 3 presents the structural diagram of the block conversion of color channels.
Устройство, реализующее описанный выше способ сжатия цветовых изображений, например БМИ, представлено на фиг.2 и состоит из блока захвата и предобработки цифрового изображения (блок 2.1), который соединен с блоком преобразования цветовых каналов (блок 2.2), связанным с блоком сжатия (блок 2.3) и затем блоком хранения и передачи сжатых данных (блок 2.4).A device that implements the above-described method for compressing color images, for example, BMI, is shown in FIG. 2 and consists of a digital image capture and preprocessing unit (block 2.1), which is connected to a color channel conversion unit (block 2.2) associated with the compression block (block 2.3) and then the storage and transmission unit of compressed data (block 2.4).
Блок преобразования цветовых каналов (фиг.3) включает в себя следующие блоки. Блок формирования расширенных матриц (блок 3.1) производит преобразование входных цветовых каналов С1, С2, С3 и имеет три входа: С1, С2, С3. Выход С1' блока 3.1 соединен с входом блока вычисления интерполированных значений С1 (блок 3.2), а выход С3' с входом блока вычисления интерполированных значений С3 (блок 3.3). Выход С1'i блока 2 соединяется с блоком вычисления значений YA (блок 3.4) и блоком вычисления значений YB (блок 3.5). Выход блока C3'i соединяется с блоком 3.4 и 3.5. Выход блока 3.1 С2А' соединяется с блоком 3.4, а выход блока 3.1 С2В' - с блоком 3.5. Выход блока 3.4 YA соединен с блоком вычисления значений Y' (блок 3.6), а также блоком вычисления поправок dY (блок 3.7) и блоком сохранения среднего (блок 3.10). Выход блока 3.5 YB соединен со входом блока 3.6 и блоком вычисления поправок dY (блок 3.7). Выход блока 3.6 Y' соединен с блоком вычисления значений DC1 (блок 3.8) и блоком вычисления значений DC3 (блок 3.9). Кроме того, выход блока 3.1 С1' соединяется с входом блока 3.8, а выход блока 3.1 С3' соединяется с входом блока 3.9. Выход блока 3.7 соединяется с блоком сохранения среднего (блок 3.10). Выходы блока 3.7 dY, блока 3.8 DC1, блока 3.9 DC3, блока 3.10 YA' соединены с соответствующими входами блока формирования цветовых каналов (блок 3.12). Выходы блока 3.12 С1Т, С3Т, С2АТ и С2ВТ являются выходами блока преобразования цветовых каналов. Блок управления и генерации адресов (блок 3.11) имеет вход для получения конфигурационной информации и соединяется со всеми вышеперечисленными блоками блока преобразования цветовых каналов.The color channel conversion unit (FIG. 3) includes the following blocks. The extended matrix generation block (block 3.1) converts the input color channels C1, C2, C3 and has three inputs: C1, C2, C3. The output C1 'of the block 3.1 is connected to the input of the block for calculating the interpolated values C1 (block 3.2), and the output C3' to the input of the block for calculating the interpolated values C3 (block 3.3). The output C1'i of
Устройство сжатия (фиг.2) работает следующим образом. Блок 2.1 является источником получения цветовых каналов с фотосенсора, а также проводит необходимую предобработку. В результате на вход блока 2.2 поступают цветовые каналы С1, С2, С3, которые в случае БМИ соответствуют каналам R, G, В. Блок 2.2 производит преобразование указанных цветовых каналов в С1Т, С2АТ, С2ВТ, С3Т, которые поступают на вход блока 2.3. Блок 2.3 производит прямое дискретное вейвлет-преобразование и квантование для каждого из цветовых каналов, статистическое кодирование, например, арифметическое кодирование или кодирование Хаффмана, формирует сжатый поток, который передается в блок 2.4, обеспечивающий хранение и передачу сжатых данных.The compression device (figure 2) works as follows. Block 2.1 is a source of receiving color channels from a photosensor, and also carries out the necessary pre-processing. As a result, the input channels of block 2.2 receive the color channels C1, C2, C3, which in the case of BMI correspond to the channels R, G, B. Block 2.2 converts the specified color channels into C1T, C2AT, C2BT, C3T, which are fed to the input of block 2.3. Block 2.3 performs direct discrete wavelet transform and quantization for each of the color channels, statistical coding, for example, arithmetic coding or Huffman coding, forms a compressed stream, which is transmitted to block 2.4, which provides storage and transmission of compressed data.
Рассмотрим работу блока преобразования цветовых каналов (фиг.3). В блок 3.11 на вход IS поступает конфигурационная информация о размерности обрабатываемых данных, диапазоне их изменения и т.п. Затем блок 3.11 формирует синхронизирующий импульс, который передается на вход SS блока 3.1. Блок 3.1 формирует расширенные матрицы С1', С2А', С2В', С3' в соответствии с правилом 1.1 указанного выше прямого преобразования цветовых каналов. Затем блок 3.11 формирует синхронизирующий сигнал, который подается на синхровходы SS блоков 3.2 и 3.3. В результате блок 3.2 осуществляет вычисление значений С1'i в соответствии с правилом 1.2, а блок 3.3 - вычисление значений С3'i по правилу 1.2. После этого блок 3.11 формирует синхроимпульс, который поступает на синхровходы блоком 3.4 и 3.5. Блок 3.4 вычисляет значения YA в соответствии с правилом 1.3. Блок 3.5 вычисляет значения YB в соответствии с правилом 1.3. После вычисления значений YA и YB блок 3.11 формирует синхроимпульс, который подается на синхровходы SS. Блок 3.6 осуществляет вычисление значений Y' по правилу 1.6. Блок 3.7 вычисляет значения поправок dY по правилу 1.4. Затем блок 3.11 генерирует синхросигнал, который подается на соответствующие входы блоков 3.8, 3.9 и 3.10. В результате блок 3.8 производит вычисление значений DC1 по правилу 1.7, блок 3.9 - вычисление значений DC3 по тому же правилу, а блок 3.10 - на основании значений dY и YA, поступающих на его входы, производит операцию сохранения среднего в соответствии с правилом 1.5. На выходе блока 3.10 формируются значения YA'. Блок 3.11 вырабатывает синхроимпульс, который поступает на вход блока 3.12. Блок 3.12 на основании значений DC1, DC3, dY, YA', которые подаются на его соответствующие входы, формирует цветовые каналы С1Т, С2АТ, С2ВТ, С3Т в соответствии с правилом 1.8.Consider the operation of the color channel conversion unit (figure 3). In block 3.11, the input IS receives configuration information about the dimension of the processed data, the range of their variation, etc. Then block 3.11 generates a synchronizing pulse, which is transmitted to the input of the SS block 3.1. Block 3.1 generates extended matrices C1 ', C2A', C2B ', C3' in accordance with rule 1.1 of the above direct conversion of color channels. Then block 3.11 generates a synchronization signal, which is fed to the clock inputs of SS blocks 3.2 and 3.3. As a result, block 3.2 calculates С1'i values in accordance with rule 1.2, and block 3.3 calculates С3'i values in accordance with rule 1.2. After that, block 3.11 generates a clock pulse, which is fed to the sync inputs by block 3.4 and 3.5. Block 3.4 calculates YA values in accordance with rule 1.3. Block 3.5 calculates the values of YB in accordance with rule 1.3. After calculating the values of YA and YB, block 3.11 generates a clock pulse, which is fed to the clock inputs SS. Block 3.6 calculates the values of Y 'according to rule 1.6. Block 3.7 calculates the dY correction values according to rule 1.4. Then block 3.11 generates a clock signal, which is fed to the corresponding inputs of blocks 3.8, 3.9 and 3.10. As a result, block 3.8 calculates DC1 values according to rule 1.7, block 3.9 calculates DC3 values according to the same rule, and block 3.10 calculates the average in accordance with rule 1.5 based on the dY and YA values supplied to its inputs. At the output of block 3.10, values YA 'are formed. Block 3.11 generates a clock pulse, which is fed to the input of block 3.12. Block 3.12, based on the values of DC1, DC3, dY, YA ', which are supplied to its respective inputs, generates color channels C1T, C2AT, C2BT, C3T in accordance with rule 1.8.
Настоящее описание изобретения, в т.ч. состав и работу устройства, включая предлагаемый вариант его исполнения, предполагает дальнейшее возможное совершенствование специалистами и не содержит каких-либо ограничений в части реализации.The present description of the invention, including the composition and operation of the device, including the proposed version of its execution, involves further possible improvement by specialists and does not contain any restrictions in terms of implementation.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
RU2004138242/09A RU2295839C2 (en) | 2004-12-28 | 2004-12-28 | Method for compressing digital images and device for realization of said method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
RU2004138242/09A RU2295839C2 (en) | 2004-12-28 | 2004-12-28 | Method for compressing digital images and device for realization of said method |
Publications (2)
Publication Number | Publication Date |
---|---|
RU2004138242A RU2004138242A (en) | 2006-06-10 |
RU2295839C2 true RU2295839C2 (en) | 2007-03-20 |
Family
ID=36712380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
RU2004138242/09A RU2295839C2 (en) | 2004-12-28 | 2004-12-28 | Method for compressing digital images and device for realization of said method |
Country Status (1)
Country | Link |
---|---|
RU (1) | RU2295839C2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2573770C2 (en) * | 2014-06-17 | 2016-01-27 | Федеральное государственное бюджетное образовательное учреждение высшего образования "Вятский государственный университет" (ВятГУ) | Method of compressing images |
-
2004
- 2004-12-28 RU RU2004138242/09A patent/RU2295839C2/en not_active IP Right Cessation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2573770C2 (en) * | 2014-06-17 | 2016-01-27 | Федеральное государственное бюджетное образовательное учреждение высшего образования "Вятский государственный университет" (ВятГУ) | Method of compressing images |
Also Published As
Publication number | Publication date |
---|---|
RU2004138242A (en) | 2006-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4884734B2 (en) | System and method for encoding mosaic image data using reversible color conversion | |
JP4559622B2 (en) | Color image compression based on two-dimensional discrete wavelet transform yielding perceptually lossless images | |
JPH04502996A (en) | Compression method and apparatus for single sensor color imaging system | |
US8660345B1 (en) | Colorization-based image compression using selected color samples | |
JPH09284798A (en) | Signal processor | |
JP3908095B2 (en) | Digital imaging system that reduces color aliasing artifacts | |
US8929672B2 (en) | Method of compressing image data | |
EP1262917B1 (en) | System and method for demosaicing raw data images with compression considerations | |
CN110557637A (en) | Apparatus for encoding image, apparatus for decoding image, and image sensor | |
JP2003125209A (en) | Image processor, electronic camera, and image processing program | |
Lee et al. | Lossless compression of HDR color filter array image for the digital camera pipeline | |
JP2023506122A (en) | Image processing device | |
RU2295839C2 (en) | Method for compressing digital images and device for realization of said method | |
Lee et al. | Lossless white balance for improved lossless CFA image and video compression | |
JP2005005925A (en) | Image compressing device and image processing system | |
JP2004320301A (en) | Image compression apparatus and image processing system | |
JP2018006999A (en) | Image encoding device and control method therefor | |
US11785352B2 (en) | Image encoding apparatus, method for controlling the same, and non-transitory computer-readable storage medium | |
US20210352303A1 (en) | Method for processing transform coefficients | |
JP2002171531A (en) | Method for processing pixel signal of single board color camera | |
TW202137746A (en) | Image processor | |
JP2021103818A (en) | Image encoding device, imaging device, control method of image encoding device, and program | |
JP2023521471A (en) | Decorrelating Transformation of Color Filter Array Pattern Images | |
JP2023070055A (en) | Image encoding device, control method thereof, and program | |
Rahman | A low complexity image compression algorithm for Bayer color filter array |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | The patent is invalid due to non-payment of fees |
Effective date: 20081229 |