[go: up one dir, main page]

CN1331097C - A Method for Eliminating Spots in Digital Images - Google Patents

A Method for Eliminating Spots in Digital Images Download PDF

Info

Publication number
CN1331097C
CN1331097C CNB2003101038421A CN200310103842A CN1331097C CN 1331097 C CN1331097 C CN 1331097C CN B2003101038421 A CNB2003101038421 A CN B2003101038421A CN 200310103842 A CN200310103842 A CN 200310103842A CN 1331097 C CN1331097 C CN 1331097C
Authority
CN
China
Prior art keywords
spot
pixel
image
removing method
pixels
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNB2003101038421A
Other languages
Chinese (zh)
Other versions
CN1617169A (en
Inventor
王卓亚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Primax Electronics Ltd
Original Assignee
Primax Electronics Ltd
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 Primax Electronics Ltd filed Critical Primax Electronics Ltd
Priority to CNB2003101038421A priority Critical patent/CN1331097C/en
Publication of CN1617169A publication Critical patent/CN1617169A/en
Application granted granted Critical
Publication of CN1331097C publication Critical patent/CN1331097C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The invention discloses a speckle eliminating method of a digital image, which comprises the following steps: calculating a difference between the selected pixel and its neighboring pixels; marking the adjacent pixels of which the difference values are larger than the 1 st reference value as special points; calculating the number of the selected pixel special points; marking the selected pixels with the number of the special points larger than the 2 nd reference value as spot pixels; and filling the blob pixels. The invention can provide a method for accurately positioning and filling the speckle noise in the image, so that the image is clearer and the processing speed of the image is improved.

Description

A kind of spot removing method of digital picture
Technical field
The present invention relates to a kind of digital image processing method, especially relate to a kind of spot removing method of digital picture.
Background technology
Along with the continuous development of digital technology, digital picture has obtained application more and more widely, and digital picture also can obtain from number of ways.After obtaining digital picture, generally will just can adhere to specification or satisfactory through handling, therefore the digital picture that obtains being handled is important link again.
In the digital picture that obtains, through regular meeting some speckle noises appear, for example the noise that occurs in the digital camera.Described noise, briefly be the noise signal that produces in photo-process, being reflected in the image is exactly that some sneak into tiny spot of all kinds in the picture, shown in Fig. 1 a and Fig. 1 b, occur the such stain of similar spiced salt noise in the image, seriously influenced the sharpness of image.
Speckle noise removing method in the past roughly is divided into two kinds, and a kind of is the method for utilizing convolution, and another is the method that corrosion is expanded.The principle of utilizing the method for convolution to eliminate spot is to utilize the low-pass filter of spatial domain, can allow the stain of image fog, thin out, and this method not only can lose effective radio-frequency component, allow image thicken, and processing speed is slow.The method of corrosion expanding method by judging that whether selection area becomes clear than the neighboring area, find the serious rectangular area of spot, then corroding method is taked in this rectangular area, extract skeleton out, filter out the spot that region memory stays, again by the principle that expands original image also.When utilizing the speckle noise in the method removal of images of this after expansion of corrosion earlier, owing to be to adopt to judge selection area whether the method brighter than the neighboring area located, just might cause some isolated areas or isolated point to miss, because be not only that to have only the zone brighter than the neighboring area be spot, the zone darker than the neighboring area equally also may be spot.In addition after extracting skeleton out, in the filtration zone during residual stain, can not that handle in the zone of spot inevitably some, therefore some normal points can be disposed, make the normal point in the image be subjected to very big the influence.So, when how to improve the accuracy that the speckle noise in the digital picture is located, improve image processing velocity, become the emphasis of current digital image processing techniques developing direction.
Summary of the invention
Technical matters to be solved by this invention provides a kind of spot removing method of digital picture, and its fundamental purpose is to provide the method for speckle noise in a kind of accurate localization and the blank map picture, makes image more simultaneously, improves image processing velocity.
To achieve these goals, the invention provides a kind of spot removing method of color digital image, is the YCbCr form with image transitions at first; The selected pixel of calculating is adjacent the luminance difference between the pixel, then with the neighbor of this luminance difference greater than the 1st reference value, be labeled as particular point, calculate the number of this selected pixel particular point, this particular point number is labeled as spot pixels greater than the selected pixel of the 2nd reference value, fills this spot pixels at last.
The spot removing method of above-mentioned digital picture, its characteristics are that described neighbor is the on every side pixel of 8 directions adjacent with described selected pixel.
The spot removing method of above-mentioned digital picture, its characteristics are that the value of described the 1st reference value is 7.
The spot removing method of above-mentioned digital picture, its characteristics are that the value of described the 2nd reference value is 7.
The spot removing method of above-mentioned digital picture, its characteristics are that described selected pixel is all pixels in the image.
The spot removing method of above-mentioned digital picture, its characteristics are that the step of described this spot of filling is to fill with the neighbor pixel mean value of the upper and lower, left and right four direction of this spot.
The spot removing method of above-mentioned digital picture, its characteristics are, the step of described this spot of filling is for filling with all neighbor pixel mean values of eight directions of this spot.
The spot removing method of above-mentioned digital picture, its characteristics are that described method is applied to Windows operating system.
The spot removing method of above-mentioned digital picture, its characteristics are that described method is applied to the embedded operation platform.
Technique effect of the present invention, be to reach the purpose that wipes out a blot by filling spot pixels, fill spot with average brightness value on every side, not only the speed of Chu Liing is greatly improved, and the spot on the removal of images effectively, especially can be very effective to the such spot of similar spiced salt noise, and can not have any impact to normal point.Really accomplished to shoot the arrow at the target, the present invention handles at stain, has increased the degree of accuracy of handling.
The present invention is described in more detail below in conjunction with the drawings and specific embodiments.
Description of drawings
Fig. 1 a, Fig. 1 b are the digital picture synoptic diagram that contains speckle noise
Fig. 2 is the process flow diagram of the spot removing method of the mentioned digital picture of the present invention
Fig. 3 is the dot structure synoptic diagram of the spot removing method of the mentioned digital picture of the present invention
Embodiment
The inventive method both can be applicable to Windows operating system, also can be applied to the embedded operation platform.Digital picture of the present invention can obtain from number of ways, can be to utilize the digital picture storehouse to obtain, for example be stored on the CD-ROM CD and the Internet network on the digital picture storehouse, also can create digital picture with mapping software, image editing software all has certain drawing function at present, these softwares have stronger function and good graphical user interface mostly, or take in digital picture with digitizer, comprise digital camera and digital camera, and, for example convert analog image to Digital Image Data etc. with the image that digital switching facility is gathered.These methods can obtain digital picture, the digital picture of acquisition through regular meeting because historical remote or preserve that to be not good at and to have stain, the present invention be that stain among the former figure and unnecessary portions are removed, thereby strengthen the sharpness of image.
Fig. 2 is the overview flow chart of digital picture spot removing method of the present invention, and it is described as follows:
At first, execution in step 100, the selected pixel of calculating is adjacent the difference between the pixel, then according to step 200, with the neighbor of this difference greater than the 1st reference value, is labeled as particular point; Execution in step 300 is calculated the number of the particular point of this selected pixel; Also execution in step 400, and this particular point number is labeled as spot pixels greater than the selected pixel of the 2nd reference value; At last, according to step 500, fill spot pixels.
Be example with the spot of eliminating in the color digital image below, the present invention is described in detail.
Eliminate color digital image and at first image will be converted to the YCbCr form by rgb format.It is the most general a kind of conversion that image is converted to the YCbCr form by rgb format, only need know the coefficient from a kind of form map to another kind of form, just can finish data-switching by following computing formula:
Y =0.299R+0.587G+0.114B
Cb=-0.1687R-0.3313G+0.5B+128
Cr=0.5R-0.4187G-0.0813B+128
Spot in the image is handled, and primary also is exactly spot being positioned of most critical.It is exactly mark spotting out pixel in image that spot is positioned.Under the YCbCr form, all corresponding unique Y value of each pixel in the image, the Y value has been represented the brightness of pixel.
Fig. 3 is the pixel synoptic diagram of digital picture spot removing method of the present invention.As shown in the figure, current selected pixel be Y (i, j), its eight direction neighbors are respectively Y (i-1, j-1), and Y (i-1, j), Y (i-1, j+1), Y (i, j+1), and Y (i+1, j+1), Y (i+1, j), Y (i+1, j-1) Y (i, j-1), it is as shown in the table that selected pixel is adjacent locations of pixels relation:
Y(i-1,j-1) Y(i-1,j) Y(i-1,j+1)
Y(i,j-1) Y(i,j) Y(i,j+1)
Y(i+1,j-1) Y(i+1,j) Y(i+1,j+1)
Spot is positioned, need to select pixel and be adjacent pixel and compare, execution in step 100 is promptly calculated selected pixel and is adjacent difference between the pixel.Specific practice is the Y value with selected pixel, carries out subtraction successively with eight neighbors around it, will be scheduled to a counter execution in step 300 simultaneously, calculates the number of particular point.Counter is set at first, and execution in step 200 afterwards, if the absolute value of the difference that obtains greater than the 1st reference value, then this neighbor pixel is a particular point, counter adds 1.This enforcement first reference value is 7.After eight neighbors are all finished subtraction, read the value of current counter, and execution in step 400, if Counter Value surpasses the 2nd reference value, should selected pixel be spot pixels then.The value of present embodiment the 2nd reference value is 7, that is to say if current selected pixel Y (i, in eight neighbors j), if the number of particular point greater than 7, then current selected pixel is exactly the spot pixel.
Then with the next pixel of image as selected pixel, repeat above-mentioned steps and handle, the processing of all pixels in finishing image, finally can with the institute's spottiness pixel in the image all mark come out.
After determining the spot pixel, next be exactly step 500, the spot pixel is filled, the method that spot is filled is a lot, and velocity ratio method faster is, fills with the mean value of the neighbor pixel of the upper and lower, left and right four direction of spot pixel, if (i j) is spot pixels to pixel Y, then calculation level Y (i-1, j), and Y (i, j+1), Y (i+1, j) and Y (i, mean value j-1), with this mean value with this spot pixel filling.Equally also can fill, to increase the degree of accuracy of Flame Image Process with the mean value of eight pixels on every side.
Foregoing; it only is most preferred embodiment of the present invention; and non-limiting protection scope of the present invention, those of ordinary skills' inventive concept main according to the present invention all can be carried out corresponding modification and conversion, so scope of patent protection of the present invention is as the criterion with the desired protection domain of claims.

Claims (8)

1, a kind of color digital image spot removing method comprises the steps:
With image transitions is the YCbCr form;
The selected pixel of calculating is adjacent the luminance difference between the pixel, and wherein, described selected pixel is all pixels in the image;
With the neighbor of described luminance difference, be labeled as particular point greater than the 1st reference value;
Calculate the number of described selected pixel particular point;
Described particular point number is labeled as spot pixels greater than the selected pixel of the 2nd reference value; And
Fill described spot pixels.
2, color digital image spot removing method according to claim 1 is characterized in that, described neighbor is the on every side pixel of 8 directions adjacent with described selected pixel.
3, color digital image spot removing method according to claim 1 is characterized in that, the value of described the 1st reference value is 7.
4, color digital image spot removing method according to claim 1 is characterized in that, the value of described the 2nd reference value is 7.
5, color digital image spot removing method according to claim 1 is characterized in that, the step of described this spot of filling is to fill with the neighbor pixel mean value of the upper and lower, left and right four direction of described spot.
6, color digital image spot removing method according to claim 1 is characterized in that, the step of described this spot of filling is for filling with all neighbor pixel mean values of eight directions of described spot.
7, color digital image spot removing method according to claim 1 is characterized in that described method is applied to Windows operating system.
8, color digital image spot removing method according to claim 1 is characterized in that described method is applied to embedded platform.
CNB2003101038421A 2003-11-12 2003-11-12 A Method for Eliminating Spots in Digital Images Expired - Fee Related CN1331097C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2003101038421A CN1331097C (en) 2003-11-12 2003-11-12 A Method for Eliminating Spots in Digital Images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2003101038421A CN1331097C (en) 2003-11-12 2003-11-12 A Method for Eliminating Spots in Digital Images

Publications (2)

Publication Number Publication Date
CN1617169A CN1617169A (en) 2005-05-18
CN1331097C true CN1331097C (en) 2007-08-08

Family

ID=34756813

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101038421A Expired - Fee Related CN1331097C (en) 2003-11-12 2003-11-12 A Method for Eliminating Spots in Digital Images

Country Status (1)

Country Link
CN (1) CN1331097C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100386778C (en) * 2006-06-15 2008-05-07 西安交通大学 Face Image Age Transformation Method Based on Average Face and Aging Scale Map
CN101360187B (en) * 2007-08-03 2010-06-02 鸿富锦精密工业(深圳)有限公司 Image processing method and image processing device
CN101370081B (en) * 2007-08-15 2010-08-25 鸿富锦精密工业(深圳)有限公司 Image processing method and apparatus thereof
KR101323015B1 (en) * 2008-10-20 2013-10-29 엘지디스플레이 주식회사 Touch sensing deving and method for correcting output thereof
CN102184525B (en) * 2011-04-19 2013-02-13 华中科技大学 Noise space characteristic based nonlinear filter denoising method
US11266331B2 (en) 2016-05-16 2022-03-08 Sony Corporation Optical apparatus and information processing method
CN109151425B (en) * 2018-09-10 2020-11-10 海信视像科技股份有限公司 Color spot removing method and device and display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09179962A (en) * 1995-12-22 1997-07-11 Matsushita Electric Ind Co Ltd Image processing device
CN1278686A (en) * 1999-06-17 2001-01-03 松下电器产业株式会社 Video-frequency signal noise reducing apparatus and method thereof, and recording medium for programme of said method
CN1393827A (en) * 2001-06-26 2003-01-29 中国科学院遥感应用研究所 Method for using computer to recreate image containing spot noise
US6529238B1 (en) * 1997-09-05 2003-03-04 Texas Instruments Incorporated Method and apparatus for compensation of point noise in CMOS imagers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09179962A (en) * 1995-12-22 1997-07-11 Matsushita Electric Ind Co Ltd Image processing device
US6529238B1 (en) * 1997-09-05 2003-03-04 Texas Instruments Incorporated Method and apparatus for compensation of point noise in CMOS imagers
CN1278686A (en) * 1999-06-17 2001-01-03 松下电器产业株式会社 Video-frequency signal noise reducing apparatus and method thereof, and recording medium for programme of said method
CN1393827A (en) * 2001-06-26 2003-01-29 中国科学院遥感应用研究所 Method for using computer to recreate image containing spot noise

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
一种基于极值中值的新型滤波算法 邢藏菊,王守觉,邓浩江,等,中国图象图形学报,第6(A版)卷第6期 2001 *
一种简单的椒盐噪声滤波算法 董继扬,张军英,计算机工程与应用,第20期 2003 *
全方向自适应动态窗口SAR斑点噪声抑制算法 谭衢霖,邵芸,范湘涛,等,遥感学报,第6卷第6期 2002 *
基于YCbCr彩色空间的彩色图象水印新方法 郁梅,蒋刚毅,陈燕华,等,计算机应用研究,第6期 2001 *
基于YCbCr彩色空间的彩色图象水印新方法 郁梅,蒋刚毅,陈燕华,等,计算机应用研究,第6期 2001;全方向自适应动态窗口SAR斑点噪声抑制算法 谭衢霖,邵芸,范湘涛,等,遥感学报,第6卷第6期 2002;一种基于极值中值的新型滤波算法 邢藏菊,王守觉,邓浩江,等,中国图象图形学报,第6(A版)卷第6期 2001;一种简单的椒盐噪声滤波算法 董继扬,张军英,计算机工程与应用,第20期 2003 *

Also Published As

Publication number Publication date
CN1617169A (en) 2005-05-18

Similar Documents

Publication Publication Date Title
CN113592861B (en) Bridge crack detection method based on dynamic threshold
CN109035276B (en) Image edge extraction method and device and automatic driving system
CN109191459B (en) Automatic identification and rating method for continuous casting billet macrostructure center segregation defect
CN102750538B (en) A kind of weiqi game interpretation of result method based on image processing techniques
CN115082377B (en) A method and system for measuring geometric parameters of building surface cracks based on drones
US7149355B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable record medium storing image processing program
JP2003116060A (en) Defective pixel correction device
CN113362238B (en) Test image processing method, device, electronic equipment and storage medium
JP5534411B2 (en) Image processing device
CN1331097C (en) A Method for Eliminating Spots in Digital Images
CN109509181B (en) A visual detection method of cladding pool shape based on serial contour search
WO2017113422A1 (en) Image speckle processing method
JP2014513793A (en) Analysis of digital images of tire surfaces and processing of unmeasured points
CN114283383B (en) Smart city highway maintenance method, computer equipment and medium
CN114943659A (en) Map area segmentation method and related device
JP2004265264A (en) Image processing device
JP2000048211A (en) Moving object tracking device
CN113435266A (en) FCOS intelligent target detection method based on extreme point feature enhancement
JP3330829B2 (en) Automatic detection method of evaluable area in images of machine parts
CN114187363A (en) A method, device and mobile terminal for obtaining radial distortion parameter value
CN117218148B (en) Channel boundary determining method and system based on satellite image and readable storage medium
CN118153607A (en) One-dimensional code positioning method based on machine vision
CN116681757B (en) A star point extraction method adapting to stray light interference
CN116977566A (en) Three-dimensional reconstruction method for deep learning monocular vision ground dynamic target
CN112562004A (en) Image mapping parameter generation method, device and computer readable medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: ZHISHEN SCIENCE & TECHNOLOGY CO. LTD.

Free format text: FORMER OWNER: DEXIN SCIENCE + TECHNOLOGY CO., LTD.

Effective date: 20061027

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20061027

Address after: Taiwan City, Taipei

Applicant after: Zhishen Science and Technology Co., Ltd.

Address before: Taipei city of Taiwan Province

Applicant before: Destiny Technology Corporation

C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070808

Termination date: 20131112