WO2016155124A1 - Method and device for removing singular point noise - Google Patents

Method and device for removing singular point noise Download PDF

Info

Publication number
WO2016155124A1
WO2016155124A1 PCT/CN2015/081797 CN2015081797W WO2016155124A1 WO 2016155124 A1 WO2016155124 A1 WO 2016155124A1 CN 2015081797 W CN2015081797 W CN 2015081797W WO 2016155124 A1 WO2016155124 A1 WO 2016155124A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
preset
absolute value
chromaticity
chrominance
Prior art date
Application number
PCT/CN2015/081797
Other languages
French (fr)
Chinese (zh)
Inventor
张玺辉
何强
Original Assignee
北京三好互动教育科技有限公司
北京布卡互动科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京三好互动教育科技有限公司, 北京布卡互动科技有限公司 filed Critical 北京三好互动教育科技有限公司
Publication of WO2016155124A1 publication Critical patent/WO2016155124A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/21Circuitry for suppressing or minimising disturbance, e.g. moiré or halo

Definitions

  • network video applications are emerging one after another.
  • the main process of network video is to collect image information by the camera and send the image information to the encoder, and the image information is encoded by the encoder for display by the terminal.
  • the present application provides a method and apparatus for removing singular noise, which is used to solve the problem that affects the user experience caused by the image information collected by the camera including singular noise.
  • a method of removing singular noise that performs the following process for each pixel in an image to be sent to an encoder:
  • the chrominance value of the current pixel point is set to an average value of the chrominance values of each of the neighboring pixel points.
  • the calculated first luminance difference is ⁇ Y1
  • the first chrominance difference is ⁇ U1 and ⁇ V1
  • the second luminance difference is ⁇ Y2, second.
  • the chromaticity difference values are ⁇ U2 and ⁇ V2
  • the first preset chromaticity threshold includes a first preset U value and a first preset V value
  • the second preset chromaticity threshold includes a second pre- Setting a U value and a second preset V value
  • the setting a chromaticity value of the current pixel point as an average value of chrominance values of each of the neighboring pixel points includes:
  • the chromaticity of the current pixel point will be The value is set to the average of the chrominance values of each of the neighboring pixel points.
  • the plurality of neighboring pixel points of the current pixel point are:
  • a device for removing singular noise, for each pixel in an image to be sent to an encoder Point processing includes:
  • a first calculating unit configured to calculate a luminance difference value and a chrominance difference value of two or two pixel points of the plurality of neighboring pixel points of the current pixel point, to obtain a plurality of first brightness difference values and a plurality of first chromaticity difference values;
  • a second calculating unit configured to calculate a luminance difference value and a chrominance difference value between the current pixel point and each of the neighboring pixel points, to obtain a plurality of second brightness difference values and a plurality of second chromaticity difference values;
  • a first determining unit configured to determine whether an absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold
  • a second determining unit configured to determine, when the first determining unit determines that the value is YES, whether the absolute value of the second brightness difference value whose absolute value is the smallest among the second brightness difference values is greater than the second preset brightness threshold ;
  • a pixel brightness processing unit configured to set a brightness value of the current pixel point to an average value of brightness values of each of the neighboring pixel points when the second determining unit determines to be YES;
  • a third determining unit configured to determine whether an absolute value of each of the first chrominance differences is less than a first preset chromaticity threshold
  • a fourth determining unit configured to determine, when the third determining unit determines that the value is YES, whether the absolute value of the second chromaticity difference value whose absolute value is the smallest among the second chromaticity difference values is greater than the second preset color Degree threshold
  • a pixel chrominance processing unit configured to set a chromaticity value of the current pixel point to an average value of chromaticity values of each of the neighboring pixel points when the fourth determining unit determines that the value is YES.
  • the calculated first luminance difference is ⁇ Y1
  • the first chrominance difference is ⁇ U1 and ⁇ V1
  • the second luminance difference is ⁇ Y2, second.
  • the chromaticity difference values are ⁇ U2 and ⁇ V2
  • the first preset chromaticity threshold includes a first preset U value and a first preset V value
  • the second preset chromaticity threshold includes a second pre- Setting a U value and a second preset V value
  • the third determining unit includes:
  • a first U value determining unit configured to determine whether an absolute value of each ⁇ U1 is smaller than a first preset U value
  • a first V value determining unit configured to determine whether an absolute value of each ⁇ V1 is smaller than a first preset V value
  • the fourth determining unit includes:
  • the second U value determining unit is configured to determine, when the first U value determining unit determines that the absolute value of each ⁇ U1 is smaller than the first preset U value, whether the absolute value of the ⁇ U2 having the smallest absolute value in each ⁇ U2 is large At a second preset U value;
  • the second V value determining unit is configured to determine, when the first V value determining unit determines that the absolute value of each ⁇ V1 is smaller than the first preset V value, whether the absolute value of the ⁇ V2 having the smallest absolute value in each ⁇ V2 is greater than The second preset V value.
  • the pixel chrominance processing unit comprises:
  • a pixel chrominance processing sub-unit configured to determine that an absolute value of each ⁇ U1 is smaller than a first preset U value, and determine that an absolute value of ⁇ U2 having the smallest absolute value in each ⁇ U2 is greater than a second preset U value, Setting a chromaticity value of the current pixel point to an average value of chrominance values of each of the neighboring pixel points; and determining that an absolute value of each ⁇ V1 is smaller than a first preset V value, and determining each ⁇ V2 When the absolute value of ⁇ V2 with the smallest absolute value is greater than the second preset V value, the chrominance value of the current pixel point is set to the average value of the chrominance values of each of the neighboring pixel points.
  • the plurality of neighboring pixel points of the current pixel point are:
  • the method for removing singular noise performs the following process for each pixel in an image to be sent to the encoder: calculating several neighbor pixels of the current pixel a luminance difference value and a chrominance difference value of two or two pixels in the point, to obtain a plurality of first luminance difference values and a plurality of first chrominance difference values; calculating luminance difference values and colors of the current pixel point and each of the neighboring pixel points a difference value, a plurality of second brightness difference values and a plurality of second color difference values are obtained; determining that an absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold, and each of the second brightness differences When the absolute value of the second brightness difference value whose absolute value is the smallest value is greater than the second preset brightness threshold value, the brightness value of the current pixel point is set as the average value of the brightness values of each of the neighboring pixel points; The absolute value of each of the first pixel in an image to be sent to the encoder: calculating several neighbor pixels
  • FIG. 1 is a flowchart of a method for removing singular noise according to an embodiment of the present application
  • 2 is a bitmap of an 8*8 pixel according to an example of an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of an apparatus for removing singular noise according to an embodiment of the present application.
  • the embodiment of the present application provides a method for removing singular noise, which is processed for each pixel in an image to be sent to an encoder, and the specific processing process is shown in FIG. 1 .
  • the pixel of the image is composed of two factors of brightness and chrominance, and the value of either one of the two is too high or too low, which may cause the pixel to become a singular noise.
  • the method includes:
  • Step S100 Calculate a luminance difference value and a chrominance difference value of two or two pixel points of the plurality of neighboring pixel points of the current pixel point, to obtain a plurality of first brightness difference values and a plurality of first color difference values;
  • the pixels in the image are generally arranged in a rectangle, and each pixel has a neighbor pixel. It can be understood that the number of neighboring pixel points of the pixel points on the four sides of the image is smaller than the number of neighboring pixel points of the pixel points in the middle of the image.
  • the luminance difference and the chrominance difference between the two pairs are calculated for a plurality of neighboring pixel points of the current pixel.
  • Step S110 calculating a luminance difference value and a chrominance difference value between the current pixel point and each of the neighboring pixel points, to obtain a plurality of second brightness difference values and a plurality of second chromaticity difference values;
  • Step S120 determining whether the absolute value of each of the first brightness difference is less than the first preset brightness threshold; if yes, executing step S130;
  • the first preset brightness threshold value is a preset value. If the absolute values of the respective first brightness difference values are smaller than the value, it means that the brightness difference of the neighboring pixel points is not large, and there is no singular point noise.
  • Step S130 determining whether the absolute value of the second brightness difference value with the smallest absolute value among the second brightness difference values is greater than the second preset brightness threshold; if yes, executing step S140;
  • the second preset brightness threshold value is a preset value, and if the absolute value of the second brightness difference value which is the smallest of the second brightness difference values is greater than the value, it means that the brightness of the current pixel point is far Far greater than the brightness of its neighboring pixels. Moreover, since it has been determined that the neighboring pixel points of the current pixel point are non-singular point noise, it can be determined that the current pixel point is a singular point noise.
  • Step S140 setting a brightness value of the current pixel point as an average value of brightness values of each of the neighboring pixel points;
  • the brightness value of the current pixel point is adjusted to the average value of the luminance values of its neighboring pixel points.
  • Step S150 determining whether the absolute value of each of the first chromaticity difference is less than the first preset chromaticity threshold; if yes, executing step S160;
  • the first preset chroma threshold is a preset value. If the absolute values of the first chroma differences are smaller than the value, it means that the chroma of the neighbor pixels is not much different, and there is no oddity. Point noise.
  • Step S160 determining whether the absolute value of the second chromaticity difference value whose absolute value is the smallest among the second chromaticity difference values is greater than the second preset chromaticity threshold value; if yes, executing step S170;
  • the second preset chroma threshold is a preset value, and if the absolute value of the second chroma difference of the smallest of the second chroma differences is greater than the value, the current pixel is The chromaticity is much larger than the chrominance of its neighboring pixels. Moreover, since it has been determined that the neighboring pixel points of the current pixel point are non-singular point noise, it can be determined that the current pixel point is a singular point noise.
  • Step S170 Set a chromaticity value of the current pixel point as an average value of chrominance values of each of the neighboring pixel points.
  • the chromaticity value of the current pixel is adjusted to its neighbor pixel color. The average of the degrees.
  • steps S100 and S110 do not limit the sequence
  • steps S120-S140 and steps S150-S170 are two independent determination processes, which may be performed separately or sequentially. Just illustrate the case where these two links are executed independently.
  • the method for removing singularity noise performs the following process for calculating each pixel point in an image to be sent to the encoder: calculating brightness of two or two pixel points among several neighboring pixel points of the current pixel point And a difference between the difference and the chrominance, obtaining a plurality of first luminance differences and a plurality of first chrominance differences; calculating a luminance difference and a chrominance difference between the current pixel and each of the neighboring pixels to obtain a plurality of second luminances a difference value and a plurality of second chromaticity difference values; determining that the absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold, and wherein the second brightness of each of the second brightness difference values is the smallest When the absolute value of the difference is greater than the second preset brightness threshold, setting the brightness value of the current pixel point to an average value of the brightness values of each of the neighboring pixel points; determining each of the first chromaticity difference
  • the neighboring pixel points of the current pixel point described above can be understood as four pixel points above, below, to the left, and to the right of the current pixel point.
  • the neighboring pixels of the pixel may be less than four, and only the remaining neighbor pixels need to be considered.
  • the existing encoder can only encode image information in the YUV format, if the image captured by the camera is image information in the RGB format, it is necessary to convert the image information into the YUV format according to the existing formula.
  • the image in the YUV format includes a luminance signal Y and two chrominance signals U and V.
  • the first luminance difference obtained by the above calculation is ⁇ Y1
  • the first chromaticity difference is ⁇ U1 and ⁇ V1
  • the second luminance difference is ⁇ Y2
  • the second chromaticity difference is ⁇ U2 and ⁇ V2.
  • the first preset chroma threshold includes a first preset U value and a first preset V value
  • the second preset chroma threshold includes a second preset U value and a second preset V value.
  • the chromaticity of the current pixel point will be The value is set to the average of the chrominance values of each of the neighboring pixel points.
  • the luminance Y, the chrominance U, and the chrominance V of the pixel affect the singularity of the pixel. If the pixel point becomes singular noise due to the brightness Y, it is necessary to adjust the brightness Y of the pixel point; if the pixel point becomes singular noise due to the chromaticity U, it is necessary to adjust the chromaticity U of the pixel point; If the pixel point becomes singular noise due to the chromaticity V, it is necessary to adjust the chromaticity V of the pixel.
  • FIG. 2 For ease of understanding, the embodiment is illustrated by a specific example, as shown in FIG. 2.
  • Figure 2 illustrates an 8*8 pixel lattice.
  • the neighboring pixels of the pixel point P are selected as the upper, lower, left, and right pixel points of P (points marked with diagonal lines in the figure), and are defined as P up , P down , P left , and P right, respectively .
  • P is assumed luminance is 10, the P, the P, P left, P right 2,3,4,3 luminance respectively.
  • the first preset brightness threshold is defined as 3, and the second preset brightness threshold is 5.
  • the apparatus for removing singular noise provided by the embodiment of the present application is described below, and the apparatus for removing singular noise described below and the method for removing singular noise described above may be referred to each other.
  • FIG. 3 is a schematic structural diagram of an apparatus for removing singular noise according to an embodiment of the present application.
  • the device processes the individual pixels in the image to be sent to the encoder.
  • the device comprises:
  • the first calculating unit 31 is configured to calculate a luminance difference value and a chrominance difference value of two or two pixel points of the plurality of neighboring pixel points of the current pixel point, to obtain a plurality of first brightness difference values and a plurality of first chromaticity difference values;
  • a second calculating unit 32 configured to calculate a luminance difference value and a chrominance difference value between the current pixel point and each of the neighboring pixel points, to obtain a plurality of second brightness difference values and a plurality of second color difference values;
  • the first determining unit 33 is configured to determine whether an absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold
  • the second determining unit 34 is configured to determine, when the first determining unit 33 determines that the value is YES, whether the absolute value of the second brightness difference value whose absolute value is the smallest among the second brightness difference values is greater than the second preset brightness Threshold
  • a pixel brightness processing unit 35 configured to set a brightness value of the current pixel point to an average value of brightness values of each of the neighboring pixel points when the second determining unit 34 determines YES;
  • the third determining unit 36 is configured to determine whether an absolute value of each of the first chromaticity difference values is smaller than a first preset chromaticity threshold value
  • the fourth determining unit 37 is configured to determine, when the third determining unit 36 determines that the value is YES, whether the absolute value of the second chromaticity difference value whose absolute value is the smallest among the second chromaticity difference values is greater than the second pre-predetermined Set the chroma threshold;
  • the pixel chrominance processing unit 38 is configured to set a chromaticity value of the current pixel point to an average value of chromaticity values of each of the neighboring pixel points when the fourth determining unit 37 determines YES.
  • the calculated first brightness difference is ⁇ Y1
  • the first chromaticity difference is ⁇ U1 and ⁇ V1
  • the second brightness difference is ⁇ Y2.
  • the two chromaticity difference values are ⁇ U2 and ⁇ V2
  • the first preset chromaticity threshold includes a first preset U value and a first preset V value
  • the second preset chromaticity threshold includes a second Presetting a U value and a second preset V value
  • the third determining unit 36 may include:
  • a first U value determining unit configured to determine whether an absolute value of each ⁇ U1 is smaller than a first preset U value
  • a first V value determining unit configured to determine whether an absolute value of each ⁇ V1 is smaller than a first preset V value
  • the fourth determining unit includes:
  • the second U value determining unit is configured to determine, when the first U value determining unit determines that the absolute value of each ⁇ U1 is smaller than the first preset U value, whether the absolute value of the ⁇ U2 having the smallest absolute value in each ⁇ U2 is greater than a second preset U value;
  • the second V value determining unit is configured to determine, when the first V value determining unit determines that the absolute value of each ⁇ V1 is smaller than the first preset V value, whether the absolute value of the ⁇ V2 having the smallest absolute value in each ⁇ V2 is greater than The second preset V value.
  • the pixel chrominance processing unit 38 may include:
  • a pixel chrominance processing sub-unit configured to determine that an absolute value of each ⁇ U1 is smaller than a first preset U value, and determine that an absolute value of ⁇ U2 having the smallest absolute value in each ⁇ U2 is greater than a second preset U value, Setting a chromaticity value of the current pixel point to an average value of chrominance values of each of the neighboring pixel points; and determining that an absolute value of each ⁇ V1 is smaller than a first preset V value, and determining each ⁇ V2 When the absolute value of ⁇ V2 with the smallest absolute value is greater than the second preset V value, the chrominance value of the current pixel point is set to the average value of the chrominance values of each of the neighboring pixel points.
  • the neighboring pixel points of the current pixel point described above can be understood as current.
  • the neighboring pixels of the pixel may be less than four, and only the remaining neighbor pixels need to be considered.
  • the apparatus for removing singular noise performs the following process for calculating each pixel point in an image to be sent to the encoder: calculating brightness of two or two pixel points among several neighboring pixel points of the current pixel point And a difference between the difference and the chrominance, obtaining a plurality of first luminance differences and a plurality of first chrominance differences; calculating a luminance difference and a chrominance difference between the current pixel and each of the neighboring pixels to obtain a plurality of second luminances a difference value and a plurality of second chromaticity difference values; determining that the absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold, and wherein the second brightness of each of the second brightness difference values is the smallest When the absolute value of the difference is greater than the second preset brightness threshold, setting the brightness value of the current pixel point to an average value of the brightness values of each of the neighboring pixel points; determining each of the first chromaticity difference values

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Disclosed are a method and device for removing singular point noise. For various pixel points in an image to be sent to an encoder, the following process is executed: calculating a luminance difference value and a chrominance difference value between every two pixel points in several neighbouring pixel points of a current pixel point, so as to obtain several first luminance difference values and several first chrominance difference values; calculating a luminance difference value and a chrominance difference value between the current pixel point and various neighbouring pixel points, so as to obtain several second luminance difference values and several second chrominance difference values; when it is judged that an absolute value of each of the first luminance difference values is less than a first pre-set luminance threshold value, and an absolute value of a second luminance difference value with the minimum absolute value in the various second luminance difference values is greater than a second pre-set luminance threshold value, setting a luminance value of the current pixel point to be an average value of luminance values of the various neighbouring pixel points; and as for the chrominance of the pixel points, performing execution according to the luminance processing method. By means of the process, singular point noise in an image is removed, and the user experience is improved.

