CN101763631B - Image shrinking method based on weighted sum - Google Patents

Image shrinking method based on weighted sum Download PDF

Info

Publication number
CN101763631B
CN101763631B CN 200810239420 CN200810239420A CN101763631B CN 101763631 B CN101763631 B CN 101763631B CN 200810239420 CN200810239420 CN 200810239420 CN 200810239420 A CN200810239420 A CN 200810239420A CN 101763631 B CN101763631 B CN 101763631B
Authority
CN
China
Prior art keywords
image
width
pixel
shrinking
weighted sum
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
CN 200810239420
Other languages
Chinese (zh)
Other versions
CN101763631A (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.)
Beijing culture science and technology finance leasing Limited by Share Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN 200810239420 priority Critical patent/CN101763631B/en
Publication of CN101763631A publication Critical patent/CN101763631A/en
Application granted granted Critical
Publication of CN101763631B publication Critical patent/CN101763631B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention belongs to video and image processing techniques, and particularly relates to an image shrinking method based on weighted sum. The method realizes shrinking of gray scale images by a method of calculating the weighted sum value of the grey scale values of all pixel points in an adjacent region of each pixel point as the output result; in the process that the width value of the shrinking of the grey scale image changes, the shrinking effect of the grey scale image after processing becomes very smooth; and in the shrinking process, the shrinking of each point is trend shrinking with a circular boundary and can not generate a stiff square-shaped boundary.

Description

A kind of image shrinking method based on weighted sum
Technical field
The invention belongs to video and image processing techniques, be specifically related to a kind of image shrinking method based on weighted sum.
Background technology
In the special effect processing of high-quality video and image, need to expand or shrink gray level image.Traditional gray level image contraction method all is based in the neighborhood of each pixel (normally a rectangular area in) and finds out the contraction that minimum gradation value realizes gray level image.This method is easily understood, but effect is not fully up to expectations.At first, can cause shrinking the effect that the square border occurs in rectangular area search minimum value; In addition, it is a pixel that the minimum in the process that the region of search increases of this method increases unit, and this is just so that the effect that image shrinks is more stiff in the process that the region of search changes.
Some gray level image contraction method can allow template of user selection, this template can allow region of search of user oneself definition.Although this method has solved the problem of above-mentioned square boundary effect, can't resolve the problem that image effect becomes stiff in the process that the region of search changes.
Summary of the invention
The object of the invention is to the defective for prior art, a kind of image shrinking method based on weighted sum is provided, make the image effect after the contraction more level and smooth, do not produce stiff square boundary effect.
Technical scheme of the present invention is as follows: a kind of image shrinking method based on weighted sum comprises the steps:
(1) the width value width of selected gray level image contraction;
(2) gray-scale value of each pixel of current gray level image being carried out negate processes;
(3) determine a square area scope and weight coefficient w that should the zone according to the width value width that shrinks;
(4) for each pixel in the image after the negate processing, centered by this pixel, the sum product of all pixel gray-scale values and weight coefficient w in the determined square area scope of calculation procedure (3);
(5) result of calculation is carried out amplitude limiting processing;
(6) gray-scale value of each pixel of the image after the amplitude limiting processing is carried out negate again and process, namely get the pixel gray-scale value of target image.
Further, aforesaid image shrinking method based on weighted sum, wherein, the length of side L=ceil(width of the square area described in the step (3)) * 2+1.
Further, aforesaid image shrinking method based on weighted sum is in the step (3), if the pixel in the square area scope is r to the distance of central point, during the width value width that shrinks when image 〉=3, if r≤(width-3), then weight coefficient w=1; If r>(width-3), then weight coefficient w = e - ( r - width + 3 ) 2 / 2 .
Further, aforesaid image shrinking method based on weighted sum, in the step (3), the pixel of establishing in the square area scope is r to the distance of central point, when the width value width of image contraction<3, weight coefficient
Figure GDA00002303136800022
Wherein, σ=(1-t) * and 0.4+t, t=width/3.
Beneficial effect of the present invention is as follows: the present invention does not adopt this traditional approach of looking for minimum gradation value in a neighborhood of each pixel, but realize the contraction of gray level image as the method for Output rusults by the value of all the pixel gray-scale value weighted sums in the neighborhood that calculates each pixel, in the process that the width value width that gray level image shrinks changes, it is very level and smooth that the contractive effect of the gray level image after the processing becomes, and, each point is to shrink with the trend of circular boundary in the process of shrinking, and does not have very stiff square shape border and occurs.
Description of drawings
Fig. 1 is method flow diagram of the present invention;
Fig. 2 is gray level image contractive effect figure of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is described in detail.
Image shrinking method flow process based on weighted sum provided by the present invention comprises the steps: as shown in Figure 1
(1) the width value width of selected gray level image contraction;
(2) gray-scale value of each pixel of current gray level image being carried out negate processes;
(3) determine a square area scope and weight coefficient w that should the zone according to the width value width that shrinks;
(4) for each pixel in the image after the negate processing, centered by this pixel, the sum product of all pixel gray-scale values and weight coefficient w in the determined square area scope of calculation procedure (3);
(5) result of calculation is carried out amplitude limiting processing; For the 8bit gray level image, generally will be above 255 value amplitude limit to 255;
(6) gray-scale value of each pixel of the image after the amplitude limiting processing is carried out negate again and process, namely get the pixel gray-scale value of target image.
The present invention at first will carry out negate and process to the gray-scale value of each pixel of current gray level image, for a selected contracted width width, width is a floating number, unit is pixel, when determining the foursquare regional length of side, need to the width processing that rounds up, obtain the length of side L=ceil(width of the square area described in the step (3) according to following formula) * 2+1, so just be equivalent to have the zone of a L * L size.
When determining the weight coefficient of above-mentioned square area, the pixel of establishing in the square area scope is r to the distance of central point, selects calculating according to the size of width value.
During the width value width that 1) shrinks when image 〉=3,
If r≤(width-3), then weight coefficient w=1;
If r>(width-3), then weight coefficient
Figure GDA00002303136800031
During the width value width that 2) shrinks when image<3, note t=width/3,
Note σ=(1-t) * 0.4+t
Weight coefficient w = e - r 2 / ( 2 · σ 2 ) .
For instance: work as width=1.5, weighting coefficient matrix is as follows:
0.00028 0.00608 0.01688 0.00608 0.00028 0.00608 0.12992 0.36045 0.12992 0.00608 0.01688 0.36045 1.00000 0.36045 0.01688 0.00628 0.12992 0.36045 0.12992 0.00608 0.00028 0.00608 0.01688 0.00608 0.00028
By finding the solution the sum product of interior all the pixel gray-scale values of square area range L * L and corresponding weight coefficient w, result of calculation is carried out amplitude limiting processing, then the gray-scale value of each pixel of the image after the amplitude limiting processing is carried out negate again and process, namely get the pixel gray-scale value of target image.
The contractive effect figure that has represented several width values among Fig. 2, wherein (a) is original-gray image, (b) is image after the contraction of width=0.5, (c) is image after the contraction of width=2.5, (d) is image after the contraction of width=5.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to equally technological innovation scope of the present invention.

Claims (4)

1. the image shrinking method based on weighted sum comprises the steps:
(1) the width value width of selected gray level image contraction;
(2) gray-scale value of each pixel of current gray level image being carried out negate processes;
(3) determine a square area scope and weight coefficient w that should the zone according to the width value width that shrinks;
(4) for each pixel in the image after the negate processing, centered by this pixel, the sum product of all pixel gray-scale values and weight coefficient w in the determined square area scope of calculation procedure (3);
(5) result of calculation is carried out amplitude limiting processing;
(6) gray-scale value of each pixel of the image after the amplitude limiting processing is carried out negate again and process, namely get the pixel gray-scale value of target image.
2. the image shrinking method based on weighted sum as claimed in claim 1 is characterized in that: the length of side L=ceil(width of the square area described in the step (3)) * and 2+1.
3. the image shrinking method based on weighted sum as claimed in claim 1 or 2, it is characterized in that: in the step (3), the pixel of establishing in the square area scope is r to the distance of central point, when the width value width of image contraction 〉=3, if r≤(width-3), then weight coefficient w=1; If r>(width-3), then weight coefficient w = e - ( r - width + 3 ) 2 / 2 .
4. the image shrinking method based on weighted sum as claimed in claim 1 or 2 is characterized in that: in the step (3), the pixel of establishing in the square area scope is r to the distance of central point, when the width value width of image contraction<3, and weight coefficient
Figure FDA00002303136700012
Wherein, σ=(1-t) * and 0.4+t, t=width/3.
CN 200810239420 2008-12-09 2008-12-09 Image shrinking method based on weighted sum Expired - Fee Related CN101763631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810239420 CN101763631B (en) 2008-12-09 2008-12-09 Image shrinking method based on weighted sum

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810239420 CN101763631B (en) 2008-12-09 2008-12-09 Image shrinking method based on weighted sum

