CN103150710A - Rapid mean filtering method for image - Google Patents

Rapid mean filtering method for image Download PDF

Info

Publication number
CN103150710A
CN103150710A CN2013100965429A CN201310096542A CN103150710A CN 103150710 A CN103150710 A CN 103150710A CN 2013100965429 A CN2013100965429 A CN 2013100965429A CN 201310096542 A CN201310096542 A CN 201310096542A CN 103150710 A CN103150710 A CN 103150710A
Authority
CN
China
Prior art keywords
pixel
row
mean value
image
neighboring
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.)
Pending
Application number
CN2013100965429A
Other languages
Chinese (zh)
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.)
Zhengzhou University of Light Industry
Original Assignee
Zhengzhou University of Light Industry
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 Zhengzhou University of Light Industry filed Critical Zhengzhou University of Light Industry
Priority to CN2013100965429A priority Critical patent/CN103150710A/en
Publication of CN103150710A publication Critical patent/CN103150710A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The invention relates to a rapid mean filtering method for an image. At first, neighboring mean values of pixels f(2n, 2n) are calculated; next, the neighboring mean values of other pixels in a row or a column are obtained through the utilization of an intermediate result of the neighboring mean values of the pixels f(2n, 2n), so that the purpose of saving calculation time is achieved; and moreover, the sizes of neighboring windows are irrelevant. The experiment result shows that the rapid mean filtering method for the image is high in speed and high in robustness, and enables the complexity of mean value calculation to be effectively decreased, thereby having great values and significances in realizing rapid mean value filtering during the image processing.

Description

A kind of Quick and equal filtering method for image
Technical field
The invention belongs to image processing field, be specifically related to rapid image mean filter method.
Background technology
In the acquisition process of image, be subjected to the impact of factors, can cause the degeneration of picture quality.Simultaneously, in the transmitting procedure of image, also can produce some noises.The purpose of figure image intensifying is exactly to take a series of technology to improve the visual effect of image, and mean filter is a kind of image enhancement technique of directly carrying out on the image space territory, is a kind of basic skills of eliminating noise in the level and smooth preconditioning technique of image filtering.Be a kind of Image Denoising Technology commonly used in image is processed, but computation complexity is high, affects system real time.
Summary of the invention
The technical problem to be solved in the present invention reduces the computation complexity of mean filter, and a kind of Quick and equal filtering method for image is provided.
Technical scheme of the present invention is: a kind of Quick and equal filtering method for image, analyze the computation process of current pixel and neighbor average, take full advantage of the results of intermediate calculations of current pixel, draw the mutual relationship of mean value computation, eliminate redundant computation, its step is as follows:
(1) impose a condition: suppose that the filter window size is (2n+1) * (2n+1), obtains the pixel data of image in computing machine;
(2) calculating f(2n, 2n) neighboring mean value N(2n, the 2n of pixel), wherein N( x,y) expression with ( x,y) centered by size be
Figure 469063DEST_PATH_IMAGE001
The set of neighborhood window pixel;
(3) neighborhood of pixels of calculated level direction, with ( x,y) neighbor ( x+1 , y) neighboring mean value
Figure 260302DEST_PATH_IMAGE002
Be expressed as:
Figure 339116DEST_PATH_IMAGE003
Wherein Col( X-n, y)----------expression with ( x,y) centered by the 1st row row pixel of neighborhood window, Col(( X+1)+n, y)---the expression with ( X+1, y) centered by the 2n+1 row row pixel of neighborhood window,
Figure 899411DEST_PATH_IMAGE004
----------neighboring mean value;
(4) calculate the neighborhood of pixels average of vertical direction, along x column count neighboring mean value the time, With
Figure 684013DEST_PATH_IMAGE006
In comprised the part of double counting, keep away redundant computation by following strategy:
Figure 566518DEST_PATH_IMAGE007
Wherein Row( X, y-n)--------expression with ( x,y) centered by the 1st row pixel of neighborhood window, Row( X, (y+1)+n)--the expression with ( X, y+1) centered by the capable pixel of 2n+1 of neighborhood window;
(5) according to f(2n, 2n) neighboring mean value, analyze the double counting part, by the neighboring mean value of each pixel of pixel calculated level direction.
As long as calculate the neighboring mean value of a pixel of the first row first row, the neighboring mean value that remains other each pixel only relates to the simple computation of the two individual pixels of row 2 (2n+1) like this, originally needs to calculate (2n+1) 2Thereby the inferior purpose that reaches the algorithm acceleration.
The invention has the beneficial effects as follows: the present invention has adopted respectively common mean filter method and the fast method in literary composition to compare, and result of the present invention shows, the method in literary composition is not adapted the effect of filtering, but the travelling speed of algorithm improves greatly.As shown in table 1, concerning 3 * 3 neighborhood windows, commonsense method 63ms, and method 49ms in literary composition, travelling speed has improved 22.22%, and when adopting 7 * 7 window, speed has improved 69.5%, and the field window is larger, and the time of saving is more.
Description of drawings
Fig. 1 is source images of the present invention;
Fig. 2 is the image that the present invention has added salt-pepper noise;
Fig. 3 is the result after employing 3 * 3 mean filters of the embodiment of the present invention 2;
Fig. 4 is the result after employing 7 * 7 mean filters of the embodiment of the present invention 3.
Embodiment
Embodiment 1
A kind of Quick and equal filtering method for image, its step is as follows:
(1) impose a condition: suppose that the filter window size is (2n+1) * (2n+1), obtains the pixel data of image in computing machine;
(2) calculating f(2n, 2n) neighboring mean value N(2n, the 2n of pixel), wherein N( x,y) expression with ( x,y) centered by size be The set of neighborhood window pixel;
(3) neighborhood of pixels of calculated level direction, with ( x,y) neighbor ( x+1 , y) neighboring mean value
Figure 926797DEST_PATH_IMAGE002
Be expressed as:
Figure 427049DEST_PATH_IMAGE003
Wherein Col( X-n, y) expression with ( x,y) centered by the 1st row row pixel of neighborhood window, Col(( X+1)+n, y)---the expression with ( X+1, y) centered by the 2n+1 row row pixel of neighborhood window,
Figure 972299DEST_PATH_IMAGE004
----------neighboring mean value;
(4) calculate the neighborhood of pixels average of vertical direction, along x column count neighboring mean value the time,
Figure 444869DEST_PATH_IMAGE005
With
Figure 620635DEST_PATH_IMAGE006
In comprised the part of double counting, keep away redundant computation by following strategy:
Figure 545866DEST_PATH_IMAGE007
Wherein Row( X, y-n) expression with ( x,y) centered by the 1st row pixel of neighborhood window, Row( X, (y+1)+n) expression with ( X, y+1) centered by the capable pixel of 2n+1 of neighborhood window;
(5) according to f(2n, 2n) neighboring mean value, analyze the double counting part, by the neighboring mean value of each pixel of pixel calculated level direction.
Embodiment 2
A kind of Quick and equal filtering method for image, its step is as follows:
(1) the input size is the lena image of 256 * 256 sizes;
(2) setting the neighborhood window size is 3 * 3;
(3) image is added salt-pepper noise;
(4) calculate f(2,2) neighboring mean value of pixel
(5) according to f(2, the 2) neighboring mean value of pixel calculates the neighboring mean value of each pixel of horizontal direction of the 2nd row;
(6) according to f(2, the 2) neighboring mean value of pixel calculates the neighboring mean value of each pixel of vertical direction of the 2nd row.
Experimental data is as shown in table 1.
Table 1 experimental data
Figure 832491DEST_PATH_IMAGE008
Embodiment 3
A kind of Quick and equal filtering method for image, its step is as follows: setting the neighborhood window size is 7 * 7, method and step only need the mean value computation window size is changed to 7 * 7 with embodiment 2.

Claims (1)

1. a Quick and equal filtering method that is used for image, is characterized in that, its step is as follows:
(1) impose a condition: suppose that the filter window size is (2n+1) * (2n+1), obtains the pixel data of image in computing machine;
(2) calculating f(2n, 2n) neighboring mean value N(2n, the 2n of pixel), wherein N( x,y) expression with ( x,y) centered by size be
Figure 2013100965429100001DEST_PATH_IMAGE002
The set of neighborhood window pixel;
(3) neighborhood of pixels of calculated level direction, with ( x,y) neighbor ( x+1 , y) neighboring mean value Be expressed as:
Wherein Col( X-n, y) expression with ( x,y) centered by the 1st row row pixel of neighborhood window, Col(( X+1)+n, y)---the expression with ( X+1, y) centered by the 2n+1 row row pixel of neighborhood window,
Figure 2013100965429100001DEST_PATH_IMAGE008
----------neighboring mean value;
(4) calculate the neighborhood of pixels average of vertical direction, along x column count neighboring mean value the time, With
Figure 2013100965429100001DEST_PATH_IMAGE012
In comprised the part of double counting, keep away redundant computation by following strategy:
Figure 2013100965429100001DEST_PATH_IMAGE014
Wherein Row( X, y-n) expression with ( x,y) centered by the 1st row pixel of neighborhood window, Row( X, (y+1)+n) expression with ( X, y+1) centered by the capable pixel of 2n+1 of neighborhood window;
(5) according to f(2n, 2n) neighboring mean value, analyze the double counting part, by the neighboring mean value of each pixel of pixel calculated level direction.
CN2013100965429A 2013-03-25 2013-03-25 Rapid mean filtering method for image Pending CN103150710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100965429A CN103150710A (en) 2013-03-25 2013-03-25 Rapid mean filtering method for image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100965429A CN103150710A (en) 2013-03-25 2013-03-25 Rapid mean filtering method for image

Publications (1)

Publication Number Publication Date
CN103150710A true CN103150710A (en) 2013-06-12

Family

ID=48548764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100965429A Pending CN103150710A (en) 2013-03-25 2013-03-25 Rapid mean filtering method for image

Country Status (1)

Country Link
CN (1) CN103150710A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335987A (en) * 2014-06-09 2016-02-17 联想(北京)有限公司 Image data processing method and apparatus
CN105957039A (en) * 2016-05-11 2016-09-21 深圳市和天创科技有限公司 Image color enhancement method and rapid and simplified calculating method thereof
CN111901500A (en) * 2020-07-09 2020-11-06 浙江大华技术股份有限公司 Image processing method and apparatus, storage medium, and electronic apparatus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556503A (en) * 2004-01-09 2004-12-22 清华大学 Fast morphology corrusion expansion method in image treatment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556503A (en) * 2004-01-09 2004-12-22 清华大学 Fast morphology corrusion expansion method in image treatment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
何石等: "《一种均值滤波的优化算法》", 《信息技术》, no. 3, 31 March 2012 (2012-03-31), pages 133 - 137 *
王科俊等: "《高效均值滤波算法》", 《计算机应用研究》, vol. 27, no. 2, 28 February 2010 (2010-02-28) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335987A (en) * 2014-06-09 2016-02-17 联想(北京)有限公司 Image data processing method and apparatus
CN105335987B (en) * 2014-06-09 2018-03-27 联想(北京)有限公司 Image processing method and device
CN105957039A (en) * 2016-05-11 2016-09-21 深圳市和天创科技有限公司 Image color enhancement method and rapid and simplified calculating method thereof
CN105957039B (en) * 2016-05-11 2019-06-28 深圳市和天创科技有限公司 A kind of image color Enhancement Method and its quick simplified calculation method
CN111901500A (en) * 2020-07-09 2020-11-06 浙江大华技术股份有限公司 Image processing method and apparatus, storage medium, and electronic apparatus

Similar Documents

Publication Publication Date Title
CN102831591B (en) Gaussian filter-based real-time defogging method for single image
JP2009147922A5 (en) Image processing method, display device, and computer program
CN101316321B (en) Pattern noise removal method and device based on median filter
NZ612089A (en) Deblocking filtering
JP2009239903A5 (en) IMAGE PROCESSING METHOD, DISPLAY DEVICE, AND COMPUTER PROGRAM
MX352108B (en) Image processing device and image processing method.
CN105046658A (en) Low-illumination image processing method and device
EP2664149A4 (en) Deblocking filtering
CN104268899A (en) Moving object detection method based on frame difference and background difference
JP2015144435A5 (en)
CN104200427A (en) Method for eliminating edge sawteeth of images
WO2013086530A3 (en) Method and apparatus for processing partial video frame data
CN105243399A (en) Method of realizing image convolution and device, and method of realizing caching and device
EP3203439A3 (en) Method and device for reducing noise in a component of a picture
CN103150710A (en) Rapid mean filtering method for image
CN105303536A (en) Median filtering algorithm based on weighted mean filtering
CN102663706A (en) Adaptive weighted mean value filtering method based on diamond template
CN102222319B (en) A kind of image processing method and device
CN103514588B (en) Image enchancing method and system
CN103745446B (en) Image guiding filtering method and system
CN103905692A (en) Simple 3D noise reduction algorithm base on motion detection
CN105046660B (en) A kind of method and device of U.S. face image
CN103714523A (en) Image sharpening system and image sharpening method on basis of Kirsch operators
CN105654431A (en) Deblurring method for image with presence of shielding
CN104657969B (en) A kind of image shading minimizing technology and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130612