Description

一种去除奇点噪声的方法及装置Method and device for removing singular noise 技术领域Technical field
本申请要求于2015年3月30日提交中国专利局、申请号为201510145620.9、发明名称为“一种去除奇点噪声的方法及装置”的国内申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the domestic application filed on March 30, 2015, the Chinese Patent Office, Application No. 201510145620.9, entitled "A Method and Apparatus for Removing Singular Noise", the entire contents of which are incorporated herein by reference. In the application.
背景技术Background technique
在自媒体技术中,网络视频应用层出不穷。网络视频的主要过程是由摄像头采集图像信息,并将图像信息发送给编码器,由编码器对图像信息进行编码后,供终端显示。In the self-media technology, network video applications are emerging one after another. The main process of network video is to collect image information by the camera and send the image information to the encoder, and the image information is encoded by the encoder for display by the terminal.
由于市面上的摄像头千差万别,质量参差不齐,导致摄像头采集并发送给编码器的图像信息中带有很多的噪点,又称为奇点。这些奇点噪声经过编码器编码后会被放大,严重影响用户的体验。Because the cameras on the market vary widely and the quality is uneven, the image information collected by the camera and sent to the encoder has a lot of noise, also known as singularity. These singular noises are amplified by the encoder and seriously affect the user experience.
发明内容Summary of the invention
有鉴于此,本申请提供了一种去除奇点噪声的方法及装置,用于解决由于摄像头采集的图像信息包含奇点噪声,所造成的影响用户体验的问题。In view of this, the present application provides a method and apparatus for removing singular noise, which is used to solve the problem that affects the user experience caused by the image information collected by the camera including singular noise.
为了实现上述目的,现提出的方案如下:In order to achieve the above objectives, the proposed scheme is as follows:
一种去除奇点噪声的方法,针对将要发送给编码器的图像中的各个像素点,执行下述过程:A method of removing singular noise that performs the following process for each pixel in an image to be sent to an encoder:
计算当前像素点的若干个邻居像素点中,两两像素点的亮度差值和色度差值,得到若干第一亮度差值和若干第一色度差值;计算当前像素点与各所述邻居像素点的亮度差值和色度差值,得到若干第二亮度差值和若干第二色度差值;Calculating a luminance difference value and a chrominance difference value of two or two pixel points of the plurality of neighboring pixel points of the current pixel point, obtaining a plurality of first luminance difference values and a plurality of first chrominance difference values; calculating the current pixel point and each of the foregoing a luminance difference value and a chrominance difference value of neighboring pixels, to obtain a plurality of second luminance difference values and a plurality of second chrominance difference values;
判断各所述第一亮度差值的绝对值是否小于第一预设亮度阀值;Determining whether an absolute value of each of the first brightness difference values is less than a first preset brightness threshold;
若是,判断各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值是否大于第二预设亮度阀值;If yes, determining whether an absolute value of the second brightness difference value whose absolute value is the smallest among the second brightness difference values is greater than a second preset brightness threshold value;
若是,将所述当前像素点的亮度值设置为各所述邻居像素点的亮度值的平均值; If yes, setting a brightness value of the current pixel point to an average value of brightness values of each of the neighboring pixel points;
判断各所述第一色度差值的绝对值是否小于第一预设色度阀值;Determining whether an absolute value of each of the first chromaticity difference values is less than a first preset chromaticity threshold;
若是,判断各所述第二色度差值中绝对值最小的第二色度差值的绝对值是否大于第二预设色度阀值;If yes, determining whether an absolute value of the second chromaticity difference value whose absolute value is the smallest among the second chromaticity difference values is greater than a second preset chromaticity threshold value;
若是,将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。If so, the chrominance value of the current pixel point is set to an average value of the chrominance values of each of the neighboring pixel points.
优选地,在所述图像为YUV格式的图像时,计算所得的第一亮度差值为△Y1、第一色度差值为△U1和△V1、第二亮度差值为△Y2、第二色度差值为△U2和△V2,所述第一预设色度阀值包括第一预设U值和第一预设V值,所述第二预设色度阀值包括第二预设U值和第二预设V值;Preferably, when the image is an image of the YUV format, the calculated first luminance difference is ΔY1, the first chrominance difference is ΔU1 and ΔV1, and the second luminance difference is ΔY2, second. The chromaticity difference values are ΔU2 and ΔV2, the first preset chromaticity threshold includes a first preset U value and a first preset V value, and the second preset chromaticity threshold includes a second pre- Setting a U value and a second preset V value;
所述判断各所述第一色度差值的绝对值是否小于第一预设色度阀值,以及在判断结果为是时,判断各所述第二色度差值中绝对值最小的第二色度差值的绝对值是否大于第二预设色度阀值的过程为:Determining whether an absolute value of each of the first chromaticity difference values is smaller than a first preset chromaticity threshold value, and determining a minimum value of each of the second chromaticity difference values when the determination result is YES The process of whether the absolute value of the dichromatic difference value is greater than the second preset chroma threshold is:
判断各△U1的绝对值是否小于第一预设U值;Determining whether the absolute value of each ΔU1 is smaller than the first preset U value;
在确定各△U1的绝对值小于第一预设U值时,判断各△U2中绝对值最小的△U2的绝对值是否大于第二预设U值;When it is determined that the absolute value of each ΔU1 is less than the first preset U value, it is determined whether the absolute value of ΔU2 with the smallest absolute value in each ΔU2 is greater than the second preset U value;
判断各△V1的绝对值是否小于第一预设V值;Determining whether the absolute value of each ΔV1 is less than a first preset V value;
在确定各△V1的绝对值小于第一预设V值时,判断各△V2中绝对值最小的△V2的绝对值是否大于第二预设V值。When it is determined that the absolute value of each ΔV1 is smaller than the first preset V value, it is determined whether the absolute value of ΔV2 whose absolute value is the smallest among the ΔV2 is greater than the second preset V value.
优选地,所述将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值,包括:Preferably, the setting a chromaticity value of the current pixel point as an average value of chrominance values of each of the neighboring pixel points includes:
在确定各△U1的绝对值小于第一预设U值,且确定各△U2中绝对值最小的△U2的绝对值大于第二预设U值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值;以及,When it is determined that the absolute value of each ΔU1 is smaller than the first preset U value, and the absolute value of ΔU2 whose absolute value is the smallest among the ΔU2 is determined to be greater than the second preset U value, the chromaticity of the current pixel point will be determined. a value set to an average of chrominance values for each of the neighboring pixel points; and,
在确定各△V1的绝对值小于第一预设V值,且确定各△V2中绝对值最小的△V2的绝对值大于第二预设V值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。When it is determined that the absolute value of each ΔV1 is smaller than the first preset V value, and it is determined that the absolute value of ΔV2 whose absolute value is the smallest among the ΔV2 is greater than the second preset V value, the chromaticity of the current pixel point will be The value is set to the average of the chrominance values of each of the neighboring pixel points.
优选地,所述当前像素点的若干个邻居像素点为:Preferably, the plurality of neighboring pixel points of the current pixel point are:
位于当前像素点的上方、下方、左方和右方的四个像素点。Four pixels above, below, to the left, and to the right of the current pixel.
一种去除奇点噪声的装置,对将要发送给编码器的图像中的各个像素 点进行处理,该装置包括:A device for removing singular noise, for each pixel in an image to be sent to an encoder Point processing, the device includes:
第一计算单元,用于计算当前像素点的若干个邻居像素点中,两两像素点的亮度差值和色度差值,得到若干第一亮度差值和若干第一色度差值;a first calculating unit, configured to calculate a luminance difference value and a chrominance difference value of two or two pixel points of the plurality of neighboring pixel points of the current pixel point, to obtain a plurality of first brightness difference values and a plurality of first chromaticity difference values;
第二计算单元,用于计算当前像素点与各所述邻居像素点的亮度差值和色度差值,得到若干第二亮度差值和若干第二色度差值;a second calculating unit, configured to calculate a luminance difference value and a chrominance difference value between the current pixel point and each of the neighboring pixel points, to obtain a plurality of second brightness difference values and a plurality of second chromaticity difference values;
第一判断单元,用于判断各所述第一亮度差值的绝对值是否小于第一预设亮度阀值;a first determining unit, configured to determine whether an absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold;
第二判断单元,用于在所述第一判断单元判断为是时,判断各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值是否大于第二预设亮度阀值;a second determining unit, configured to determine, when the first determining unit determines that the value is YES, whether the absolute value of the second brightness difference value whose absolute value is the smallest among the second brightness difference values is greater than the second preset brightness threshold ;
像素点亮度处理单元,用于在所述第二判断单元判断为是时,将所述当前像素点的亮度值设置为各所述邻居像素点的亮度值的平均值;a pixel brightness processing unit, configured to set a brightness value of the current pixel point to an average value of brightness values of each of the neighboring pixel points when the second determining unit determines to be YES;
第三判断单元,用于判断各所述第一色度差值的绝对值是否小于第一预设色度阀值;a third determining unit, configured to determine whether an absolute value of each of the first chrominance differences is less than a first preset chromaticity threshold;
第四判断单元,用于在所述第三判断单元判断为是时,判断各所述第二色度差值中绝对值最小的第二色度差值的绝对值是否大于第二预设色度阀值;a fourth determining unit, configured to determine, when the third determining unit determines that the value is YES, whether the absolute value of the second chromaticity difference value whose absolute value is the smallest among the second chromaticity difference values is greater than the second preset color Degree threshold
像素点色度处理单元,用于在所述第四判断单元判断为是时,将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。And a pixel chrominance processing unit configured to set a chromaticity value of the current pixel point to an average value of chromaticity values of each of the neighboring pixel points when the fourth determining unit determines that the value is YES.
优选地,在所述图像为YUV格式的图像时,计算所得的第一亮度差值为△Y1、第一色度差值为△U1和△V1、第二亮度差值为△Y2、第二色度差值为△U2和△V2,所述第一预设色度阀值包括第一预设U值和第一预设V值,所述第二预设色度阀值包括第二预设U值和第二预设V值;Preferably, when the image is an image of the YUV format, the calculated first luminance difference is ΔY1, the first chrominance difference is ΔU1 and ΔV1, and the second luminance difference is ΔY2, second. The chromaticity difference values are ΔU2 and ΔV2, the first preset chromaticity threshold includes a first preset U value and a first preset V value, and the second preset chromaticity threshold includes a second pre- Setting a U value and a second preset V value;
所述第三判断单元包括:The third determining unit includes:
第一U值判断单元,用于判断各△U1的绝对值是否小于第一预设U值;a first U value determining unit, configured to determine whether an absolute value of each ΔU1 is smaller than a first preset U value;
第一V值判断单元,用于判断各△V1的绝对值是否小于第一预设V值;a first V value determining unit, configured to determine whether an absolute value of each ΔV1 is smaller than a first preset V value;
所述第四判断单元包括:The fourth determining unit includes:
第二U值判断单元,用于在所述第一U值判断单元判断各△U1的绝对值小于第一预设U值时,判断各△U2中绝对值最小的△U2的绝对值是否大 于第二预设U值;The second U value determining unit is configured to determine, when the first U value determining unit determines that the absolute value of each ΔU1 is smaller than the first preset U value, whether the absolute value of the ΔU2 having the smallest absolute value in each ΔU2 is large At a second preset U value;
第二V值判断单元,用于在所述第一V值判断单元判断各△V1的绝对值小于第一预设V值时,判断各△V2中绝对值最小的△V2的绝对值是否大于第二预设V值。The second V value determining unit is configured to determine, when the first V value determining unit determines that the absolute value of each ΔV1 is smaller than the first preset V value, whether the absolute value of the ΔV2 having the smallest absolute value in each ΔV2 is greater than The second preset V value.
优选地,所述像素点色度处理单元包括:Preferably, the pixel chrominance processing unit comprises:
像素点色度处理子单元,用于在确定各△U1的绝对值小于第一预设U值,且确定各△U2中绝对值最小的△U2的绝对值大于第二预设U值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值;以及,在确定各△V1的绝对值小于第一预设V值,且确定各△V2中绝对值最小的△V2的绝对值大于第二预设V值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。a pixel chrominance processing sub-unit, configured to determine that an absolute value of each ΔU1 is smaller than a first preset U value, and determine that an absolute value of ΔU2 having the smallest absolute value in each ΔU2 is greater than a second preset U value, Setting a chromaticity value of the current pixel point to an average value of chrominance values of each of the neighboring pixel points; and determining that an absolute value of each ΔV1 is smaller than a first preset V value, and determining each ΔV2 When the absolute value of ΔV2 with the smallest absolute value is greater than the second preset V value, the chrominance value of the current pixel point is set to the average value of the chrominance values of each of the neighboring pixel points.
优选地,所述当前像素点的若干个邻居像素点为:Preferably, the plurality of neighboring pixel points of the current pixel point are:
位于当前像素点的上方、下方、左方和右方的四个像素点。Four pixels above, below, to the left, and to the right of the current pixel.
从上述的技术方案可以看出,本申请实施例提供的去除奇点噪声的方法,针对将要发送给编码器的图像中的各个像素点,执行下述过程:计算当前像素点的若干个邻居像素点中,两两像素点的亮度差值和色度差值,得到若干第一亮度差值和若干第一色度差值;计算当前像素点与各所述邻居像素点的亮度差值和色度差值,得到若干第二亮度差值和若干第二色度差值;在判断各所述第一亮度差值的绝对值小于第一预设亮度阀值,且各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值大于第二预设亮度阀值时,将所述当前像素点的亮度值设置为各所述邻居像素点的亮度值的平均值;在判断各所述第一色度差值的绝对值小于第一预设色度阀值,且各所述第二色度差值中绝对值最小的第二色度差值的绝对值大于第二预设色度阀值时,将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。通过上述过程,去除了图像中的奇点噪声,提升了用户的体验感。It can be seen from the above technical solution that the method for removing singular noise provided by the embodiment of the present application performs the following process for each pixel in an image to be sent to the encoder: calculating several neighbor pixels of the current pixel a luminance difference value and a chrominance difference value of two or two pixels in the point, to obtain a plurality of first luminance difference values and a plurality of first chrominance difference values; calculating luminance difference values and colors of the current pixel point and each of the neighboring pixel points a difference value, a plurality of second brightness difference values and a plurality of second color difference values are obtained; determining that an absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold, and each of the second brightness differences When the absolute value of the second brightness difference value whose absolute value is the smallest value is greater than the second preset brightness threshold value, the brightness value of the current pixel point is set as the average value of the brightness values of each of the neighboring pixel points; The absolute value of each of the first chromaticity differences is smaller than the first preset chromaticity threshold, and the absolute value of the second chromaticity difference having the smallest absolute value among the second chromaticity differences is greater than the second pre- The current pixel point when the chroma threshold is set Chrominance value to the average chroma value of each of the neighboring pixels. Through the above process, the singular noise in the image is removed, and the user's experience is improved.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will be The drawings used in the embodiments or the description of the prior art are briefly introduced. It is obvious that the drawings in the following description are merely examples of the present application, and no one skilled in the art will be engaged in creative labor. Further drawings may also be obtained from the drawings provided.
图1为本申请实施例公开的一种去除奇点噪声的方法流程图;FIG. 1 is a flowchart of a method for removing singular noise according to an embodiment of the present application;
图2为本申请实施例示例的一种8*8像素点阵图;2 is a bitmap of an 8*8 pixel according to an example of an embodiment of the present application;
图3为本申请实施例公开的一种去除奇点噪声的装置结构示意图。FIG. 3 is a schematic structural diagram of an apparatus for removing singular noise according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请实施例提供了一种去除奇点噪声的方法,该方法针对将要发送给编码器的图像中的各个像素点进行处理,具体处理过程参见图1。The embodiment of the present application provides a method for removing singular noise, which is processed for each pixel in an image to be sent to an encoder, and the specific processing process is shown in FIG. 1 .
在介绍本申请方案之前,需要解释的是,图像的像素点由亮度和色度两个因素构成,二者中任意一个的值过高或者过低均可能造成该像素点成为一个奇点噪声。Before introducing the solution of the present application, it should be explained that the pixel of the image is composed of two factors of brightness and chrominance, and the value of either one of the two is too high or too low, which may cause the pixel to become a singular noise.
如图1所示,该方法包括:As shown in Figure 1, the method includes:
步骤S100、计算当前像素点的若干个邻居像素点中,两两像素点的亮度差值和色度差值,得到若干第一亮度差值和若干第一色度差值;Step S100: Calculate a luminance difference value and a chrominance difference value of two or two pixel points of the plurality of neighboring pixel points of the current pixel point, to obtain a plurality of first brightness difference values and a plurality of first color difference values;
具体地,图像中的像素点一般是矩形排布的,每一个像素点均存在邻居像素点。可以理解的是,图像的四个边上的像素点的邻居像素点的个数,小于图像中部的像素点的邻居像素点的个数。Specifically, the pixels in the image are generally arranged in a rectangle, and each pixel has a neighbor pixel. It can be understood that the number of neighboring pixel points of the pixel points on the four sides of the image is smaller than the number of neighboring pixel points of the pixel points in the middle of the image.
本步骤中,针对当前像素点的若干个邻居像素点,计算两两之间的亮度差值和色度差值。In this step, the luminance difference and the chrominance difference between the two pairs are calculated for a plurality of neighboring pixel points of the current pixel.
步骤S110、计算当前像素点与各所述邻居像素点的亮度差值和色度差值,得到若干第二亮度差值和若干第二色度差值;Step S110, calculating a luminance difference value and a chrominance difference value between the current pixel point and each of the neighboring pixel points, to obtain a plurality of second brightness difference values and a plurality of second chromaticity difference values;
步骤S120、判断各所述第一亮度差值的绝对值是否小于第一预设亮度阀值;若是,执行步骤S130; Step S120, determining whether the absolute value of each of the first brightness difference is less than the first preset brightness threshold; if yes, executing step S130;
其中,第一预设亮度阀值为预先设定的值,如果各个第一亮度差值的绝对值均小于该值,则意味着邻居像素点的亮度差异不大,其中不存在奇点噪声。The first preset brightness threshold value is a preset value. If the absolute values of the respective first brightness difference values are smaller than the value, it means that the brightness difference of the neighboring pixel points is not large, and there is no singular point noise.
步骤S130、判断各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值是否大于第二预设亮度阀值;若是,执行步骤S140;Step S130, determining whether the absolute value of the second brightness difference value with the smallest absolute value among the second brightness difference values is greater than the second preset brightness threshold; if yes, executing step S140;
其中,第二预设亮度阀值为预先设定的值,如果各第二亮度差值中绝大值最小的第二亮度差值的绝对值大于该值,则意味着当前像素点的亮度远远大于其邻居像素点的亮度。而又因为上述已经确定了当前像素点的邻居像素点均为非奇点噪声,因此可以确定当前像素点为一个奇点噪声。Wherein, the second preset brightness threshold value is a preset value, and if the absolute value of the second brightness difference value which is the smallest of the second brightness difference values is greater than the value, it means that the brightness of the current pixel point is far Far greater than the brightness of its neighboring pixels. Moreover, since it has been determined that the neighboring pixel points of the current pixel point are non-singular point noise, it can be determined that the current pixel point is a singular point noise.
步骤S140、将所述当前像素点的亮度值设置为各所述邻居像素点的亮度值的平均值;Step S140, setting a brightness value of the current pixel point as an average value of brightness values of each of the neighboring pixel points;
在上一步骤确定出当前像素点为一个奇点噪声后,需要调整当前像素点的亮度值。具体调整时,将当前像素点的亮度值调整为其邻居像素点亮度值的平均值。After determining that the current pixel point is a singular noise in the previous step, it is necessary to adjust the brightness value of the current pixel point. During the specific adjustment, the brightness value of the current pixel point is adjusted to the average value of the luminance values of its neighboring pixel points.
步骤S150、判断各所述第一色度差值的绝对值是否小于第一预设色度阀值;若是,执行步骤S160;Step S150, determining whether the absolute value of each of the first chromaticity difference is less than the first preset chromaticity threshold; if yes, executing step S160;
其中,第一预设色度阀值为预先设定的值,如果各个第一色度差值的绝对值均小于该值,则意味着邻居像素点的色度差异不大,其中不存在奇点噪声。The first preset chroma threshold is a preset value. If the absolute values of the first chroma differences are smaller than the value, it means that the chroma of the neighbor pixels is not much different, and there is no oddity. Point noise.
步骤S160、判断各所述第二色度差值中绝对值最小的第二色度差值的绝对值是否大于第二预设色度阀值;若是,执行步骤S170;Step S160, determining whether the absolute value of the second chromaticity difference value whose absolute value is the smallest among the second chromaticity difference values is greater than the second preset chromaticity threshold value; if yes, executing step S170;
其中,第二预设色度阀值为预先设定的值,如果各第二色度差值中绝大值最小的第二色度差值的绝对值大于该值,则意味着当前像素点的色度远远大于其邻居像素点的色度。而又因为上述已经确定了当前像素点的邻居像素点均为非奇点噪声,因此可以确定当前像素点为一个奇点噪声。Wherein, the second preset chroma threshold is a preset value, and if the absolute value of the second chroma difference of the smallest of the second chroma differences is greater than the value, the current pixel is The chromaticity is much larger than the chrominance of its neighboring pixels. Moreover, since it has been determined that the neighboring pixel points of the current pixel point are non-singular point noise, it can be determined that the current pixel point is a singular point noise.
步骤S170、将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。Step S170: Set a chromaticity value of the current pixel point as an average value of chrominance values of each of the neighboring pixel points.
在上一步骤确定出当前像素点为一个奇点噪声后,需要调整当前像素点的色度值。具体调整时,将当前像素点的色度值调整为其邻居像素点色 度值的平均值。After determining that the current pixel is a singular noise in the previous step, it is necessary to adjust the chrominance value of the current pixel. When the adjustment is made, the chromaticity value of the current pixel is adjusted to its neighbor pixel color. The average of the degrees.
需要解释的是,上述步骤S100和步骤S110不限定先后顺序,而步骤S120-S140与步骤S150-S170是两个独立的判断过程,这两个环节可以单独执行,也可以先后执行,图1中仅仅示例了这两个环节独立执行的情况。It should be noted that the foregoing steps S100 and S110 do not limit the sequence, and steps S120-S140 and steps S150-S170 are two independent determination processes, which may be performed separately or sequentially. Just illustrate the case where these two links are executed independently.
本申请实施例提供的去除奇点噪声的方法,针对将要发送给编码器的图像中的各个像素点,执行下述过程:计算当前像素点的若干个邻居像素点中,两两像素点的亮度差值和色度差值,得到若干第一亮度差值和若干第一色度差值;计算当前像素点与各所述邻居像素点的亮度差值和色度差值,得到若干第二亮度差值和若干第二色度差值;在判断各所述第一亮度差值的绝对值小于第一预设亮度阀值,且各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值大于第二预设亮度阀值时,将所述当前像素点的亮度值设置为各所述邻居像素点的亮度值的平均值;在判断各所述第一色度差值的绝对值小于第一预设色度阀值,且各所述第二色度差值中绝对值最小的第二色度差值的绝对值大于第二预设色度阀值时,将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。通过上述过程,去除了图像中的奇点噪声,提升了用户的体验感。The method for removing singularity noise provided by the embodiment of the present application performs the following process for calculating each pixel point in an image to be sent to the encoder: calculating brightness of two or two pixel points among several neighboring pixel points of the current pixel point And a difference between the difference and the chrominance, obtaining a plurality of first luminance differences and a plurality of first chrominance differences; calculating a luminance difference and a chrominance difference between the current pixel and each of the neighboring pixels to obtain a plurality of second luminances a difference value and a plurality of second chromaticity difference values; determining that the absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold, and wherein the second brightness of each of the second brightness difference values is the smallest When the absolute value of the difference is greater than the second preset brightness threshold, setting the brightness value of the current pixel point to an average value of the brightness values of each of the neighboring pixel points; determining each of the first chromaticity difference values The absolute value of the second chromaticity difference value is smaller than the second preset chromaticity threshold, and the absolute value of the second chromaticity difference value of each of the second chromaticity difference values is greater than the second preset chromaticity threshold The chrominance value of the current pixel is set to each of the neighbor images Point average chroma values. Through the above process, the singular noise in the image is removed, and the user's experience is improved.
需要说明的是,上述所述的当前像素点的邻居像素点可以理解为当前像素点的上方、下方、左方和右方的四个像素点。当然,如果当前像素点处于图像边缘,则该像素点的邻居像素点可能不足4个,此时仅需要考虑其余邻居像素点即可。It should be noted that the neighboring pixel points of the current pixel point described above can be understood as four pixel points above, below, to the left, and to the right of the current pixel point. Of course, if the current pixel is at the edge of the image, the neighboring pixels of the pixel may be less than four, and only the remaining neighbor pixels need to be considered.
由于现有的编码器一般只能够对YUV格式的图像信息进行编码,因此如果摄像头采集的图像是RGB格式的图像信息,则需要按照现有公式转换为YUV格式的图像信息。YUV格式的图像包括亮度信号Y和两个色度信号U和V。Since the existing encoder can only encode image information in the YUV format, if the image captured by the camera is image information in the RGB format, it is necessary to convert the image information into the YUV format according to the existing formula. The image in the YUV format includes a luminance signal Y and two chrominance signals U and V.
针对图像为YUV格式的图像,我们在对上述实施例的方案进行介绍。For the image in which the image is in the YUV format, we introduce the scheme of the above embodiment.
首先,上述计算所得的第一亮度差值为△Y1、第一色度差值为△U1和△V1、第二亮度差值为△Y2、第二色度差值为△U2和△V2。所述第一预设色度阀值包括第一预设U值和第一预设V值,所述第二预设色度阀值包括第二预设U值和第二预设V值。 First, the first luminance difference obtained by the above calculation is ΔY1, the first chromaticity difference is ΔU1 and ΔV1, the second luminance difference is ΔY2, and the second chromaticity difference is ΔU2 and ΔV2. The first preset chroma threshold includes a first preset U value and a first preset V value, and the second preset chroma threshold includes a second preset U value and a second preset V value.
1、上述判断各所述第一亮度差值的绝对值是否小于第一预设亮度阀值的过程为:1. The above process of determining whether the absolute value of each of the first brightness difference values is less than the first preset brightness threshold is:
判断各△Y1的绝对值是否小于第一预设亮度阀值。It is determined whether the absolute value of each ΔY1 is smaller than the first preset brightness threshold.
2、上述判断各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值是否大于第二预设亮度阀值的过程为:2. The process of determining whether the absolute value of the second brightness difference value with the smallest absolute value among the second brightness difference values is greater than the second preset brightness threshold is:
判断各△Y2中绝对值最小的△Y2的绝对值是否大于第二预设亮度阀值。It is judged whether or not the absolute value of ΔY2 whose absolute value is the smallest among the respective ΔY2 is greater than the second preset brightness threshold.
3、上述判断各所述第一色度差值的绝对值是否小于第一预设色度阀值,以及在判断结果为是时,判断各所述第二色度差值中绝对值最小的第二色度差值的绝对值是否大于第二预设色度阀值的过程为:3. determining whether the absolute value of each of the first chromaticity differences is smaller than a first preset chromaticity threshold, and determining that the absolute value of each of the second chromaticity differences is the smallest when the determination result is YES. The process of whether the absolute value of the second chromaticity difference is greater than the second preset chromaticity threshold is:
判断各△U1的绝对值是否小于第一预设U值;Determining whether the absolute value of each ΔU1 is smaller than the first preset U value;
在确定各△U1的绝对值小于第一预设U值时,判断各△U2中绝对值最小的△U2的绝对值是否大于第二预设U值。When it is determined that the absolute value of each ΔU1 is smaller than the first preset U value, it is determined whether the absolute value of ΔU2 whose absolute value is the smallest among the ΔU2 is greater than the second preset U value.
以及,as well as,
判断各△V1的绝对值是否小于第一预设V值;Determining whether the absolute value of each ΔV1 is less than a first preset V value;
在确定各△V1的绝对值小于第一预设V值时,判断各△V2中绝对值最小的△V2的绝对值是否大于第二预设V值。When it is determined that the absolute value of each ΔV1 is smaller than the first preset V value, it is determined whether the absolute value of ΔV2 whose absolute value is the smallest among the ΔV2 is greater than the second preset V value.
4、上述将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值的过程为:4. The process of setting the chrominance value of the current pixel point to the average value of the chrominance values of each of the neighboring pixel points is as follows:
在确定各△U1的绝对值小于第一预设U值,且确定各△U2中绝对值最小的△U2的绝对值大于第二预设U值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值;以及,When it is determined that the absolute value of each ΔU1 is smaller than the first preset U value, and the absolute value of ΔU2 whose absolute value is the smallest among the ΔU2 is determined to be greater than the second preset U value, the chromaticity of the current pixel point will be determined. a value set to an average of chrominance values for each of the neighboring pixel points; and,
在确定各△V1的绝对值小于第一预设V值,且确定各△V2中绝对值最小的△V2的绝对值大于第二预设V值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。When it is determined that the absolute value of each ΔV1 is smaller than the first preset V value, and it is determined that the absolute value of ΔV2 whose absolute value is the smallest among the ΔV2 is greater than the second preset V value, the chromaticity of the current pixel point will be The value is set to the average of the chrominance values of each of the neighboring pixel points.
综合来看,像素点的亮度Y、色度U和色度V均会对像素点成为奇点噪声构成影响。若像素点由于亮度Y而成为奇点噪声时,则需要对像素点的亮度Y进行调整;若像素点由于色度U而成为奇点噪声时,则需要对像素点的色度U进行调整;若像素点由于色度V而成为奇点噪声时,则需要对像素点的色度V进行调整。 In summary, the luminance Y, the chrominance U, and the chrominance V of the pixel affect the singularity of the pixel. If the pixel point becomes singular noise due to the brightness Y, it is necessary to adjust the brightness Y of the pixel point; if the pixel point becomes singular noise due to the chromaticity U, it is necessary to adjust the chromaticity U of the pixel point; If the pixel point becomes singular noise due to the chromaticity V, it is necessary to adjust the chromaticity V of the pixel.
为了便于理解,本实施例通过一个具体例子进行说明,如图2所示。For ease of understanding, the embodiment is illustrated by a specific example, as shown in FIG. 2.
图2示例了8*8的像素点阵。其中,像素点P的邻居像素点选为P的上下左右四个像素点(图中标注斜线的点),分别定义为P、P、P、P。本实施例中仅示例通过像素点的亮度来判断像素点是否为奇点噪声的过程。假设P的亮度为10,P、P、P、P的亮度分别为2、3、4、3。定义第一预设亮度阀值为3,第二预设亮度阀值为5。Figure 2 illustrates an 8*8 pixel lattice. The neighboring pixels of the pixel point P are selected as the upper, lower, left, and right pixel points of P (points marked with diagonal lines in the figure), and are defined as P up , P down , P left , and P right, respectively . In the present embodiment, only the process of judging whether or not the pixel point is singular noise by the brightness of the pixel point is exemplified. P is assumed luminance is 10, the P, the P, P left, P right 2,3,4,3 luminance respectively. The first preset brightness threshold is defined as 3, and the second preset brightness threshold is 5.
由于P、P、P、P四个点之间,任意两个点的亮度的差值均为超过3,且P点与P、P、P、P四个点的亮度差值中最小的差值为10-4=6,而由于6大于第二预设亮度阀值5,因而确定像素点P为奇点噪声。Since the upper P, the P, between P left, and right points P, the difference between any two points of brightness are more than 3, and the point P and P, the P, P left, and right points P The smallest difference among the luminance differences is 10-4=6, and since 6 is greater than the second preset luminance threshold 5, it is determined that the pixel point P is singular noise.
下面对本申请实施例提供的去除奇点噪声的装置进行描述,下文描述的去除奇点噪声的装置与上文描述的去除奇点噪声的方法可相互对应参照。The apparatus for removing singular noise provided by the embodiment of the present application is described below, and the apparatus for removing singular noise described below and the method for removing singular noise described above may be referred to each other.
参见图3,图3为本申请实施例公开的一种去除奇点噪声的装置结构示意图。Referring to FIG. 3, FIG. 3 is a schematic structural diagram of an apparatus for removing singular noise according to an embodiment of the present application.
该装置对将要发送给编码器的图像中的各个像素点进行处理。如图3所示,该装置包括:The device processes the individual pixels in the image to be sent to the encoder. As shown in Figure 3, the device comprises:
第一计算单元31,用于计算当前像素点的若干个邻居像素点中,两两像素点的亮度差值和色度差值,得到若干第一亮度差值和若干第一色度差值;The first calculating unit 31 is configured to calculate a luminance difference value and a chrominance difference value of two or two pixel points of the plurality of neighboring pixel points of the current pixel point, to obtain a plurality of first brightness difference values and a plurality of first chromaticity difference values;
第二计算单元32,用于计算当前像素点与各所述邻居像素点的亮度差值和色度差值,得到若干第二亮度差值和若干第二色度差值;a second calculating unit 32, configured to calculate a luminance difference value and a chrominance difference value between the current pixel point and each of the neighboring pixel points, to obtain a plurality of second brightness difference values and a plurality of second color difference values;
第一判断单元33,用于判断各所述第一亮度差值的绝对值是否小于第一预设亮度阀值;The first determining unit 33 is configured to determine whether an absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold;
第二判断单元34,用于在所述第一判断单元33判断为是时,判断各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值是否大于第二预设亮度阀值;The second determining unit 34 is configured to determine, when the first determining unit 33 determines that the value is YES, whether the absolute value of the second brightness difference value whose absolute value is the smallest among the second brightness difference values is greater than the second preset brightness Threshold
像素点亮度处理单元35,用于在所述第二判断单元34判断为是时,将所述当前像素点的亮度值设置为各所述邻居像素点的亮度值的平均值; a pixel brightness processing unit 35, configured to set a brightness value of the current pixel point to an average value of brightness values of each of the neighboring pixel points when the second determining unit 34 determines YES;
第三判断单元36,用于判断各所述第一色度差值的绝对值是否小于第一预设色度阀值;The third determining unit 36 is configured to determine whether an absolute value of each of the first chromaticity difference values is smaller than a first preset chromaticity threshold value;
第四判断单元37,用于在所述第三判断单元36判断为是时,判断各所述第二色度差值中绝对值最小的第二色度差值的绝对值是否大于第二预设色度阀值;The fourth determining unit 37 is configured to determine, when the third determining unit 36 determines that the value is YES, whether the absolute value of the second chromaticity difference value whose absolute value is the smallest among the second chromaticity difference values is greater than the second pre-predetermined Set the chroma threshold;
像素点色度处理单元38,用于在所述第四判断单元37判断为是时,将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。The pixel chrominance processing unit 38 is configured to set a chromaticity value of the current pixel point to an average value of chromaticity values of each of the neighboring pixel points when the fourth determining unit 37 determines YES.
可选的,在所述图像为YUV格式的图像时,计算所得的第一亮度差值为△Y1、第一色度差值为△U1和△V1、第二亮度差值为△Y2、第二色度差值为△U2和△V2,所述第一预设色度阀值包括第一预设U值和第一预设V值,所述第二预设色度阀值包括第二预设U值和第二预设V值;Optionally, when the image is an image of the YUV format, the calculated first brightness difference is ΔY1, the first chromaticity difference is ΔU1 and ΔV1, and the second brightness difference is ΔY2. The two chromaticity difference values are ΔU2 and ΔV2, the first preset chromaticity threshold includes a first preset U value and a first preset V value, and the second preset chromaticity threshold includes a second Presetting a U value and a second preset V value;
所述第三判断单元36可以包括:The third determining unit 36 may include:
第一U值判断单元,用于判断各△U1的绝对值是否小于第一预设U值;a first U value determining unit, configured to determine whether an absolute value of each ΔU1 is smaller than a first preset U value;
第一V值判断单元,用于判断各△V1的绝对值是否小于第一预设V值;a first V value determining unit, configured to determine whether an absolute value of each ΔV1 is smaller than a first preset V value;
所述第四判断单元包括:The fourth determining unit includes:
第二U值判断单元,用于在所述第一U值判断单元判断各△U1的绝对值小于第一预设U值时,判断各△U2中绝对值最小的△U2的绝对值是否大于第二预设U值;The second U value determining unit is configured to determine, when the first U value determining unit determines that the absolute value of each ΔU1 is smaller than the first preset U value, whether the absolute value of the ΔU2 having the smallest absolute value in each ΔU2 is greater than a second preset U value;
第二V值判断单元,用于在所述第一V值判断单元判断各△V1的绝对值小于第一预设V值时,判断各△V2中绝对值最小的△V2的绝对值是否大于第二预设V值。The second V value determining unit is configured to determine, when the first V value determining unit determines that the absolute value of each ΔV1 is smaller than the first preset V value, whether the absolute value of the ΔV2 having the smallest absolute value in each ΔV2 is greater than The second preset V value.
所述像素点色度处理单元38可以包括:The pixel chrominance processing unit 38 may include:
像素点色度处理子单元,用于在确定各△U1的绝对值小于第一预设U值,且确定各△U2中绝对值最小的△U2的绝对值大于第二预设U值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值;以及,在确定各△V1的绝对值小于第一预设V值,且确定各△V2中绝对值最小的△V2的绝对值大于第二预设V值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。a pixel chrominance processing sub-unit, configured to determine that an absolute value of each ΔU1 is smaller than a first preset U value, and determine that an absolute value of ΔU2 having the smallest absolute value in each ΔU2 is greater than a second preset U value, Setting a chromaticity value of the current pixel point to an average value of chrominance values of each of the neighboring pixel points; and determining that an absolute value of each ΔV1 is smaller than a first preset V value, and determining each ΔV2 When the absolute value of ΔV2 with the smallest absolute value is greater than the second preset V value, the chrominance value of the current pixel point is set to the average value of the chrominance values of each of the neighboring pixel points.
需要说明的是,上述所述的当前像素点的邻居像素点可以理解为当前 像素点的上方、下方、左方和右方的四个像素点。当然,如果当前像素点处于图像边缘,则该像素点的邻居像素点可能不足4个,此时仅需要考虑其余邻居像素点即可。It should be noted that the neighboring pixel points of the current pixel point described above can be understood as current. Four pixels above, below, to the left and to the right of the pixel. Of course, if the current pixel is at the edge of the image, the neighboring pixels of the pixel may be less than four, and only the remaining neighbor pixels need to be considered.
本申请实施例提供的去除奇点噪声的装置,针对将要发送给编码器的图像中的各个像素点,执行下述过程:计算当前像素点的若干个邻居像素点中,两两像素点的亮度差值和色度差值,得到若干第一亮度差值和若干第一色度差值;计算当前像素点与各所述邻居像素点的亮度差值和色度差值,得到若干第二亮度差值和若干第二色度差值;在判断各所述第一亮度差值的绝对值小于第一预设亮度阀值,且各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值大于第二预设亮度阀值时,将所述当前像素点的亮度值设置为各所述邻居像素点的亮度值的平均值;在判断各所述第一色度差值的绝对值小于第一预设色度阀值,且各所述第二色度差值中绝对值最小的第二色度差值的绝对值大于第二预设色度阀值时,将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。通过上述过程,去除了图像中的奇点噪声,提升了用户的体验感。The apparatus for removing singular noise provided by the embodiment of the present application performs the following process for calculating each pixel point in an image to be sent to the encoder: calculating brightness of two or two pixel points among several neighboring pixel points of the current pixel point And a difference between the difference and the chrominance, obtaining a plurality of first luminance differences and a plurality of first chrominance differences; calculating a luminance difference and a chrominance difference between the current pixel and each of the neighboring pixels to obtain a plurality of second luminances a difference value and a plurality of second chromaticity difference values; determining that the absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold, and wherein the second brightness of each of the second brightness difference values is the smallest When the absolute value of the difference is greater than the second preset brightness threshold, setting the brightness value of the current pixel point to an average value of the brightness values of each of the neighboring pixel points; determining each of the first chromaticity difference values The absolute value of the second chromaticity difference value is smaller than the second preset chromaticity threshold, and the absolute value of the second chromaticity difference value of each of the second chromaticity difference values is greater than the second preset chromaticity threshold The chrominance value of the current pixel is set to each of the neighbor images Point average chroma values. Through the above process, the singular noise in the image is removed, and the user's experience is improved.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments may be referred to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使 用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The above description of the disclosed embodiments enables one skilled in the art to implement or make Use this application. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the application is not limited to the embodiments shown herein, but is to be accorded the broadest scope of the principles and novel features disclosed herein.