Publications (2)

Publication Number Publication Date
CN101763631A CN101763631A (en) 2010-06-30
CN101763631B true CN101763631B (en) 2013-05-01

Family

ID=42494786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810239420 Expired - Fee Related CN101763631B (en) 2008-12-09 2008-12-09 Image shrinking method based on weighted sum

Country Status (1)

Country Link
CN (1) CN101763631B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102407624B1 (en) * 2015-10-06 2022-06-10 삼성전자주식회사 Method for processing image of electronic device and electronic device thereof

Also Published As

Publication number Publication date
CN101763631A (en) 2010-06-30

Similar Documents

Publication Publication Date Title
CN109583425B (en) Remote sensing image ship integrated recognition method based on deep learning
CN110211097B (en) Crack image detection method based on fast R-CNN parameter migration
CN109741356B (en) Sub-pixel edge detection method and system
CN104517110B (en) The binarization method and system of a kind of image in 2 D code
CN102682446B (en) Adaptive combined two-sided filter is used to generate equipment and the method for dense depth map
CN106204415A (en) A kind of novel method for registering images
CN104463870A (en) Image salient region detection method
CN102034224B (en) Pseudo-Zernike moment-based image denoising algorithm
CN103413303A (en) Infrared target segmentation method based on joint obviousness
CN101986134A (en) Automatic detection method of static contact angle
CN104036479A (en) Multi-focus image fusion method based on non-negative matrix factorization
CN103593834A (en) Image enhancement method achieved by intelligently increasing field depth
CN103218833B (en) The color space the most steady extremal region detection method of Edge Enhancement type
CN103226824B (en) Maintain the video Redirectional system of vision significance
CN103927727A (en) Method for converting scalar image into vector image
CN105335952B (en) Matching power flow computational methods and device and parallax value calculating method and equipment
CN104134198A (en) Method for carrying out local processing on image
CN107767349A (en) A kind of method of Image Warping enhancing
CN103295010A (en) Illumination normalization method for processing face images
CN103955906A (en) Criminisi image restoration method based on bat algorithm
CN103761736B (en) A kind of image partition method based on Bayes's harmony degree
CN103903227B (en) Method and device for noise reduction of image
CN103035185A (en) Method for brightness correction of defective pixels of digital monochrome image
CN115272859A (en) Multi-scale SAR image target detection method, device, equipment and medium
CN101937562A (en) Construction method for gray-level information content histogram

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING CULTURAL AND SCIENTIFIC FINANCING LEASE CO

Free format text: FORMER OWNER: XIN'AOTE(BEIJING) VIDEO TECHNOLOGY CO., LTD.

Effective date: 20150414

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100080 HAIDIAN, BEIJING TO: 100044 SHUNYI, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20150414

Address after: 100044, room 2, building 1, No. 401, Golden Sail Road, Beijing, Shunyi District

Patentee after: Beijing culture science and technology finance leasing Limited by Share Ltd

Address before: 100080 Beijing city Haidian District xicaochang No. 1 Beijing Silicon Valley computer city 15 1501-1506 room

Patentee before: China Digital Video (Beijing) Limited

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130501

Termination date: 20161209

CF01 Termination of patent right due to non-payment of annual fee