CN105611196B - Dead pixel image compensation method, apparatus and a terminal device - Google Patents

Dead pixel image compensation method, apparatus and a terminal device Download PDF

Info

Publication number
CN105611196B
CN105611196B CN 201510964167 CN201510964167A CN105611196B CN 105611196 B CN105611196 B CN 105611196B CN 201510964167 CN201510964167 CN 201510964167 CN 201510964167 A CN201510964167 A CN 201510964167A CN 105611196 B CN105611196 B CN 105611196B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
pixel
photosensitive
pixels
output
dead
Prior art date
Application number
CN 201510964167
Other languages
Chinese (zh)
Other versions
CN105611196A (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
Grant date

Links

Abstract

本发明提出一种图像坏点补偿方法、装置及终端设备,其中,预先提供的图像传感器包括:感光像素阵列,以及设置在感光像素阵列上的滤光片,滤光片包括滤光单元阵列,每个滤光单元覆盖m*n个感光像素并构成合并像素,其中m*n>1;方法包括:当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点;若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 The present invention provides a dead pixel image compensation method, apparatus and a terminal apparatus, wherein the image sensor is previously provided comprising: a photosensitive pixel array, and a color filter is disposed on a photosensitive pixel array, the filter comprising a filter unit array, each filter unit covers are m * n and the photosensitive pixels constituting the combined pixels, where m * n> 1; the method comprising: generating an output when the full-size image reading said photosensitive pixel array, the current is determined according to a preset detection policy a first photosensitive pixel is a bad point; determining if said first photosensitive pixels dead pixels, merging the first pixel compensation according to the output of the first photosensitive pixel belongs to the normal point defective pixel output. 实现了对图像传感器上坏点的检测和补偿,提高了输出图像的质量和清晰度。 On the image sensor to achieve a defective pixel detection and compensation for improving the quality and clarity of the output image.

Description

图像坏点补偿方法、装置及终端设备 Dead pixel image compensation method, apparatus and a terminal device

技术领域=〇〇1]雜卿細像处雜术领域,尤其涉及—_像坏点补偿施、賴及终端设备。 BACKGROUND = 〇〇1] heteroaryl surgery as fine art at the State heteroaryl, in particular as relates -_ dead pixel compensation is applied, and depends on the terminal device. 背景技术学技术和制缸艺的发展,图像传感勸像素曰益增加,如此大数量的像造过程中不可避免的会产生坏点。 BACKGROUND The development of science and technology system cylinder Arts, said image sensing pixels advised to increase benefits, such as a large number of manufacturing process will inevitably produce dead pixels. 传感器中的坏点,是指其数值不随光照度的^^〔;^銅—鹏_素点。 Dead pixels in the sensor, means that it does not change the value of the illuminance [^^; ^ Cu - Peng _ voxel points. 坏点的絲,会大大降__质量,_坏点,并对坏点进灯补偿,能够提高图像的质量。 Dead pixels wire, greatly reducing the quality __, _ dead pixels, dead pixels and into the lamp compensation, image quality can be improved.

[(顧]^前,麵坏点个獅瞧传麵_題行,如果坏点个翻过预设阐值, 该广品不货二同时坏点的另外一个管控参数是任何单位区域内的坏点个数不能超过阈值,这样的管控范围是防止坏点过于集中,过于集中会导致图像某一个区域整体全黑或者全白,无法识别。但是即使这样管控,出厂的图像传感器中的坏点始终存在。坏点的存在,会大大降低图像的质量。 [(Gu] ^ front surface of a dead pixel look pass lion face _ subject line, if a dead pixel explain turn preset value, the product does not cargo dead pixels wide while the other two control parameters of any unit region the number of dead pixels can not exceed the threshold value, the range of such control is to prevent the excessive concentration of dead pixels, is too concentrated will cause a certain area of ​​the entire image all black or all white, is not recognized. However, even this control, the image sensor in the factory dead pixels always present. bad points of presence, will greatly reduce the quality of the image.

发明内容 SUMMARY

[0004]本发明旨在至少在一定程度上解决相关技术中的技术问题之一。 [0004] The present invention to solve at least to some extent, one of the technical issues related to technology.

[0005]为此,本发明的第一个目的在于提出一种图像坏点补偿方法,该方法实现了对图像传感器上坏点的检测和补偿,提高了输出图像的质量和清晰度。 [0005] For this purpose, a first object of the present invention is to provide a dead pixel image compensation method, the method is implemented on the image sensor and compensate for defective pixel detection, improves the quality and clarity of the output image.

[0006]本发明的第二个目的在于提出一种图像坏点补偿装置。 [0006] A second object of the present invention is to provide an image compensating apparatus bad points.

[0007]本发明的第三个目的在于提出一种终端设备。 [0007] A third object of the present invention is to provide a terminal device.

[0008]为达上述目的,本发明第一方面实施例提出了一种图像坏点补偿方法,包括:预先提供的图像传感器包括:感光像素阵列,以及设置在所述感光像素阵列上的滤光片,其中, 所述滤光片包括滤光单兀阵列,每个滤光单元覆盖m*n个感光像素并构成合并像素,其中神n>l;所述方法包括以下步骤: [0008] To achieve the above object, a first aspect of the embodiments of the present invention proposes a dead pixel image compensation method, comprising: an image sensor provided in advance comprises: a filter photosensitive pixel array, and is provided on the photosensitive array of pixels sheet, wherein said filter comprises a single filter Wu array, each filter unit covers are m * n and the photosensitive pixels constituting the pixel merge, where god n> l; said method comprising the steps of:

[0009]当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点;若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [0009] When reading the pixel array of photosensitive outputs the generated full-size image, determining a first predetermined policy photosensitive pixels of the current detected according to whether the dead pixels; determining if the first photosensitive pixel dead pixel, according to the a first photosensitive pixel binning pixel belongs to the first point of the normal output of compensating the defective pixel output.

[0010]本发明实施例的图像坏点补偿方法,当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点;若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [0010] Image dead pixel compensation method according to an embodiment of the present invention, when generating a full size image reading outputs of said photosensitive pixel array, the photosensitive pixel is determined first whether the detected current dead pixels according to a preset policy; determining if said first photosensitive pixels, dead pixels, merging the first pixel compensation according to the output of said first photosensitive pixel belongs to the normal point defective pixel output. 由此,实现了对图像传感器上坏点的检测和补偿,提高了输出图像的质量和清晰度。 Thus, to achieve the detection and compensation of the dead pixels on the image sensor, to improve the quality and clarity of the output image. 为达上述目的,本发明第二方面实施例提出了一种图像坏点补偿装置,包括:图像传感器和图像处理器,其中, To achieve the above object, a second aspect of the embodiment of the present invention proposed an image dead pixel compensation apparatus, comprising: an image sensor and an image processor, wherein

[0012]所述图像传感器包括:感光像素阵列,以及设置在所述感光像素阵列上的滤光片, 其中,所述滤光片包括滤光单元阵列,每个滤光单元覆盖m*n个感光像素并构成合并像素, 其中m*n〉l; [0012] The image sensor comprising: a photosensitive pixel array, and is provided on the photosensitive pixel array filter, wherein the filter comprises an array of filter units, each filter unit covers are m * n and the photosensitive pixels constituting the combined pixels, where m * n> l;

[0013]所述图像处理器包括:第一检测模块,用于当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点;第一补偿模块,用于若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [0013] The image processor comprises: a first detecting module, for generating an output when reading the full-size image of the photosensitive pixel array, a first photosensitive pixels of the current is determined whether the detected bad points according to a preset policy; a first compensating means for determining if said first photosensitive pixels dead pixels, merging the first pixel compensation according to the output of said first photosensitive pixel belongs to the normal point defective pixel output.

[00M]本发明实施例的图像坏点补偿装置,当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点;若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [00M] dead pixel image compensating apparatus according to an embodiment of the present invention, when generating a full size image reading outputs of said photosensitive pixel array, determining a first predetermined policy photosensitive pixels of the current dead pixels in accordance with whether the detected; determining if said first photosensitive pixels, dead pixels, merging the first pixel compensation according to the output of said first photosensitive pixel belongs to the normal point defective pixel output. 由此,实现了对图像传感器上坏点的检测和补偿,提高了输出图像的质量和清晰度。 Thus, to achieve the detection and compensation of the dead pixels on the image sensor, to improve the quality and clarity of the output image. [0015]为达上述目的,本发明第三方面实施例提出了一种终端设备,包括如上所述的图像坏点补偿装置。 [0015] To achieve the above object, a third aspect of the embodiment of the present invention proposes a terminal apparatus, comprising an image dead pixel compensation apparatus described above.

[0016] 本发明实施例的终端设备,当读取所述感光像素阵列的输出生成全尺寸图像时, 根据预设策略确定当前检测的第一感光像素是否为坏点;若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [0016] The terminal apparatus according to an embodiment of the present invention, when generating a full size image reading outputs of said photosensitive pixel array, the photosensitive pixel is determined first whether the detected current dead pixels according to a preset policy; determining if the first photosensitive pixels, dead pixels, merging the first pixel compensation according to the output of said first photosensitive pixel belongs to the normal point defective pixel output. 由此,实现了对图像传感器上坏点的检测和补偿,提高了输出图像的质量和清晰度。 Thus, to achieve the detection and compensation of the dead pixels on the image sensor, to improve the quality and clarity of the output image.

附图说明 BRIEF DESCRIPTION

[0017] 本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中: [0017] The present invention described above and / or additional aspects and advantages from the following description of embodiments in conjunction with the accompanying drawings of the embodiments will become apparent and more readily appreciated, wherein:

[0018] 图1是本发明实施例提供的图像传感器的立体结构示意图; [0018] FIG. 1 is a schematic perspective view of the image sensor according to an embodiment of the present invention;

[0019] 图2是本发明一个实施例的图像坏点补偿方法的流程图; [0019] FIG 2 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention;

[0020]图3是本发明一个实施例的图像坏点补偿方法的流程图; [0020] FIG. 3 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention;

[0021]图4是本发明一个实施例的图像坏点补偿方法的流程图; [0021] FIG. 4 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention;

[0022]图5为一个红色滤光单元覆盖多个感光像素并构成合并像素的示意图; [0022] FIG. 5 is a red color filter unit covers a plurality of photosensitive pixels constituting the pixel and a schematic combined;

[0023] 图6是本发明一个实施例的图像坏点补偿方法的流程图; [0023] FIG. 6 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention;

[0024] 图7是本发明提供的图像传感器中的滤光单元阵列示意图; [0024] FIG. 7 is a schematic view of an image sensor array of the filter unit provided in the present invention;

[0025]图8是本发明提供的合并像素阵列示意图; [0025] FIG. 8 is a schematic view of a combined pixel array provided by the present invention;

[0026]图9是本发明一个实施例的图像坏点补偿方法的流程图; [0026] FIG. 9 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention;

[0027]图10是本发明一个实施例的图像坏点补偿装置的结构示意图; [0027] FIG. 10 is a schematic structural diagram of the image dead pixel compensation apparatus according to an embodiment of the present invention;

[0028]图11是本发明另一个实施例的图像坏点补偿装置的结构示意图; [0028] FIG. 11 is a schematic diagram of the image dead pixel compensation apparatus of the structure of another embodiment of the present invention;

[0029]图I2是本发明一个实施例的终端设备的结构示意图; [0029] FIG I2 is a schematic structural diagram of a terminal apparatus according to an embodiment of the present invention;

[0030]图13是本发明另一个实施例的终端设备的结构示意图。 [0030] FIG. 13 is a schematic structural diagram of a terminal device in another embodiment of the present invention.

具体实施方式 detailed description

[0031]下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 [0031] Example embodiments of the present invention is described in detail below, exemplary embodiments of the embodiment shown in the accompanying drawings, wherein same or similar reference numerals designate the same or similar elements or elements having the same or similar functions. 下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。 By following with reference to the embodiments described are exemplary, and are intended for explaining the present invention and should not be construed as limiting the present invention.

[0032]下面参考附图描述本发明实施例的图像坏点补偿方法、装置及终端设备。 [0032] image is described below with reference to the accompanying drawings dead pixel compensation method, apparatus and a terminal apparatus according to an embodiment of the present invention.

[0033]具体地,本实施例提供的图像坏点补偿方法被配置在具有图像传感器的终端设备中进行具体说明。 [0033] Specifically, the image dead pixel compensation method provided in this embodiment is configured to be specified in the terminal device having an image sensor. 需要注意的是,终端设备的类型很多,例如:手机、IPAD、智能穿戴设备等。 It should be noted that many types of terminal equipment, such as: mobile phones, IPAD, smart wearable devices. [0034]图1是本发明实施例提供的图像传感器的立体结构示意图。 [0034] FIG. 1 is a schematic perspective view of the image sensor according to an embodiment of the present invention.

[0035] 预先在终端设备中设置的图像传感器1,其中,图像传感器1可以是CCD或者CMOS传感器。 [0035] The image sensor set in advance in the terminal apparatus 1, which may be a CCD image sensor or a CMOS sensor.

[0036] 参见图1,图像传感器1包括:感光像素阵列11,以及设置在所述感光像素阵列11上的滤光片,其中,所述滤光片包括滤光单元阵列12,每个滤光单元121覆盖m*n个感光像素111并构成合并像素,其中m*n>l。 [0036] Referring to Figure 1, an image sensor comprising: an array of photosensitive pixel 11, and a filter disposed on the photosensitive pixel array 11, wherein said filter comprises a filter unit array 12, each filter cover unit 121 are m * n pixels 111 and the photosensitive pixels constituting the combined, where m * n> l.

[0037]由于环境亮度是影响图像传感器成像质量的一个关键因素,当拍照环境的光亮度过低时,生成的图像存在过多的影像噪点,使得图像不清晰。 [0037] Since the ambient brightness is a key factor affecting the image quality of the image sensor, when the photographing bright environment is too low, there is too much image generated image noise, so that the image is not clear.

[0038] 为了解决上述问题,基于本实施例中图1提供的图像传感器,可以实时检测拍照环境的光亮情况,确定是否根据感光像素阵列11的输出,将同一合并像素中m*n个感光像素111的输出相加获取合并像素值,输出与拍照光亮情况对应像素的图像。 [0038] In order to solve the above problems, based on an image sensor of the present embodiment 1 provides a graph can be bright real-time detection of the shooting environment, it is determined whether or not based on the output of the photosensitive pixel array 11, the same combined pixels are m * n photosensitive pixels adding 111 acquires output combined pixel value, and outputs a photographed image corresponding pixel light conditions.

[0039]因此,基于上述图1提供的图像传感器以及不同的图像生成方式,实施本发明提供的图像坏点补偿方法。 [0039] Accordingly, based on the above-described image sensor of FIG. 1 and provided in different image generation method, image dead pixel compensation method embodiment provided by the invention. 具体如下: details as follows:

[0040]图2是本发明一个实施例的图像坏点补偿方法的流程图。 [0040] FIG 2 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention.

[0041]如图2所示,本实施例是针对图像传感器输出生成全尺寸图像的情况,该图像坏点补偿方法包括以下步骤: [0041] 2, the present embodiment is directed to the image sensor outputs the generated full-size image, the image dead pixel compensation method comprising the steps of:

[0042] 步骤101,当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点。 [0042] Step 101, when generating a full size image reading outputs of said photosensitive pixel array, the photosensitive pixel is determined first whether the detected current dead pixels according to a preset policy.

[0043]具体地,参见图1,当图像传感器中感光像素阵列11中每个感光像素iii的进光量较大,感光程度较好,输出的图像非常清晰时,不用对合并像素中m*n个感光像素111的输出进行合并处理。 [0043] In particular, referring to Figure 1, the image sensor when a large array of photosensitive pixels in each photosensitive pixel 11 iii of the amount of light, preferably a photosensitive extent, when the output image is very clear, not to merge the m * n pixels the output of a photosensitive pixel 111 are merged. 而是直接根据感光像素阵列11中每个感光像素的输出,生成全尺寸图像。 But directly based on the output of each photosensitive pixel array 11 of photosensitive pixels to generate full-size image. [0044]针对图像传感器生成的全尺寸图像,根据预设策略确定当前检测的第一感光像素是否为坏点。 [0044] For the full-size image generated by the sensor, a first photosensitive pixel is determined whether the detected current dead pixels according to a preset policy. 其中,可以根据具体的应用场景设置不同的检测策略,确定当前检测的第一感光像素是否为坏点,举例说明如下: Wherein the different detection strategies may be provided depending on the specific application scenario, a first photosensitive pixel is determined whether the detected current dead pixels, illustrated as follows:

[0045]检测策略可以为通过预设的数据范围匹配当前检测的第一感光像素的输出,其中,预设的数据范围可以根据与第一感光像素相邻的感光像素的输出进行确定,其中,相邻的感光像素与第一感光像素对应的滤光单元颜色相同。 [0045] The policy can be detected by the preset data match the range of the output of the first photosensitive pixels of the current detection, wherein the predetermined data range may be determined based on an output pixel adjacent to the first photosensitive photosensitive pixels, wherein adjacent photosensitive pixel color filter unit and a first photosensitive pixels corresponding to the same.

[0046]如果第一感光像素的输出在预设的数据范围内,则确定第一感光像素为正常点; 如果第一感光像素的输出不在预设的数据范围内,则确定第一感光像素为坏点。 [0046] If the output of the first photosensitive pixel data in a predetermined range, it is determined that a normal first photosensitive pixel point; if the output of the first photosensitive pixel data is not the predetermined range, it is determined that the first photosensitive pixels dead pixels.

[0047]步骤1〇2,若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [0047] Step 1〇2, determining if said first photosensitive pixels dead pixels, merging the first pixel compensation according to the output of the first photosensitive pixel belongs to the normal point defective pixel output.

[0048]如果确定当前检测的第一感光像素为坏点,则根据第一感光像素归属的第一合并像素中正常点的输出补偿坏点(即第一感光像素)的输出。 [0048] If it is determined first photosensitive pixels of the current dead pixels is detected, then (i.e., a first photosensitive pixel) according to an output of the first combined output compensation dead pixels photosensitive pixel belongs to a first pixel in the normal dot.

[0049] 需要注意的是,由于第一感光像素归属的第一合并像素覆盖了m*n个感光像素111,其中m*n>l。 [0049] It is noted that, since the first photosensitive pixel binning pixel belongs to the first covering are m * n photosensitive pixels 111, wherein the m * n> l. 随着m*n的变化,第一合并像素覆盖的感光像素ill的数量以及正常点的数量也不同。 With the change of m * n, and the number of normal dot ill first photosensitive pixel binning pixel cover also different. 因此,根据正常点的输出对坏点进行补偿的方式也不同。 Thus, according to the output of the normal mode points to compensate for dead pixels are different.

[0050] 通过第一合并像素中正常点的输出对坏点(即第一感光像素)的输出进行补偿后, 使第一感光像素的输出符合正常的数据范围,避免采用亮点或者暗点对应的输出,从而提尚输出图像的质量和清晰度。 [0050] After the combined output of the first pixel in the normal point of dead pixels to an output (i.e., a first photosensitive pixel) compensating the output of the first photosensitive pixel data in line with the normal range, avoid the use of bright or dark spots corresponding to output, thereby improving the quality and clarity of output still images.

[0051]本实施例提供的图像坏点补偿方法,当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点,若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [0051] The present embodiments provide an image of the dead pixel compensation method embodiments, when generating a full-size image reading outputs of said photosensitive pixel array, the photosensitive pixel of the first predetermined policy determines whether the currently detected bad points, if it is determined in accordance with the said first photosensitive pixels, dead pixels, merging the first pixel compensation according to the output of said first photosensitive pixel belongs to the normal point defective pixel output. 实现了对图像传感器上的坏点的检测和补偿,提高了输出图像的质量和清晰度。 To achieve the detection and compensation of the dead pixels on the image sensor, to improve the quality and clarity of the output image.

[0052]基于上述实施例,由于第一感光像素归属的第一合并像素覆盖了m*n个感光像素111,其中m*n>l。 [0052] Based on the above embodiment, since the first pixel merging the first photosensitive pixel belongs to the covered photoreceptor are m * n pixels 111, wherein the m * n> l. 随着m*n的变化,第一合并像素覆盖的感光像素m的数量以及正常点的数量也不同。 With the change of m * n, the number of pixels m of photosensitive pixel coverage and a first combined normal dot is also different. 因此,可以设置不同的策略检测坏点,并对坏点进行补偿。 Therefore, we can set a different strategy to detect dead pixels, dead pixels and compensate. 具体说明如下: Specified as follows:

[0053]图3是本发明一个实施例的图像坏点补偿方法的流程图。 [0053] FIG. 3 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention.

[0054]如图3所示,本实施例针对当tn*n = 2时,当前待检测的第一感光像素归属的第一合并像素包括:当前检测的第一感光像素和一个第二感光像素,针对步骤101,当读取所述感光像素阵列的输出生成全尺寸图像时,该图像坏点补偿方法包括以下步骤: [0054] 3, when the present embodiment is directed tn * n = 2, a first photosensitive pixel of the current to be detected belongs combined first pixel comprising: a first photosensitive pixel of the current detected and a second photosensitive pixel for step 101, the output generator when the full-size image reading said photosensitive pixel array, the image dead pixel compensation method comprising the steps of:

[0055]步骤201,根据所述第一感光像素和所述第二感光像素的输出获取第一均值。 [0055] Step 201, obtaining a first mean value based on an output of the first pixel and the second photosensitive photosensitive pixels.

[0056]步骤202,获取所述第一感光像素的输出与所述第一均值的差的第一绝对值。 [0056] Step 202, obtaining a first difference between the output of the absolute value of the first pixel and the first photosensitive mean.

[0057]步骤203,如果所述第一绝对值大于等于预设的第一阈值,则确定所述第一感光像素为坏点。 [0057] Step 203, if the first absolute value is greater than a first threshold equal to a preset value, determining that the first photosensitive pixels dead pixels.

[0058]步骤204,将所述第一感光像素的输出替换为所述第二感光像素的输出。 [0058] Step 204, the output of said first photosensitive pixels replacing the output of the second photosensitive pixels.

[0059]具体地,本实施例针对每个滤光单元覆盖m*n = 2个感光像素的情况,那么每个合并像素中包括两个像素点。 [0059] In particular, the present embodiments are to cover the filter unit for each of m * n = 2 th case of photosensitive pixels, each pixel comprises two merged pixels. 因此,需要强调的是,本实施例是针对每个合并像素中最多只有一个坏点的情况进行说明,如果每个合并像素中有两个坏点,则不符合产品出厂的管控参数,因此不属于本发明讨论的范围。 Therefore, it is emphasized that the present embodiment is directed to the case where only one dead pixel in each combined pixel will be described in most, if there are two dead pixels in each pixel merge, the control parameter is not in line with the factory products, it is not within the scope of the present invention is discussed.

[0060] 本实施例主要是根据第一合并像素中各感光像素输出的均值检测第一感光像素是否为坏点,具体过程如下: [0060] The present embodiment according to the first embodiment is mainly combined pixels to detect the average output of a first photosensitive pixels photosensitive pixel is a bad point, the specific process is as follows:

[0061] 首先,根据当前检测的第一感光像素的输出和另外一个第二感光像素的输出获取第一均值。 [0061] First, a first mean value based on an output of the first photosensitive pixels of the current detection and the output of another second photosensitive pixel. 然后,获取当前检测的第一感光像素的输出与该第一均值的差的第一绝对值。 Then, the first obtaining the difference between the output of the absolute value of the mean value of the first pixel of the first photosensitive currently detected.

[0062] 比较第一绝对值与预设的第一阈值的大小,其中,第一阈值的设置方式有很多,可以是根据实验数据设置的,也可以是根据预设的数学模型生成的,例如:根据上述的第一均值和预设的第一系数确定所述第一阈值,其中,所述第一系数大于〇且小于1。 [0062] comparing the first absolute value with a preset threshold value of a first size, wherein the arrangement has a first threshold number may be set based on experimental data, may be generated according to a predetermined mathematical model, e.g. : determining the first threshold based on the first mean and a first coefficient preset, wherein the first coefficient is greater than and less than 1 billion.

[0063]如果比较获知第一绝对值大于等于预设的第一阈值,则确定第一感光像素为坏点,并且将所述第一感光像素的输出替换为所述第二感光像素的输出,从而对坏点进行补偿。 [0063] If the absolute value is greater than a first comparison is known equal to a preset first threshold, determining a first photosensitive pixels, dead pixels, and the output of said first photosensitive pixels replace the output of the second photosensitive pixels, thereby compensating for dead pixels. 如果比较获知第一绝对值小于预设的第一阈值,则确定第一感光像素为正常点,不需要进行补偿。 If the comparison is less than the absolute value of the first known preset first threshold, determining a normal first photosensitive pixel point, we do not need to be compensated.

[0064]本实施例提供的图像坏点补偿方法,当读取所述感光像素阵列的输出生成全尺寸图像时,根据所述第一感光像素和所述第二感光像素的输出获取第一均值,获取所述第一感光像素的输出与所述第一均值的差的第一绝对值,如果所述第一绝对值大于等于预设的第一阈值,则确定所述第一感光像素为坏点,将所述第一感光像素的输出替换为所述第二感光像素的输出。 [0064] The present embodiments provide an image of the dead pixel compensation method embodiments, when generating a full-size image reading outputs of said photosensitive pixel array, obtaining a first mean value based on an output of the first pixel and the second photosensitive photosensitive pixel obtaining a first difference between an output of the absolute value of said first mean value of a first photosensitive pixel, if said first absolute value is greater than a first threshold equal to a preset value, determining that the first photosensitive pixels as bad point, to replace the output of the second output of said first photosensitive pixels photosensitive pixels. 实现了对图像传感器上坏点的检测和补偿,提高了输出图像的质量和清晰度。 On the image sensor to achieve a defective pixel detection and compensation for improving the quality and clarity of the output image.

[0065]图4是本发明一个实施例的图像坏点补偿方法的流程图。 [0065] FIG. 4 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention.

[0066]如图4所示,本实施例针对当m*n> = 4时,当前待检测的第一感光像素归属的第一合并像素包括:当前检测的第一感光像素和多个第二感光像素,针对步骤1〇1,当读取所述感光像素阵列的输出生成全尺寸图像时,读图像坏点补偿方法包括以下步骤. [0066] As shown in FIG. 4, when the present embodiment is directed to m * n> = 4 when the first photosensitive pixels of the current to be detected belongs combined first pixel comprising: a first photosensitive pixels and a plurality of second current detecting photosensitive pixels for 1〇1 step, when generating a full-size image reading outputs of said photosensitive pixel array, an image reading method comprising the steps of compensating dead pixels.

[0067]步骤301,根据所述多个第二感光像素的输出,确定与最大输出Rnmx相邻的输出Rmax—1〇 [0067] Step 301, the output of said second plurality of photosensitive pixels, determining a maximum output Rnmx adjacent output Rmax-1〇

[0068]步骤302,获取所述第一感光像素的输出与Rj^x-丨的差的第二绝对值。 [0068] Step 302, obtaining a second absolute value Rj ^ x- Shu difference between the output of said first photosensitive pixels.

[0069]步骤303,判断所述第二绝对值是否小于预设的第二阈值,若否,执行步骤3〇4,若是,执彳丁步骤305。 [0069] Step 303, determining whether said second absolute value is smaller than a second predetermined threshold, if no, proceed to step 3〇4, if yes, perform step 305 butoxy left foot.

[0070]步骤304,确定所述第一感光像素为坏点,将所述第一感光像素的输出替换为Rmax-1〇 [0070] Step 304, determining that the first photosensitive pixel dead pixel, replaces the output of said first photosensitive pixels is Rmax-1〇

[0071]步骤3〇5,确定与最小输出Rmin相邻的输出腕柯。 [0071] Step 3〇5, determining the minimum output Rmin adjacent output wrist Ke.

[0072]步骤3〇6,获取所述第一感光像素的输出与Rmin+1的差的第三绝对值。 [0072] Step 3〇6, acquiring the first photosensitive pixel and output the absolute value of the difference between the third Rmin + 1.

[0073]步骤3〇7,如果所述第三绝对值大于等于预设的第三阈值,则确定所述第一感光像素为坏点。 [0073] Step 3〇7, if the third absolute value greater than or equal to a third preset threshold, determine that the first photosensitive pixels dead pixels.

[0074]步骤3〇8,将所述第一感光像素的输出替换为Rmin+u [0074] Step 3〇8, the output of said first photosensitive pixels replace Rmin + u

[0075]具体地,本实施例针对每个滤光单元覆盖m*n> = 4个感光像素的情况,那么每个合并像素中包括至少四个像素点。 [0075] Specifically, the present embodiment for each of filter unit covering the m * n> = 4 case of photosensitive pixels, each pixel comprising at least four combined pixels. 因此,需要强调的是,本实施例是针对每个合并像素中最多只有两个坏点的情况进行说明,如果每个合并像素中有两个以上的坏点,则不符合产品出厂的管控参数,因此不属于本发明讨论的范围。 Therefore, it is emphasized that the present embodiment is directed to each merged pixel can only have two dead pixels will be described where, if more than two dead pixels in each combined pixel, the control parameters of the product is not in line with the factory therefore outside the scope of the present invention discussed.

[0076]本实施例主要是根据第一合并像素中多个第二感光像素的输出确定当前检测的第=感光像素是否为坏点中的亮点类型,如果是亮点,则确定第一感光像素是坏点,如果不是亮点,再确定第一感光像素是否为坏点中的暗点类型,如果是暗点,则确定第一感光像素是坏点,具体过程如下: [0076] The present embodiment is mainly determined according to the output of a first plurality of pixel merge of the second photosensitive pixels = the photosensitive pixel of the current detecting whether the type of dead pixels in the bright spot, if it is bright, it is determined that the first photosensitive pixels is bad points, if not the highlight, then determining a first photosensitive pixel is a dark spot type of dead pixels, if it is a dark spot, it is determined that the first photosensitive pixels are defects in a specific process is as follows:

[0077]图5为一个红色滤光单元覆盖多个感光像素并构成合并像素的示意图。 [0077] FIG. 5 is a red color filter unit covers a plurality of photosensitive pixels and a schematic configuration of the combined pixel.

[0078] 参见图1和图5所示,红色滤光单元121覆盖m*n个感光像素111并构成第一合并像素,其中,m*n> = 4。 [0078] Referring to FIGS. 1 and shown in FIG. 5, the filter unit 121 covers the red are m * n pixels 111 and the photosensitive pixels constituting the first merging, wherein, m * n> = 4. 假设当前检测的点是第一合并像素中的Rij,具体步骤如下: It assumed that the current detection point is a first combined pixels Rij, the following steps:

[0079]首先,将第一合并像素中剩下的m*nl个第二感光像素的输出按照顺序排列如下(例如从小到大来排序):Rmin,Rmin+l,Rmin+2......Rmax-2?Rmax-1,Rmax; [0079] First, the first combined pixel outputs m * nl remaining second photosensitive pixels arranged in the following order (e.g., sorted in ascending): Rmin, Rmin + l, Rmin + 2 .... ? ..Rmax-2 Rmax-1, Rmax;

[0080] 然后,确定与最大输出Rmax相邻的输出Rmax-1,获取第一感光像素的输出与Rmax-1的差的第二绝对值。 [0080] Then, the maximum output is determined adjacent the output Rmax Rmax-1, obtaining an absolute value of the second output of the first photosensitive pixel difference between the Rmax-1.

[0081] 进而,判断第二绝对值是否小于预设的第二阈值,其中,第二阈值的设置方式有很多,可以是根据实验数据设置的,也可以是根据预设的数学模型生成的,例如: [0081] Further, it is determined whether the absolute value is smaller than a second preset second threshold value, wherein the second threshold value setting mode there are many, may be set based on experimental data, it may be generated according to a predetermined mathematical model, E.g:

[0082] 根据第一合并像素中剩下的m*nl个第二感光像素的输出获取第二均值,根据所述第二均值和预设的第二系数确定所述第二阈值,其中,所述第二系数大于0且小于1。 [0082] * Output nl second photosensitive pixels to obtain a second mean value based on the first pixel merging the remaining m, determining the second threshold based on the mean value and the second predetermined second coefficient, wherein the said second coefficient is greater than 0 and less than 1.

[0083] 如果判断第二绝对值大于等于预设的第二阈值,则确定所述第一感光像素为亮点,即第一感光像素为坏点,将所述第一感光像素的输出替换为Rmax-1,从而对坏点进行补偿。 [0083] If it is determined equal to a preset second absolute value is greater than a second threshold, determining that the first photosensitive pixels as bright spots, i.e., a first photosensitive pixels, dead pixels, replacing the pixel output of the first photosensitive Rmax is -1, thereby compensating for dead pixels.

[0084] 进一步地,如果判断第二绝对值小于预设的第二阈值,则确定第一感光像素不是亮点,进而检测第一感光像素是否为暗点,具体为: [0084] Further, if the second absolute value determination less than a predetermined second threshold value, determining a first highlight the photosensitive pixels are not, and further detects a first photosensitive pixel is a dark spot, in particular:

[0085] 首先,按照上述顺序确定最小输出Rmin相邻的输出Rmin+1,获取所述第一感光像素的输出与Rmin+1的差的第三绝对值。 [0085] First, the minimum output in this order adjacent Rmin Rmin + 1 output, obtaining a first photosensitive pixel and output the difference between the absolute value of the third Rmin + 1.

[0086] 进而,判断第三绝对值是否小于预设的第三阈值,其中,第三阈值的设置方式有很多,可以是根据实验数据设置的,也可以是根据预设的数学模型生成的,例如: [0086] Further, it is judged if the absolute value is less than the third preset third threshold value, wherein the third threshold arrangement there are many, may be set based on experimental data, it may be generated according to a predetermined mathematical model, E.g:

[0087] 根据第一合并像素中剩下的m*nl个第二感光像素的输出获取第二均值,根据所述第二均值和预设的第三系数确定所述第三阈值,其中,所述第三系数大于0且小于1。 [0087] * Output nl second photosensitive pixels to obtain a second mean value based on the first pixel merging the remaining m, the third threshold is determined based on said second mean value and a third predetermined coefficient, wherein the said third coefficient is greater than 0 and less than 1.

[0088] 如果判断第三绝对值大于等于预设的第三阈值,则确定第一感光像素为暗点,gp 第一感光像素为坏点。 [0088] If it is determined equal to a third absolute value greater than a preset third threshold value, it is determined that a first photosensitive pixel dark spot, dead pixels GP first photosensitive pixels. 将所述第一感光像素的输出替换为Rmin+1,从而对坏点进行补偿。 The output of the first photosensitive pixels are replaced Rmin + 1, thereby compensating for dead pixels. [0089]如果判断第三绝对值小于预设的第三阈值,则确定第一感光像素既不是亮点也不是暗点,即第一感光像素为正常点,不需要进行补偿处理。 [0089] If the absolute value is less than the third determination preset third threshold value, it is determined that neither the first photosensitive pixel is not highlight dark spots, i.e., a first photosensitive pixel is a normal point, compensation processing is not required.

[0090] 本实施例提供的图像坏点补偿方法,当读取所述感光像素阵列的输出生成全尺寸图像时,根据第一合并像素中与最大输出的相邻的输出RmaX-l检测第一感光像素是否为亮点,如果是,则用Rmax-1对第一合并像素进行补偿,如果不是,再根据第一合并像素中与最小输出的相邻的输出Rmin+1检测第一感光像素是否为暗点,如果是,则用Rmin+1对第一合并像素进行补偿。 [0090] The present embodiments provide an image of the dead pixel compensation method embodiments, when generating a full-size image reading outputs of said photosensitive pixel array, according to a first combined with adjacent pixels of the maximum output of the first detector output RmaX-l photosensitive pixel is a bright spot, if so, Rmax-1 were combined to compensate for the first pixel, if not, then according to the first pixel and the adjacent minimum combined output an output Rmin + 1 detects whether the first photosensitive pixels dark spots, if yes, merging the first Rmin + 1 pixel compensation. 实现了对图像传感器上坏点的检测和补偿,提高了输出图像的质量和清晰度。 On the image sensor to achieve a defective pixel detection and compensation for improving the quality and clarity of the output image.

[0091] 图6是本发明一个实施例的图像坏点补偿方法的流程图。 [0091] FIG. 6 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention.

[0092] 如图6所示,本实施例是针对图像传感器输出生成合并图像的情况,该图像坏点补偿方法包括以下步骤: [0092] shown in Figure 6, the present embodiment is a case of generating combined output image for the image sensor, the image dead pixel compensation method comprising the steps of:

[0093] 步骤401,当根据所述感光像素阵列的输出,将属于同一合并像素中的个感光像素的输出相加获取合并像素值生成合并图像时,根据预设策略确定当前检测的第一合并像素是否为坏点。 When [0093] Step 401, when the output of said photosensitive array of pixels belonging to the same output of a photosensitive pixel merge of the pixel addition obtain combined pixel value generating the merged image, determining a first combined current according to a preset detection policy pixel is a bad point.

[0094]具体地,参见图1,当检测获知图像传感器中感光像素阵列11中每个感光像素111 的进光量较小,感光程度较差,影像噪点较多,导致输出的图像非常不清楚。 [0094] In particular, referring to Figure 1, when detecting that the image sensor is known in the photosensitive pixel array 11 in the amount of light of each photosensitive pixel 111 is small, the degree of poor photosensitive, image noise more, resulting in the output image is very clear. 因此,需要根据感光像素阵列11中每个感光像素111的输出,将同一合并像素中多个感光像素的输出进行合并处理生成合并图像,以提高进光量,弥补单个感光像素进光量不足的缺陷,提高输出图像的清晰度。 Therefore, according to the output of a photosensitive pixel array 11 in each of the photosensitive pixels 111, and outputs the same combined pixel a plurality of photosensitive pixels are merged to generate merged image, to increase the amount of light, make up the single photosensitive pixel intake insufficient light defects, improve the clarity of the output image.

[0095] 针对图像传感器生成的合并图像,根据预设策略确定当前检测的第一合并像素是否为坏点。 [0095] The combined image generated by the sensor for determining a first combined pixels of the current detected whether the dead pixels according to a preset policy. 其中,可以根据具体的应用场景设置不同的检测策略,确定当前检测的第一合并像素是否为坏点,举例说明如下: Wherein the different detection strategies may be provided depending on the specific application scenario, a first merge determining whether the pixel of the current detecting dead pixels, illustrated as follows:

[0096]检测策略可以为通过预设的数据范围匹配当前检测的第一合并像素的合并合并像素值,其中,预设的数据范围可以根据与第一合并像素相邻的合并像素的输出进行确定, 其中,相邻的合并像素与第一合并像素对应的滤光单元颜色相同。 Merged pixel values ​​[0096] Detection can match the current policy for the detected data through a preset range of the first combined pixels, wherein the predetermined data range may be determined based on the output adjacent to the first pixel binning combined wherein, adjacent to the same pixels combined with the combined first color pixels corresponding filter unit.

[0097]如果第一合并像素的合并像素值在预设的数据范围内,则确定第一合并像素为正常点;如果第一合并像素的合并像素值不在预设的数据范围内,则确定第一合并像素为坏点。 [0097] If the combined value of the first pixel binning pixel data within a preset range, it is determined as a normal pixel merging the first point; the combined pixel value if the pixel is not first combined predetermined data range, it is determined that the first a merger pixels dead pixels.

[0098] 步骤402,若确定所述第一合并像素为坏点,则根据与所述第一合并像素相邻的多个第二合并像素的合并像素值补偿所述坏点的输出,其中,所述第一合并像素与所述第二合并像素对应相同颜色的滤光单元。 [0098] Step 402, determining if the first pixel is combined dead pixel, the dead pixels of the output pixel value compensation in accordance with the combined first plurality of pixels adjacent to the second merger merging of pixels, wherein merging the first pixel and the second pixel corresponding to the same color combined filter unit. 100 9J如果确定当前检测的第一合并像素为坏点,则根据与第一合并像素相邻的多个第二合并像素的合并像素值补偿坏点(即第一合并像素)的输出,其中,第一合并像素与第二合并像素对应相同颜色的滤光单元。 100 9J first determines if the merge is detected pixels of the current dead pixel, the dead pixels in accordance with the combined pixel value compensation pixels adjacent to the first plurality of combined second combined pixels (i.e., a first combined pixel) output, wherein the combined first and second combined pixel corresponding to the pixel of the same color filter unit.

[0100]需要强调的是,上述提到的与所述第一合并像素相邻的多个第二合并像素的合并像素值可以为预设范围内的多个第二合并像素,例如:以第一合并像素为中心的5*5矩阵内的多个第二合并像素。 [0100] It should be emphasized that the combined pixel value to the first pixel adjacent to the merged-mentioned plurality of pixels may be combined as a second plurality of pixels within a second preset range combined, for example: in the first merging a plurality of the second centered on the pixel in the combined pixel 5 * 5 matrix.

[m01]通过多个第二合并像素的合并像素值对坏点(即第一合并像素)的合并像素值进行补偿后,使第一合并像素的合并像素值符合正常的数据范围,避免采用亮点或者暗点对应的输出,从而提尚输出图像的质量和清晰度。 [M01] After the combined pixel value compensated by a plurality of dead pixels combined pixel value (i.e., a first combined pixels) combined second pixel, the combined value of the first pixel binning pixel data in line with the normal range, avoid the use of highlights or the dark spots corresponding to the output, thereby improving the quality and clarity of output still images.

[01 02]本实施例提供的图像坏点补偿方法,当根据所述感光像素阵列的输出,将属于同一合并像^中的个感光像素的输出相加获取合并像素值生成合并图像时,根据预设策略确定当前检测的第一合并像素是否为坏点,若为坏点,则根据与所述第一合并像素相邻的多个第二合并像素的合并像素值补偿所述坏点的输出,其中,所述第一合并像素与所述第二合并像素对应相同颜色的滤光单元。 When the [0102] image dead pixel compensation method provided in the present embodiment, the output ^ photosensitive pixel adding obtain combined pixel value generating the merged image when the output of said photosensitive array of pixels belonging to the same combined image, according to the combined first predetermined policy determining whether the pixel of the current detecting dead pixels, as if the dead pixel, the dead pixels in accordance with the combined pixel value compensated with the pixel adjacent to the first plurality of combined pixels of the second combined output , wherein the combined first pixel and the second pixel corresponding to the same color combined filter unit. 实现了对图像传感器上合并像素的坏点检测和补偿,提高了输出的合并图像的质量和清晰度。 Detecting dead pixels and implements compensation for combined pixels on the image sensor, to improve the quality and clarity of the combined image output.

[0103]为了更加清楚的描述对合并像素的坏点检测和补偿,结合图7-图9具体说明如下: [0103] In order to more clearly describe the detection and compensation of the dead pixels of the pixel merge, particularly in conjunction with Figures 7-9 as follows:

[0104]图7是本发明提供的图像传感器中的滤光单元阵列示意图。 [0104] FIG. 7 is a schematic view of an image sensor array of the filter unit provided in the present invention.

[0105]图8是本发明提供的合并像素阵列示意图。 [0105] FIG. 8 is a schematic view of a combined pixel array provided by the present invention.

[0106] 参见图1和图7,以每个滤光单元121覆盖2*2个感光像素111为例进行说明: [0106] Referring to FIGS. 1 and 7, the filter unit 121 to each 2 * 2 covers the photosensitive pixels 111 as an example:

[0107] 将每个滤光单元121覆盖的2*2个个感光像素的输出相加,换句话说,将分别相邻的颜色相同的感光像素的输出合并为一个单色像素。 [0107] Each output of the filter unit 121 covers all of the photosensitive pixel 2 * 2 are added, in other words, the output of the same color are adjacent to the photosensitive pixels into one monochrome pixel. 由于光照的微小差异,每个感光像素111所对应的输出也可能不同,因此合并像素的输出综合了其2*2个感光像素111的输出。 Due to slight differences in illumination, each photosensitive pixel 111 may be different corresponding to the output, the output of the integrated combined pixels 2 * 2 outputs the photosensitive pixels 111. 生成的图像的像素就减小为原来的1 /4,参见图8。 Pixels of the image generated is reduced to the original 1/4, see Fig.

[0108]例如:如果图像传感器的感光像素阵列为16M,每个滤光单元121覆盖的2*2个感光像素111并构成的合并像素,将每个合并像素中的4个感光像素的输出相加读取合并像素值,生成的图像的像素就减小为4M。 [0108] For example: if the photosensitive pixel of the image sensor array 16M, each filter unit cover 1212 * 111 pixels and two light pixels constituting the combined, the combined output of each pixel in the photosensitive pixels of four phases adding the combined pixel value is read, generating a pixel image is reduced to 4M.

[0109]图9是本发明一个实施例的图像坏点补偿方法的流程图。 [0109] FIG. 9 is a flowchart of the image dead pixel compensation method according to an embodiment of the present invention.

[0110]如图9所示,本实施例是针对图8的合并像素阵列,该图像坏点补偿方法包括以下步骤: [0110] As shown in FIG. 9, the present embodiment is an embodiment for merging pixel array of FIG. 8, the image dead pixel compensation method comprising the steps of:

[0111]步骤501,根据多个与第一合并像素相邻的第二合并像素的合并像素值获取第三均值。 [0111] Step 501, acquiring a third plurality of combined pixel value average according to the second pixel adjacent to the first combined merged pixel.

[0112]步骤502,获取第一合并像素的合并像素值与第三均值的差的第四绝对值。 [0112] Step 502, acquiring a fourth absolute difference combined pixel value of the third pixel of the first combined mean.

[0113] 步骤5〇3,如果第四绝对值大于等于预设的第四阈值,则确定所述第一合并像素为坏点,将所述第一合并像素的输出替换为所述第三均值。 [0113] Step 5〇3, if the fourth absolute value greater than equal to a preset fourth threshold, determining that the first pixel is combined dead pixels, replacing the first combined output of said third average pixel .

[0114] 具体地,针对图8所示的合并像素阵列,假设Ra为当前检测的第一合并像素,根据多个与第一合并像素相邻的第二合并像素的合并像素值获取第三均值,即求取Rb、Rd、Re、 Rf 4个pixel的均值ravg= (Rb+Rd+Re+Rf)/4; [0114] Specifically, a combined pixel array shown in FIG. 8, Ra is assumed that a first pixel currently detected combined, and the combined pixel value to the first plurality of pixels adjacent to the second combined pixel acquiring a third combined mean , i.e. strike Rb, mean ravg Rd, Re, Rf 4 th pixel is = (Rb + Rd + Re + Rf) / 4;

[0115] 预先根据第三均值和预设的第四系数确定第四阈值,其中,所述第四系数大于〇且小于1。 [0115] a fourth predetermined threshold value and the third mean value of a fourth predetermined coefficients, wherein the fourth coefficient less than 1 and greater than a billion. 即第四阈值rth = ravg*0.2 (系数此处假设为0.2) 10116J获取弟一台开像累的合并像素值与第三均值的差的第四绝对值,如果第四绝对值大于等于预设的第四阈值,则确定所述第一合并像素为坏点。 I.e., a fourth threshold value rth = ravg * 0.2 (here assumed to be the coefficient 0.2) 10116J brother acquired a fourth opening as absolute values ​​of differences accumulated combined pixel value of the third mean, if the absolute value is greater than equal to a preset fourth a fourth threshold value, determining that the first pixel is combined dead pixels. 将所述第一合并像素的输出替换为所述第三均值。 The combined output of the first pixel is replaced with the third average. 即若I Ra-ravg |小于等于rth,则Ra为正常点,不需补偿,若| Ra-ravg 大于rth,则表明Ra为坏点,用ravg代替Ra进行补偿。 That is, if I Ra-ravg | Rth less, then Ra is a normal point, without compensation, if | Ra-ravg greater than Rth, it indicates that Ra is dead pixels, instead of using ravg Ra compensated.

[0117]为了实现上述实施例,本发明还提出一种图像坏点补偿装置。 [0117] In order to achieve the above-described embodiments, the present invention also provides a dead pixel image compensating apparatus.

[0118]图1〇是本发明一个实施例的图像坏点补偿装置的结构示意图。 [0118] FIG 1〇 is a schematic structural diagram of the image dead pixel compensation apparatus of the embodiment of the present invention.

[0119]参见图10所示,该图像坏点补偿装置包括: [0119] Referring to FIG. 10, the image dead pixel compensation apparatus comprising:

[0120]图像传感器1和图像处理器2,其中, [0120] 1 image sensor and an image processor 2, wherein,

[0121]所述图像传感器1具体结构参见图1,具体包括:感光像素阵列n,以及设置在所述感光像素阵列11上的滤光片,其中,所述滤光片包括滤光单元阵列12,每个滤光单元121覆盖m*n个感光像素111并构成合并像素,其中m*n>i; [0121] The specific configuration of image sensor 1 Referring to Figure 1, specifically comprising: an array of photosensitive pixel n, and a filter disposed on the photosensitive pixel array 11, wherein said filter comprises a filter unit array 12 each filter unit 121 covers are m * n pixels 111 and the photosensitive pixels constituting the combined, where m * n> i;

[0122] 所述图像处理器2包括: [0122] The image processor 2 comprises:

[0123]第一检测模块21,用于检测拍照环境是否达到预设亮度; [0123] The first detection module 21 for detecting the brightness reaches the preset photographing environment;

[0124]第一补偿模块22,用于若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [0124] a first compensation module 22, for determining if said first photosensitive pixels dead pixels, merging the first pixel compensation according to the output of said first photosensitive pixel belongs to the normal point defective pixel output.

[0125]在一个实施例中,当m*n = 2时,所述第一合并像素包括:当前检测的第一感光像素和一个第二感光像素; [0125] In one embodiment, when m * n = 2, the combined first pixel comprising: a first photosensitive pixel of the current detected and a second photosensitive pixel;

[0126]所述第一检测模块21用于: [0126] The first detection module 21 is configured to:

[°127]根据所述第一感光像素和所述第二感光像素的输出获取第一均值; [° 127] obtaining a first mean value based on an output of the first pixel and the second photosensitive photosensitive pixel;

[0128] 获取所述第一感光像素的输出与所述第一均值的差的第一绝对值; [0128] obtaining an absolute value of the difference of the first output of the first pixel of a first photosensitive mean;

[0129]如果所述第一绝对值大于等于预设的第一阈值,则确定所述第一感光像素为坏占. [0129] if said first absolute value is greater than a first threshold equal to a preset value, determining that the first photosensitive pixels as bad accounts.

[0130]所述第一补偿模块22用于: [0130] 22 of the first compensation module configured to:

[0131]将所述第一感光像素的输出替换为所述第二感光像素的输出。 [0131] The output of the first photosensitive pixel replacing the output of the second photosensitive pixels.

[0132] 进一步地,所述第一检测模块21还用于: [0132] Further, the first detection module 21 is further configured to:

[0133] 根据所述第一均值和预设的第一系数确定所述第一阈值,其中,所述第一系数大于0且小于1。 [0133] determines the first threshold value based on said first mean value and a first predetermined coefficient, wherein the first coefficient is greater than 0 and less than 1.

[0134] 在另一个实施例中,当m*n> = 4时,所述第一合并像素包括:当前检测的第一感光像素和多个第二感光像素; [0134] In another embodiment, when m * n> = 4, the combined first pixel comprising: a first photosensitive pixel of the current detection and the second plurality of photosensitive pixels;

[0135] 所述第一检测模块21用于: [0135] The first detection module 21 is configured to:

[0136] 根据所述多个第二感光像素的输出,确定与最大输出Rmax相邻的输出Rmax-1; [0136] The output of the second plurality of photosensitive pixels, determining a maximum output of adjacent output Rmax Rmax-1;

[0137]获取所述第一感光像素的输出与Rmax-1的差的第二绝对值; [0137] acquiring the first photosensitive pixel output difference Rmax-1 and a second absolute value;

[0138] 如果所述第二绝对值大于等于预设的第二阈值,则确定所述第一感光像素为坏占. [0138] if said second absolute value is greater than a second threshold equal to a preset value, determining that the first photosensitive pixels as bad accounts.

[0139] 所述第一补偿模块22用于: [0139] 22 of the first compensation module configured to:

[0140] 将所述第一感光像素的输出替换为RmaX-l。 [0140] The output of the first pixel is replaced with photosensitive RmaX-l.

[0141]进一步地,所述第一检测模块21还用于: [0141] Further, the first detection module 21 is further configured to:

[0142] 如果所述第二绝对值小于所述第二阈值,则确定与最小输出Rmin相邻的输出Rmin +1; [0142] If the second threshold value is less than the second absolute value, it is determined that the output and the minimum output Rmin Rmin + 1'd adjacent;

[0143] 获取所述第一感光像素的输出与Rmin+1的差的第三绝对值; [0143] acquiring the first photosensitive pixel output Rmin + 1, the third absolute value of difference;

[0144] 如果所述第三绝对值大于等于预设的第三阈值,则确定所述第一感光像素为坏占. [0144] If an absolute value greater than or equal to the third preset third threshold value, determining that the first photosensitive pixels as bad accounts.

[0145] 所述第一补偿模块22还用于: [0145] The first compensation module 22 is further configured to:

[0146] 将所述第一感光像素的输出替换为Rmin+1。 [0146] The output of the first photosensitive pixels are replaced Rmin + 1.

[0147] 进一步地,所述第一检测模块21还用于: [0147] Further, the first detection module 21 is further configured to:

[0148] 根据所述多个第二感光像素的输出获取第二均值; [0148] obtaining a second mean value based on an output of the second plurality of photosensitive pixels;

[0149]根据所述第二均值和预设的第二系数确定所述第二阈值,其中,所述第二系数大于0且小于1; [0149] determining from the second mean value and a second predetermined coefficient of the second threshold, wherein the second coefficient is greater than 0 and less than 1;

[0150] 根据所述第二均值和预设的第三系数确定所述第三阈值,其中,所述第三系数大于0且小于1; [0150] determining from the second mean value and a third predetermined coefficient to the third threshold value, wherein said third coefficient is greater than 0 and less than 1;

[0151] 需要说明的是,前述对图像坏点补偿方法实施例的解释说明也适用于该实施例的图像坏点补偿装置,此处不再赘述。 [0151] Incidentally, explanation of the foregoing embodiments of the image dead pixel compensation method is also applicable to the image dead pixel compensation apparatus of this embodiment will not be repeated here.

[0152] 本发明实施例的图像坏点补偿装置,当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点,若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [0152] The image dead pixel compensation apparatus according to an embodiment of the present invention, when generating a full size image reading outputs of said photosensitive pixel array, the photosensitive pixel is determined first whether the detected current dead pixels according to a preset policy, if it is determined that said first photosensitive pixels, dead pixels, merging the first pixel compensation according to the output of said first photosensitive pixel belongs to the normal point defective pixel output. 实现了对图像传感器上的坏点的检测和补偿,提高了输出图像的质量和清晰度。 To achieve the detection and compensation of the dead pixels on the image sensor, to improve the quality and clarity of the output image.

[0153]图11是本发明另一个实施例的图像坏点补偿装置的结构示意图。 [0153] FIG. 11 is a schematic diagram of the image dead pixel compensation apparatus of the structure of another embodiment of the present invention.

[0154] 如图11所示,基于图1〇所示实施例,所述图像处理器2还包括: [0154] As shown in FIG. 11, based on FIG 1〇 embodiment, the image processor shown in FIG. 2 further comprising:

[0155]第二检测模块23,用于当根据所述感光像素阵列的输出,将属于同一合并像素中的m*n个感光像素的输出相加获取合并像素值生成合并图像时,根据预设策略确定当前检测的第一合并像素是否为坏点; When the [0155] second detecting module 23, configured to, when the output of said photosensitive array of pixels belonging to the same pixel in the combined outputs m * n is added to obtain a photosensitive pixels combined pixel value generating the merged image, according to a preset the first merger policy determines whether the pixel current detection dead pixels;

[0156]第二补偿模块24,用于若确定所述第一合并像素为坏点,则根据与所述第一合并像素相邻的多个第二合并像素的合并像素值补偿所述坏点的输出,其中,所述第一合并像素与所述第二合并像素对应相同颜色的滤光单元。 [0156] The second compensation module 24, for determining if the first pixel is combined dead pixel, the dead pixels of the compensation in accordance with the combined pixel value to said first plurality of pixels adjacent to the second merger merging pixels output, wherein the first pixel and the second merger merging pixel corresponding to the same color filter unit.

[0157]需要注意的是,所述与所述第一合并像素相邻的多个第二合并像素,包括: [0157] Note that, a plurality of pixels in the second merger merging the first adjacent pixel, comprising:

[0158]预设范围内与所述第一合并像素相邻的多个第二合并像素。 The [0158] first predetermined range and the second plurality of combined pixels adjacent to pixels merging.

[0159]在一个实施例中,所述第二检测模块23用于: [0159] In one embodiment, the second detection module 23 for:

[0160]根据所述多个第二合并像素的合并像素值获取第三均值; [0160] The merging pixels of the plurality of second combined pixel value obtaining third mean;

[0161]获取所述第一合并像素的合并像素值与所述第三均值的差的第四绝对值; [0161] acquiring a fourth difference between an absolute value of the combined pixel value of the first pixel and the third combined mean;

[0162]如果所述第四绝对值大于等于预设的第四阈值,则确定所述第一合并像素为坏占. [0162] If an absolute value greater than or equal to the fourth preset fourth threshold, determining that the first pixel is a bad combined accounted for.

[0163]所述第二补偿模块24用于: [0163] The second compensation module 24 is configured to:

[0164]将所述第一合并像素的输出替换为所述第三均值。 [0164] The combined output of said first pixel is replaced with the third average.

[0165]进一步地,所述第二检测模块23还用于: [0165] Further, the second detection module 23 is further configured to:

[0166]根据所述第三均值和预设的第四系数确定所述第四阈值,其中,所述第四系数大于0且小于1。 [0166] determining from the third mean value and a fourth predetermined coefficient to the fourth threshold value, wherein the fourth coefficient greater than 0 and less than 1.

[0167]需要说明的是,前述对图像坏点补偿方法实施例的解释说明也适用于该实施例的图像坏点补偿装置,此处不再赘述。 [0167] Incidentally, explanation of the foregoing embodiments of the image dead pixel compensation method is also applicable to the image dead pixel compensation apparatus of this embodiment will not be repeated here. L〇168」本友明实施例的图像坏点补偿装置,当根据所述感光像素阵列的输出,将属于同一合并像素中的m*n个感光像素的输出相加获取合并像素值生成合并图像时,根据预设策略确定当前检测的第一合并像素是否为坏点,若为坏点,则根据与所述第一合并像素相邻的多个第二合并像素的合并像素值补偿所述坏点的输出,其中,所述第一合并像素与所述第二合并像素对应相同颜色的滤光单元。 Dead pixel compensation apparatus of the embodiment of the image L〇168 "Friends of the present embodiment, when the output of said photosensitive array of pixels belonging to the same pixel in the combined outputs m * n is added to obtain a photosensitive pixels combined pixel value generating the merged image , it is determined according to a preset strategy combined first pixel of the current detecting whether the dead pixel, as if the dead pixel, then the bad pixel value compensation in accordance with the combined first plurality of pixels adjacent to the second merger merging pixels output point, wherein the first pixel and the second merger merging pixel corresponding to the same color filter unit. 实现了对图像传感器上合并像素的坏点检测和补偿,提尚了输出的合并图像的质量和清晰度。 Detecting dead pixels and implements compensation for combined pixels on the image sensor, to improve the quality and clarity of the combined image is still output.

[0169]为了实现上述实施例,本发明还提出一种终端设备。 [0169] In order to achieve the above-described embodiments, the present invention further provides a terminal device. 该终端设备包括:如上实施例提的图像坏点补偿装置。 The terminal apparatus comprising: an image compensating apparatus dead pixels embodiment mentioned above embodiments.

[0170] 其中,所述终端设备类型很多,例如包括:手机、IPAD、或,智能穿戴设备。 [0170] wherein, the terminal apparatus many types, including, for example: mobile phones, IPAD, or smart wearable devices.

[0171] 需要说明的是,前述对图像坏点补偿方法实施例的解释说明也适用于该实施例的终端设备,此处不再赘述。 [0171] Incidentally, explanation of the foregoing embodiments of the image dead pixel compensation method is also applicable to a terminal device of this embodiment will not be repeated here.

[0172] 本发明实施例的终端设备,当读取所述感光像素阵列的输出生成全尺寸图像时, 根据预设策略确定当前检测的第一感光像素是否为坏点,若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出。 [0172] Example embodiments of the present invention, a terminal device, the output generator when the full-size image reading photosensitive pixel array, a first photosensitive pixels of the current is determined whether the detected bad points according to a preset policy, if the first determination photosensitive pixels, dead pixels, merging the first pixel compensation according to the output of said first photosensitive pixel belongs to the normal point defective pixel output. 实现了对图像传感器上的坏点的检测和补偿,提高了输出图像的质量和清晰度。 To achieve the detection and compensation of the dead pixels on the image sensor, to improve the quality and clarity of the output image.

[0173]图12是本发明一个实施例的终端设备的结构示意图,如图12所示,该终端设备包括:图像坏点补偿装置10,与所述图像坏点补偿装置10连接的中央处理器20及外存储器30, 所述中央处理器20用于控制所述外存储器30存储图像。 [0173] FIG. 12 is a schematic structural diagram of a terminal apparatus according to the present embodiment of the invention, shown in Figure 12, the terminal apparatus comprising: a 10, and a central processor connected to the image compensating apparatus 10 dead pixels dead pixel image compensating apparatus 20 and the external memory 30, the central processor 20 for controlling the image memory 30 of the external memory.

[0174]需要说明的是,前述对图像坏点补偿方法实施例的解释说明也适用于该实施例的终端设备,其实现原理类似,此处不再赘述。 [0174] Incidentally, explanation of the foregoing embodiments of the image dead pixel compensation method is also applicable to a terminal apparatus of this embodiment, similar to the implementation principles, will not be repeated here.

[0175]图13是本发明另一个实施例的终端设备的结构示意图,如图13所示,该终端设备包括:图像坏点补偿装置10,与所述图像坏点补偿装置10连接的中央处理器20及显示装置40,所述中央处理器20用于控制所述显示装置40显示图像。 [0175] FIG. 13 is a schematic structural diagram of a terminal device in another embodiment of the present invention, as shown in FIG. 13, the terminal apparatus comprising: an image compensating apparatus 10 dead pixels, dead pixels and the center of the image processing device 10 is connected compensating 20 and display device 40, the central processor 20 for controlling the display means 40 displays an image.

[0176] 需要说明的是,前述对图像坏点补偿方法实施例的解释说明也适用于该实施例的终端设备,其实现原理类似,此处不再赘述。 [0176] Incidentally, explanation of the foregoing embodiments of the image dead pixel compensation method is also applicable to a terminal apparatus of this embodiment, similar to the implementation principles, will not be repeated here.

[0177] 在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。 [0177] In the description of the present specification, reference to the term "one embodiment," "some embodiments", "an example", "a specific example", or "some examples" means that a description of the exemplary embodiment or embodiments described a particular feature, structure, material, or characteristic is included in at least one embodiment of the present invention, embodiments or examples. 在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。 In the present specification, a schematic representation of the above terms must not be the same for the embodiment or exemplary embodiments. 而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。 Furthermore, the particular features, structures, materials, or characteristics described may be in any one or more embodiments or examples combined in suitable manner. 此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。 Furthermore, different embodiments or examples and embodiments or features of different exemplary embodiments without conflicting, those skilled in the art described in this specification can be combined and the combination thereof.

[0178] 此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。 [0178] In addition, the terms "first", "second" are used to indicate or imply relative importance or the number of technical features specified implicitly indicated the purpose of description and should not be understood. 由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。 Thus, there is defined "first", "second" features may be explicitly or implicitly include at least one of the feature. 在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。 In the description of the present invention, the meaning of the "plurality" is at least two, e.g. two, three, etc., unless explicitly specifically limited.

[0179] 流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。 [0179] In the flowchart in any process or method or otherwise described in this description may be understood as representing modules comprises one or more steps for implementing specific logical functions or processes executable instructions, fragment or portion, and the scope of the preferred embodiment of the present invention includes other implementations, which may be shown or discussed in order not press, comprising a substantially simultaneous manner or in reverse order, depending upon the functionality to perform the functions involved it should be understood that embodiments skilled in the art of the present invention.

[0180] 在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。 [0180] or represents a logical and / or steps described herein in other ways, for example, may be considered as a sequencing table executable instructions for implementing logical functions in the flowcharts, can be embodied in any computer-readable medium to instruction execution system, apparatus, or device (e.g., computer-based system, processor-containing system, or other system may be performed from instruction fetch apparatus, or device and execute the instructions) using, instruction execution, or a combination of these system, apparatus, or device used. 就本说明书而言,〃计算机可读介质〃可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。 For purposes of this description, a computer-readable medium 〃 〃 may be any means that can contain, store, communicate, propagate, or transport the program for instruction execution system, apparatus, or device, or with the instruction execution system, apparatus, or device and used. 计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDR0M)。 More specific examples (a non exhaustive list) of the computer-readable medium comprising: an electrical connection (electronic device) having one or more wires, a portable computer diskette cartridge (magnetic device), a random access memory (RAM), a read only memory (ROM), erasable edit readonly memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDR0M). 另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。 Further, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as can, for example paper or other medium by optical scanning, and then edited, if necessary, interpreted, or otherwise suitable to be processed using the program obtained electronically, and then stored in a computer memory.

[0181] 应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。 [0181] It should be understood that various portions of the present invention may be implemented in hardware, software, firmware or a combination thereof to achieve. 在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。 In the above-described embodiment, a plurality of steps or methods may be implemented in software or firmware and executed by a suitable system executing instructions stored in a memory with. 例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。 For example, if implemented in hardware, as in another embodiment, the present technique may be any one of the following well-known in the art, or their combination thereof: a logic gate circuit for implementing logic functions upon data signals discrete logic circuits having appropriate combinational logic gate circuit ASIC, a programmable gate array (PGA), a field programmable gate array (FPGA) and the like.

[0182] 本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。 [0182] skilled in the art can understand that ordinary method embodiments that all or part of the steps may be by a program instructing relevant hardware, the program may be stored in a computer-readable storage medium, one of the steps in the implementation of the embodiment of the method includes the program, or combinations thereof.

[0183] 此外,在本发明各个实施例中的各功能单元可以集成在一个代理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。 [0183] In addition, the functional units may be integrated in a proxy module may be physically separate units exist, may be two or more units are integrated in a module in various embodiments of the present invention. 上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。 The integrated module may be implemented in the form of hardware, software functional modules may also be implemented. 所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。 If the integrated module is implemented as an independent product sold or used in the form of a software functional module, it may be stored in a computer-readable storage medium.

[0184] 上述提到的存储介质可以是只读存储器,磁盘或光盘等。 [0184] The storage medium may be a read-only memory, magnetic or optical disk. 尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。 Although the above has been illustrated and described embodiments of the present invention, it is understood that the above embodiments are exemplary and are not to be construed as limiting the present invention, those of ordinary skill in the art within the scope of the present invention may be the above-described Example changes, modifications, substitutions and variations.

Claims (8)

  1. 1. 一种图像坏点补偿方法,其特征在于,预先提供的图像传感器包括:感光像素阵列, 以及设置在所述感光像素阵列上的滤光片,其中,所述滤光片包括滤光单元阵列,每个滤光单元覆盖m*n个感光像素并构成合并像素,其中m*n>l;所述方法包括以下步骤: 当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点; 若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出,其中, 当m*n> = 4时,所述第一合并像素包括:当前检测的第一感光像素和多个第二感光像素; 所述根据预设策略确定当前检测的第一感光像素是否为坏点,包括: 根据所述多个第二感光像素的输出,确定与最大输出Rmax相邻的输出Rmax-1; 获取所述第一感光像素的输出与Rmax-1的差 An image compensation method dead pixels, wherein the image sensor is previously provided comprising: a photosensitive pixel array, and a filter disposed on the photosensitive array of pixels, wherein said filter comprises a filter unit array, each filter unit covers are m * n and the photosensitive pixels constituting the combined pixels, where m * n> l; said method comprising the steps of: reading, when the photosensitive pixel array outputs the generated full-size image, and determining a first predetermined policy photosensitive pixels of the current detecting whether the bad points; determining if said first photosensitive pixels dead pixels, merging the first pixel compensation according to the output of the first photosensitive pixel belongs to the normal point the output of dead pixels, wherein, when m * n> = 4 when said first combined pixel comprising: a first photosensitive pixel of the current detection and the second plurality of photosensitive pixels; determined according to the preset policy of the currently detected a photosensitive pixel is a bad point, comprising: an output of the second plurality of photosensitive pixels, determining a maximum output of adjacent output Rmax Rmax-1; obtain an output of said first photosensitive pixels and the difference Rmax-1 第二绝对值; 如果所述第二绝对值大于等于预设的第二阈值,则确定所述第一感光像素为坏点; 所述根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出,包括: 将所述第一感光像素的输出替换为Rjnax-l; 如果所述第二绝对值小于所述第二阈值,则确定与最小输出Rmin相邻的输出Rrain+1; 获取所述第一感光像素的输出与Rmin+1的差的第三绝对值; 如果所述第三绝对值大于等于预设的第三阈值,则确定所述第一感光像素为坏点; 所述根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出,包括: 将所述第一感光像素的输出替换为Rmin+1。 Second absolute value; if said second absolute value is greater than a second threshold equal to a preset value, determining that the first photosensitive pixels dead pixels; according to the first normal pixel merging the first photosensitive pixel homed compensating the output point of the output of dead pixels, comprising: replacing the output of said first photosensitive pixels is Rjnax-l; if said second absolute value is less than the second threshold value, it is determined that the minimum adjacent the output Rmin output Rrain + 1; obtaining a first photosensitive pixel output of the absolute value of the difference between the third Rmin + 1; if the third absolute value greater than or equal to a third preset threshold, determine that the first photosensitive dead pixels pixels; the first compensation based on an output of said first photosensitive pixel binning pixel belongs to the normal point in the output of dead pixels, comprising: pixel output of said first photosensitive replace Rmin + 1.
  2. 2. 如权利要求1所述的方法,其特征在于,还包括: 根据所述多个第二感光像素的输出获取第二均值; 根据所述第二均值和预设的第二系数确定所述第二阈值,其中,所述第二系数大于〇且小于1; 根据所述第二均值和预设的第三系数确定所述第三阈值,其中,所述第三系数大于0且小于1。 2. The method according to claim 1, characterized in that, further comprising: obtaining a second mean value based on an output of the second plurality of photosensitive pixels; determining a second mean value based on said second predetermined coefficient and a second threshold value, wherein the second coefficient is greater than and less than 1 square; determining the third threshold value based on said second mean value and a third predetermined coefficient, wherein said third coefficient is greater than 0 and less than 1.
  3. 3. —种图像坏点补偿装置,其特征在于,包括:图像传感器和图像处理器,其中, 所述图像传感器包括:感光像素阵列,以及设置在所述感光像素阵列上的滤光片,其中,所述滤光片包括滤光单元阵列,每个滤光单元覆盖m*n个感光像素并构成合并像素,其中m*n>l; 所述图像处理器包括: 第一检测模块,用于当读取所述感光像素阵列的输出生成全尺寸图像时,根据预设策略确定当前检测的第一感光像素是否为坏点; 第一补偿模块,用于若确定所述第一感光像素为坏点,则根据所述第一感光像素归属的第一合并像素中正常点的输出补偿所述坏点的输出,其中, 当m*n> = 4时,所述第一合并像素包括:当前检测的第一感光像素和多个第二感光像素; 所述第一检测模块用于: 根据所述多个第二感光像素的输出,确定与最大输出相邻的输出Rmax-1; 获取所述第一感 3 - bad points kinds of image compensating apparatus comprising: an image sensor and an image processor, wherein said image sensor comprises: a photosensitive pixel array, and a filter disposed on the photosensitive pixel array, wherein the filter comprises an array of filter units, each filter unit covers are m * n and the photosensitive pixels constituting the combined pixels, where m * n> l; the image processor comprising: a first detecting module, for when reading the pixel array of photosensitive outputs the generated full-size image, is determined according to a preset strategy first photosensitive pixels of the current detecting whether the bad points; a first compensating means for determining if said first photosensitive pixels as bad point, the first compensation based on the output of the first photosensitive pixel binning pixel belongs to the normal point in the output of dead pixels, wherein, when m * n> = 4, the combined first pixel comprising: a current detecting a first plurality of photosensitive pixels and a second photosensitive pixels; the first detection module is configured to: according to the output of the second plurality of photosensitive pixels, determining a maximum output adjacent output Rmax-1; obtaining the second a sense of 光像素的输出与Rmax-1的差的第二绝对值; 如果所述第二绝对值大于等于预设的第一阈值,则确定所述第一感光像素为坏点; 所述第一补偿模块用于: 将所述第一感光像素的输出替换为; 所述第一检测模块还用于: 如果所述第二绝对值小于所述第二阈值,则确定与最小输出Rmin相邻的输出Rmin+1; 获取所述第一感光像素的输出与此化+丨的差的第二绝对值; 如果所述第三绝对值大于等于预设的第三阈值,则确定所述第一感光像素为坏点; 所述第一补偿模块还用于: 将所述第一感光像素的输出替换为—in—1。 The light output of the second pixel Rmax-1 the absolute value of the difference; if said second absolute value is greater than a first threshold equal to a preset value, determining that the first photosensitive pixels dead pixels; the first compensation module for: replacing the outputs of said first photosensitive pixels; the first detection module is further configured to: if the second absolute value is less than the second threshold value, and determining the minimum output Rmin Rmin adjacent output +1; obtaining a second absolute value of the output of the first photosensitive pixels of this difference + of Shu; if the third absolute value greater than or equal to a third preset threshold, determine that the first photosensitive pixels dead pixels; the first compensation module is further configured to: replace the output of the first photosensitive pixels is -in-1.
  4. 4. 如权利要求3所述的装置,其特征在于,所述第一检测模块还用于: 根据所述多个第二感光像素的输出获取第二均值; 根据所述第二均值和预设的第二系数确定所述第二闕值,其中,所述第二系数大于0且小于1; _ 根据所述第二均值和预设的第三系数确定所述第三阈值,其中,所述第三系数大于0且小于1; 4. The apparatus according to claim 3, characterized in that the first detection module is further configured to: obtain a second mean value based on an output of the second plurality of photosensitive pixels; according to the second mean value and a preset second coefficient determining the second threshold value, wherein the second coefficient is greater than 0 and less than 1; _ determining the third threshold value based on said second mean value and a third predetermined coefficient, wherein said third coefficient greater than 0 and less than 1;
  5. 5. —种终端设备,其特征在于,包括:如权利要求3-4任一所述的图像坏点补偿装置。 5. - the type of terminal equipment, characterized by comprising: an image according to a dead pixel compensation apparatus as claimed in any one of claims 3-4.
  6. 6. 如权利要求5所述的设备,其特征在于,所述终端设备包括: 手机、IPAD、或,智能穿戴设备。 6. The apparatus according to claim 5, wherein said terminal device comprising: a mobile phone, IPAD, or smart wearable devices.
  7. 7. 如权利要求5所述的设备,其特征在于,还包括:与所述图像坏点补偿装置连接的中央处理器及外存储器,所述中央处理器用于控制所述外存储器存储图像。 7. The apparatus according to claim 5, characterized in that, further comprising: a central processor and an external memory connected to the image dead pixel compensation means, said central processing unit for controlling said external memory for storing image. 、, ,,
  8. 8. 如权利要求5所述的设备,其特征在于,还包括:与所述图^坏点补偿装置连接的中央处理器及显示装置,所述中央处理器用于控制所述显示装置显示图像。 8. The apparatus according to claim 5, characterized in that, further comprising: a central processor coupled to the dead pixel compensation apparatus of FIG. ^ And a display device, the central processing unit for controlling said display means to display an image.
CN 201510964167 2015-12-18 2015-12-18 Dead pixel image compensation method, apparatus and a terminal device CN105611196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510964167 CN105611196B (en) 2015-12-18 2015-12-18 Dead pixel image compensation method, apparatus and a terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510964167 CN105611196B (en) 2015-12-18 2015-12-18 Dead pixel image compensation method, apparatus and a terminal device

Publications (2)

Publication Number Publication Date
CN105611196A true CN105611196A (en) 2016-05-25
CN105611196B true CN105611196B (en) 2017-07-21

Family

ID=55990705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510964167 CN105611196B (en) 2015-12-18 2015-12-18 Dead pixel image compensation method, apparatus and a terminal device

Country Status (1)

Country Link
CN (1) CN105611196B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210712B (en) * 2016-08-11 2018-07-10 上海大学 Dead pixels kinds of image detection and processing method
CN106328010A (en) * 2016-09-23 2017-01-11 歌尔科技有限公司 Display equipment, electronic equipment and light-emitting unit damage treatment method and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640038A (en) * 2009-08-26 2010-02-03 广东威创视讯科技股份有限公司 Display device colour luminance compensation method, device and system
CN103650480A (en) * 2011-07-14 2014-03-19 索尼公司 Image processing apparatus, image pickup apparatus, image processing method, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7929798B2 (en) * 2005-12-07 2011-04-19 Micron Technology, Inc. Method and apparatus providing noise reduction while preserving edges for imagers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640038A (en) * 2009-08-26 2010-02-03 广东威创视讯科技股份有限公司 Display device colour luminance compensation method, device and system
CN103650480A (en) * 2011-07-14 2014-03-19 索尼公司 Image processing apparatus, image pickup apparatus, image processing method, and program

Also Published As

Publication number Publication date Type
CN105611196A (en) 2016-05-25 application

Similar Documents

Publication Publication Date Title
US20060008171A1 (en) Digital photography with flash/no flash extension
US20070035641A1 (en) Image processing apparatus, image processing method, and computer program
JP2006020275A (en) Image processing device for detecting magnification chromatic aberration from raw data, image processing program, and electronic camera
US20100053384A1 (en) Image processing apparatus for performing gradation correction on subject image
US20130286451A1 (en) Signal intensity matching of image sensors
JP2003116060A (en) Correcting device for defective picture element
US20110080505A1 (en) Method of detecting defect in image pickup apparatus and the image pickup apparatus
Guo et al. Correcting over-exposure in photographs
US20080212892A1 (en) Image Processing Device, Computer Program Product , and Image Processing Method
JP2011003048A (en) Image processing apparatus and image processing program
CN1984260A (en) Method for automatically controlling exposure and device for automatically compensating exposure
US20130039579A1 (en) Image processing apparatus, method of processing image, and computer-readable storage medium
JP2006101006A (en) Imaging system, noise reduction processing device, and imaging processing program
JP2007143120A (en) Noise eliminating device, noise eliminating method, noise eliminating program and recording medium
CN101282417A (en) Method of and apparatus for image denoising
CN1937781A (en) The image processing apparatus and an image processing method
JP2004200971A (en) Image processor, image processing program, image processing method, and electronic camera
CN101867830A (en) Image processing apparatus and control method therefor
US20140063288A1 (en) Imaging apparatus, electronic device and method providing exposure compensation
CN101472188A (en) White balance control device and white balance control method
CN101489051A (en) Image processing apparatus and image processing method and image capturing apparatus
JP2005217618A (en) Image processing method, image processing apparatus, and image processing program
JP2004054928A (en) System and method for image stitching of camera
US20110142365A1 (en) Information processing apparatus, information processing method, program, and imaging apparatus including optical microscope
JP2006148748A (en) Pixel defect correcting device and pixel defect correcting method

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination