Interpolation method and device

An interpolation method and difference value technology, applied in the field of interpolation method and device, can solve the problems of difference, interpolation deformity point color component value, large interpolation deviation value, etc.

Inactive Publication Date: 2013-09-18
HUAWEI TECH CO LTD
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0015] An interpolation method and device provided by the present invention can solve the problem of interpolating R for the current pixel. * Or the current pixel is interpolated for R to get B * When t...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interpolation method and device
  • Interpolation method and device
  • Interpolation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0081] This embodiment provides an interpolation method, which is applied to electronic equipment, such as figure 2 As shown, the method includes:

[0082]Step 201 , estimating three differences between two of the three color component values ​​of the current pixel point, the three color component values ​​are red component value, green component value and blue component value respectively.

[0083] For the convenience of description, the red component value, the green component value and the blue component value are represented by RGB respectively. If the current pixel is a red pixel, only the data of the red component value of the pixel is recorded in the RAW image, and both B and G are null values, which can only be obtained through interpolation. Therefore, the target color component value at this time is B. The differences are: (G-R) * , (G-B) * and (R-B) * . If the current pixel is a blue pixel, then R is the target color component value. The differences are: (G-...

Embodiment 2

[0091] As a further refinement of Embodiment 1, this embodiment provides an interpolation method, such as image 3 As shown, before step 202, the method also includes:

[0092] Step 301. Obtain the average value of the red color component, the average value of the green color component and the average value of the blue color component in the RAW image.

[0093] Step 302, calculating a normalization parameter according to the average value of the red color component, the average value of the green color component and the average value of the blue color component.

[0094] The calculation of the normalization parameter needs to be calculated according to the color component values ​​in all pixels in the RAW image. The following is an example of calculating the normalization parameter. This example cannot be regarded as a limitation on the calculation method of the normalization parameter, as follows:

[0095] In step 301, the red component value recorded in the red pixel point...

Embodiment 3

[0132] This embodiment provides an interpolation device, such as Figure 6 As shown, the device is located on an electronic device, and the device includes:

[0133] The estimation unit 61 is used for estimating three differences between two of the three color component values ​​of the current pixel, and the three color component values ​​are red component value, green component value and blue component value respectively.

[0134] The calculating unit 62 is configured to use the normalization parameter estimated by the estimating unit 61 and the absolute value of the direction gradient to calculate a weighted mean value of the difference for the difference.

[0135] The calculating unit 62 can directly or indirectly normalize the difference estimated by the estimating unit 61 through a normalization parameter, and obtain a weighted mean of the difference.

[0136] An interpolation unit 63, configured to calculate a target color component value according to the weighted mean ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an interpolation method and an interpolation device and relates to the field of image processing. The problem that a malformed point of interpolation is caused by superposition of color component values and a high interpolation deviation value is caused by obvious difference of the color component values of adjacent pixel points when the current pixel point interpolates R* for B or B* for R can be solved. The method comprises the following steps of estimating three difference values between every two of three kinds of color component values of the current pixel point, wherein the three kinds of color component values are a red component value, a green component value and a blue component value respectively; getting the weighted mean value of the component values by using normalized parameters and the directional gradient absolute value; and calculating a target color component value according to the weighted mean value of the component values, wherein the target color component value is the color component value that is neither the current color component value nor the green component value in the three color component values. The method and the device are used in an image format conversion process.

Description

technical field [0001] The invention relates to the field of image processing, in particular to an interpolation method and device. Background technique [0002] The RAW image is the original data that the charge-coupled device (CCD) image sensor converts the captured light source signal into a digital signal. Such as figure 1 As shown, each pixel of the RAW image can only obtain and record one color component value among the three color components of R, G, and B (red, green, blue), and the horizontal and vertical directions are BG (blue-green) or RG (red and green) alternate. After interpolating a certain pixel in the RAW image, the other two color component values ​​of the pixel can be obtained. After all the pixels in the RAW image are interpolated, the RAW image can be converted into a bitmap image (Bitmap, BMP for short). [0003] In the prior art, there are the following two interpolation methods: [0004] The first interpolation method: Directional estimation (G-...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04N9/04
Inventor 李水平柳海波
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products