Claims (8)

  1. 一种去除奇点噪声的方法,其特征在于,针对将要发送给编码器的图像中的各个像素点,执行下述过程:A method of removing singular noise, characterized in that the following process is performed for each pixel in an image to be transmitted to an encoder:
    计算当前像素点的若干个邻居像素点中,两两像素点的亮度差值和色度差值,得到若干第一亮度差值和若干第一色度差值;计算当前像素点与各所述邻居像素点的亮度差值和色度差值,得到若干第二亮度差值和若干第二色度差值;Calculating a luminance difference value and a chrominance difference value of two or two pixel points of the plurality of neighboring pixel points of the current pixel point, obtaining a plurality of first luminance difference values and a plurality of first chrominance difference values; calculating the current pixel point and each of the foregoing a luminance difference value and a chrominance difference value of neighboring pixels, to obtain a plurality of second luminance difference values and a plurality of second chrominance difference values;
    判断各所述第一亮度差值的绝对值是否小于第一预设亮度阀值;Determining whether an absolute value of each of the first brightness difference values is less than a first preset brightness threshold;
    若是,判断各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值是否大于第二预设亮度阀值;If yes, determining whether an absolute value of the second brightness difference value whose absolute value is the smallest among the second brightness difference values is greater than a second preset brightness threshold value;
    若是,将所述当前像素点的亮度值设置为各所述邻居像素点的亮度值的平均值;If yes, setting a brightness value of the current pixel point to an average value of brightness values of each of the neighboring pixel points;
    判断各所述第一色度差值的绝对值是否小于第一预设色度阀值;Determining whether an absolute value of each of the first chromaticity difference values is less than a first preset chromaticity threshold;
    若是,判断各所述第二色度差值中绝对值最小的第二色度差值的绝对值是否大于第二预设色度阀值;If yes, determining whether an absolute value of the second chromaticity difference value whose absolute value is the smallest among the second chromaticity difference values is greater than a second preset chromaticity threshold value;
    若是,将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。If so, the chrominance value of the current pixel point is set to an average value of the chrominance values of each of the neighboring pixel points.
  2. 根据权利要求1所述的方法,其特征在于,在所述图像为YUV格式的图像时,计算所得的第一亮度差值为ΔY1、第一色度差值为ΔU1和ΔV1、第二亮度差值为ΔY2、第二色度差值为ΔU2和ΔV2,所述第一预设色度阀值包括第一预设U值和第一预设V值,所述第二预设色度阀值包括第二预设U值和第二预设V值;The method according to claim 1, wherein when the image is an image of the YUV format, the calculated first luminance difference value is ΔY1, and the first chrominance difference values are ΔU1 and ΔV1, and the second luminance difference The value is ΔY2, the second chromaticity difference is ΔU2 and ΔV2, and the first preset chromaticity threshold includes a first preset U value and a first preset V value, and the second preset chromaticity threshold The second preset U value and the second preset V value are included;
    所述判断各所述第一色度差值的绝对值是否小于第一预设色度阀值,以及在判断结果为是时,判断各所述第二色度差值中绝对值最小的第二色度差值的绝对值是否大于第二预设色度阀值的过程为:Determining whether an absolute value of each of the first chromaticity difference values is smaller than a first preset chromaticity threshold value, and determining a minimum value of each of the second chromaticity difference values when the determination result is YES The process of whether the absolute value of the dichromatic difference value is greater than the second preset chroma threshold is:
    判断各ΔU1的绝对值是否小于第一预设U值;Determining whether an absolute value of each ΔU1 is smaller than a first preset U value;
    在确定各ΔU1的绝对值小于第一预设U值时,判断各ΔU2中绝对值最小的ΔU2的绝对值是否大于第二预设U值; When determining that the absolute value of each ΔU1 is less than the first preset U value, determining whether the absolute value of ΔU2 with the smallest absolute value in each ΔU2 is greater than the second preset U value;
    判断各ΔV1的绝对值是否小于第一预设V值;Determining whether an absolute value of each ΔV1 is smaller than a first preset V value;
    在确定各ΔV1的绝对值小于第一预设V值时,判断各ΔV2中绝对值最小的ΔV2的绝对值是否大于第二预设V值。When it is determined that the absolute value of each ΔV1 is smaller than the first preset V value, it is judged whether or not the absolute value of ΔV2 whose absolute value is the smallest among the respective ΔV2 is greater than the second preset V value.
  3. 根据权利要求2所述的方法,其特征在于,所述将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值,包括:The method according to claim 2, wherein the setting the chrominance value of the current pixel point to an average value of chrominance values of each of the neighboring pixel points comprises:
    在确定各ΔU1的绝对值小于第一预设U值,且确定各ΔU2中绝对值最小的ΔU2的绝对值大于第二预设U值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值;以及,When determining that the absolute value of each ΔU1 is smaller than the first preset U value, and determining that the absolute value of ΔU2 whose absolute value is the smallest among the ΔU2 is greater than the second preset U value, the chromaticity value of the current pixel point is set to The average of the chrominance values of each of the neighboring pixel points; and,
    在确定各ΔV1的绝对值小于第一预设V值,且确定各ΔV2中绝对值最小的ΔV2的绝对值大于第二预设V值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。When determining that the absolute value of each ΔV1 is less than the first preset V value, and determining that the absolute value of ΔV2 whose absolute value is the smallest among the ΔV2 is greater than the second preset V value, the chromaticity value of the current pixel point is set to The average of the chrominance values of each of the neighboring pixel points.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述当前像素点的若干个邻居像素点为:The method according to any one of claims 1-3, wherein the plurality of neighboring pixel points of the current pixel point are:
    位于当前像素点的上方、下方、左方和右方的四个像素点。Four pixels above, below, to the left, and to the right of the current pixel.
  5. 一种去除奇点噪声的装置,其特征在于,对将要发送给编码器的图像中的各个像素点进行处理,该装置包括:A device for removing singular noise, characterized in that each pixel in an image to be transmitted to an encoder is processed, the device comprising:
    第一计算单元,用于计算当前像素点的若干个邻居像素点中,两两像素点的亮度差值和色度差值,得到若干第一亮度差值和若干第一色度差值;a first calculating unit, configured to calculate a luminance difference value and a chrominance difference value of two or two pixel points of the plurality of neighboring pixel points of the current pixel point, to obtain a plurality of first brightness difference values and a plurality of first chromaticity difference values;
    第二计算单元,用于计算当前像素点与各所述邻居像素点的亮度差值和色度差值,得到若干第二亮度差值和若干第二色度差值;a second calculating unit, configured to calculate a luminance difference value and a chrominance difference value between the current pixel point and each of the neighboring pixel points, to obtain a plurality of second brightness difference values and a plurality of second chromaticity difference values;
    第一判断单元,用于判断各所述第一亮度差值的绝对值是否小于第一预设亮度阀值;a first determining unit, configured to determine whether an absolute value of each of the first brightness difference values is smaller than a first preset brightness threshold;
    第二判断单元,用于在所述第一判断单元判断为是时,判断各所述第二亮度差值中绝对值最小的第二亮度差值的绝对值是否大于第二预设亮度阀值;a second determining unit, configured to determine, when the first determining unit determines that the value is YES, whether the absolute value of the second brightness difference value whose absolute value is the smallest among the second brightness difference values is greater than the second preset brightness threshold ;
    像素点亮度处理单元,用于在所述第二判断单元判断为是时,将所述当前像素点的亮度值设置为各所述邻居像素点的亮度值的平均值;a pixel brightness processing unit, configured to set a brightness value of the current pixel point to an average value of brightness values of each of the neighboring pixel points when the second determining unit determines to be YES;
    第三判断单元,用于判断各所述第一色度差值的绝对值是否小于第一预设色度阀值; a third determining unit, configured to determine whether an absolute value of each of the first chrominance differences is less than a first preset chromaticity threshold;
    第四判断单元,用于在所述第三判断单元判断为是时,判断各所述第二色度差值中绝对值最小的第二色度差值的绝对值是否大于第二预设色度阀值;a fourth determining unit, configured to determine, when the third determining unit determines that the value is YES, whether the absolute value of the second chromaticity difference value whose absolute value is the smallest among the second chromaticity difference values is greater than the second preset color Degree threshold
    像素点色度处理单元,用于在所述第四判断单元判断为是时,将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。And a pixel chrominance processing unit configured to set a chromaticity value of the current pixel point to an average value of chromaticity values of each of the neighboring pixel points when the fourth determining unit determines that the value is YES.
  6. 根据权利要求5所述的装置,其特征在于,在所述图像为YUV格式的图像时,计算所得的第一亮度差值为ΔY1、第一色度差值为ΔU1和ΔV1、第二亮度差值为ΔY2、第二色度差值为ΔU2和ΔV2,所述第一预设色度阀值包括第一预设U值和第一预设V值,所述第二预设色度阀值包括第二预设U值和第二预设V值;The apparatus according to claim 5, wherein when the image is an image of the YUV format, the calculated first luminance difference value is ΔY1, and the first chrominance difference values are ΔU1 and ΔV1, and the second luminance difference The value is ΔY2, the second chromaticity difference is ΔU2 and ΔV2, and the first preset chromaticity threshold includes a first preset U value and a first preset V value, and the second preset chromaticity threshold The second preset U value and the second preset V value are included;
    所述第三判断单元包括:The third determining unit includes:
    第一U值判断单元,用于判断各ΔU1的绝对值是否小于第一预设U值;a first U value determining unit, configured to determine whether an absolute value of each ΔU1 is smaller than a first preset U value;
    第一V值判断单元,用于判断各ΔV1的绝对值是否小于第一预设V值;a first V value determining unit, configured to determine whether an absolute value of each ΔV1 is smaller than a first preset V value;
    所述第四判断单元包括:The fourth determining unit includes:
    第二U值判断单元,用于在所述第一U值判断单元判断各ΔU1的绝对值小于第一预设U值时,判断各ΔU2中绝对值最小的ΔU2的绝对值是否大于第二预设U值;a second U value judging unit, configured to determine, when the first U value judging unit judges that the absolute value of each ΔU1 is smaller than the first preset U value, whether the absolute value of ΔU2 having the smallest absolute value in each ΔU2 is greater than the second pre- Set the U value;
    第二V值判断单元,用于在所述第一V值判断单元判断各ΔV1的绝对值小于第一预设V值时,判断各ΔV2中绝对值最小的ΔV2的绝对值是否大于第二预设V值。The second V value determining unit is configured to determine, when the first V value determining unit determines that the absolute value of each ΔV1 is smaller than the first preset V value, whether the absolute value of the ΔV2 with the smallest absolute value in each ΔV2 is greater than the second pre- Set the V value.
  7. 根据权利要求6所述的装置,其特征在于,所述像素点色度处理单元包括:The apparatus according to claim 6, wherein the pixel chrominance processing unit comprises:
    像素点色度处理子单元,用于在确定各ΔU1的绝对值小于第一预设U值,且确定各ΔU2中绝对值最小的ΔU2的绝对值大于第二预设U值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值;以及,在确定各ΔV1的绝对值小于第一预设V值,且确定各ΔV2中绝对值最小的ΔV2的绝对值大于第二预设V值时,将将所述当前像素点的色度值设置为各所述邻居像素点的色度值的平均值。a pixel chrominance processing sub-unit, configured to determine that an absolute value of each ΔU1 is smaller than a first preset U value, and determining that an absolute value of ΔU2 having the smallest absolute value in each ΔU2 is greater than a second preset U value The chromaticity value of the current pixel point is set as an average value of chrominance values of each of the neighboring pixel points; and, in determining that the absolute value of each ΔV1 is smaller than the first preset V value, and determining that the absolute value of each ΔV2 is the smallest When the absolute value of ΔV2 is greater than the second predetermined V value, the chrominance value of the current pixel point is set to an average value of the chrominance values of each of the neighboring pixel points.
  8. 根据权利要求5-7任一项所述的装置,其特征在于,所述当前像素 点的若干个邻居像素点为:Apparatus according to any of claims 5-7, wherein said current pixel The number of neighbor pixels of the point is:
    位于当前像素点的上方、下方、左方和右方的四个像素点。 Four pixels above, below, to the left, and to the right of the current pixel.
