Mosaic removing method and device

A technology of demosaicing and current position, applied in the field of image processing, can solve the problem of poor effect of restoring the true color of pixels and so on

Inactive Publication Date: 2014-06-04
HUAWEI TECH CO LTD
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, in a scene where the brightness changes rapidly while the color changes rapidly, when any algorithm in the prior art is used to demosaic the digital image, there will be abnormal color bars or color points, and the effect of restoring the true color of the pixels poor

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
  • Mosaic removing method and device
  • Mosaic removing method and device
  • Mosaic removing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0072] An embodiment of the present invention provides a method for demosaicing, such as image 3 As shown, the method includes:

[0073] S101. The demosaicing device obtains gradient values ​​of the pixel at the current position in multiple preset directions, and determines a gradient threshold of the pixel at the current position according to the gradient values ​​in the multiple preset directions.

[0074] In order to reduce the complexity and cost of optical path control and photosensitive imaging chips, the imaging raw data of most electronic products that can be used to shoot digital images generally adopts the Bayer format. Each pixel in a digital image in Bayer format has only one color component, or R or G or B, and it needs to interpolate the other two colors with the help of the colors around the current pixel.

[0075] Since the color information of natural scenery changes smoothly, and the color gradient of each pixel is different in different directions, in orde...

Embodiment 2

[0109] An embodiment of the present invention provides a method for demosaicing, such as Figure 5 As shown, the method includes:

[0110] S201. The demosaicing device acquires a digital image in Bayer format, and acquires an n×n pixel array centered on a pixel at a current position in the digital image, where n is greater than or equal to 3.

[0111] In order to reduce the complexity and cost of optical path control and photosensitive imaging chips, the imaging raw data of most electronic products that can be used to shoot digital images generally adopts the Bayer format. In the digital image of Bayer format, only one of the three primary colors of red, green, and blue exists in each pixel, and the other two colors need to be interpolated with the help of the colors around the current pixel.

[0112] Specifically, the demosaicing device obtains a digital image in Bayer format, and when performing demosaic processing on it, it is necessary to obtain an n×n (n greater than or ...

Embodiment 3

[0193] The present invention provides a device for demosaicing, such as Figure 7 shown, including:

[0194] The obtaining unit 10 is configured to obtain the gradient value of the pixel at the current position in multiple preset directions, and to obtain the color value of the pixel at the current position in each target direction in the multiple preset directions, wherein, The target direction is a direction in which the gradient value of the current position pixel in the plurality of preset directions is smaller than the gradient threshold, the current position pixel has at least one target direction, and is used to The known color component value and the color average value to obtain the missing color component value of the pixel at the current position;

[0195] A determining unit 11, configured to determine the gradient threshold of the pixel at the current position according to the gradient values ​​in the plurality of preset directions acquired by the acquiring unit 1...

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 embodiment of the invention provides a mosaic removing method and device, and relates to the technical field of image processing. The mosaic removing method improves the color reproduction effect of pixels and is better in pixel actual color restoration effect. The method comprises the steps that gradients of a current position pixel in a plurality of preset directions are obtained and a gradient threshold is determined according to the gradients in the preset directions; relative luminance component information of the current position pixel is determined; according to the relative luminance component information of the current position pixel, color values of the current position pixel in various target directions are obtained, wherein the target directions are the directions, where the gradients of the current position pixel are smaller than the gradient threshold, in the preset directions; according to the color values of the current position pixel in all the target directions, an average color value is calculated; according to known color component values of the current position pixel and the average color value of the current position pixel, missing color component values of the current position pixel are obtained; according to the known color component values and the missing color component values, the current position pixel is output.

Description

technical field [0001] The present invention relates to the technical field of image processing, in particular to a method and device for demosaicing. Background technique [0002] With the continuous development of communication technology, more and more electronic devices can be used to capture digital images. In order to reduce the complexity and cost of optical path control and photosensitive imaging chips in electronic devices capable of shooting digital images, the imaging raw data of most electronic products generally adopts Bayer format. [0003] Each pixel in the Bayer format digital image only saves one of the three primary colors of red, green and blue (RGB, Red Green Blue) color components, and the other two color components are shared by its adjacent pixels. Such as figure 1 As shown, digital images in Bayer format are arranged in GRGR and BGBG formats, presenting a mosaic shape. When displaying and outputting digital images, in order to recover the true colo...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04N9/64G06T3/40
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