PCT/CN2015/081797 2015-03-30 2015-06-18 Method and device for removing singular point noise WO2016155124A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510145620.9 2015-03-30
CN201510145620.9A CN104717401B (en) 2015-03-30 2015-03-30 A kind of method and device for removing singular point noise

Publications (1)

Publication Number Publication Date
WO2016155124A1 true WO2016155124A1 (en) 2016-10-06

Family

ID=53416315

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/081797 WO2016155124A1 (en) 2015-03-30 2015-06-18 Method and device for removing singular point noise

Country Status (2)

Country Link
CN (1) CN104717401B (en)
WO (1) WO2016155124A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717401B (en) * 2015-03-30 2017-12-29 北京三好互动教育科技有限公司 A kind of method and device for removing singular point noise
CN108174057B (en) * 2018-01-10 2020-06-23 武汉烛照科技有限公司 Method and device for rapidly reducing noise of picture by utilizing video image inter-frame difference
CN114005185B (en) * 2021-10-12 2023-07-21 红石阳光(北京)科技股份有限公司 Intelligent park management system based on Internet of things

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101356799A (en) * 2005-12-14 2009-01-28 美光科技公司 Method and apparatus for image noise reduction
US8416323B2 (en) * 2005-05-19 2013-04-09 Mstar Semiconductor Inc. Noise reduction method and noise reduction apparatus
CN103929570A (en) * 2013-01-16 2014-07-16 富士通株式会社 Image processing method and system
CN104717401A (en) * 2015-03-30 2015-06-17 北京三好互动教育科技有限公司 Method and device for removing singular point noise

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122998B (en) * 2007-09-28 2010-06-23 宝利微电子系统控股公司 Image interpolation method and device based on direction detection
JP2009188963A (en) * 2008-02-09 2009-08-20 Fujitsu Microelectronics Ltd Image processing circuit, image processing method, and camera
CN102263965B (en) * 2010-05-31 2013-07-03 北京创毅视讯科技有限公司 Method and device for eliminating noises from analogue television signal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8416323B2 (en) * 2005-05-19 2013-04-09 Mstar Semiconductor Inc. Noise reduction method and noise reduction apparatus
CN101356799A (en) * 2005-12-14 2009-01-28 美光科技公司 Method and apparatus for image noise reduction
CN103929570A (en) * 2013-01-16 2014-07-16 富士通株式会社 Image processing method and system
CN104717401A (en) * 2015-03-30 2015-06-17 北京三好互动教育科技有限公司 Method and device for removing singular point noise

Also Published As

Publication number Publication date
CN104717401B (en) 2017-12-29
CN104717401A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
JP2015211319A5 (en) Image processing apparatus, image processing method, and program
CN107909553B (en) Image processing method and device
WO2017024615A1 (en) Image enhancement method
WO2021114684A1 (en) Image processing method and apparatus, computing device, and storage medium
WO2016155125A1 (en) Image processing method and apparatus
WO2016155124A1 (en) Method and device for removing singular point noise
JP2006229925A (en) Dynamic image saturation enhancement apparatus
WO2021088639A1 (en) Image brightness processing method and apparatus, and image processing method and apparatus
JP4895839B2 (en) Image correction apparatus and method
US20070177038A1 (en) Image correction apparatus and method
US7885478B2 (en) Noise reduction method and noise reduction apparatus
CN105959727A (en) Video processing method and device
TWI719645B (en) Image processing circuit and associated image processing method
KR100915598B1 (en) Automatic white balance apparatus and method thereof
WO2016155123A1 (en) Method and device for removing blocking effect
TWI556643B (en) Image adjustment method
KR101143834B1 (en) Aparatus and metod for controlling auto white balance
CN109348202B (en) Image saturation adjusting method and device
CN109035174B (en) Apparatus and method for eliminating image noise
TWI633537B (en) Image optimization method
WO2014209025A1 (en) Method for correcting color using rgb data
KR20160025876A (en) Method and apparatus for intensificating contrast in image
EP2209298A1 (en) Method for adjusting white balance
JP2015142161A (en) Image processing apparatus and control method therefor
US9357193B2 (en) Method and apparatus for compensating for color imbalance in image data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15887091

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15887091

Country of ref document: EP

Kind code of ref document: A1