[go: up one dir, main page]

CN102752480A - Method for achieving sharpening special effects for image - Google Patents

Method for achieving sharpening special effects for image Download PDF

Info

Publication number
CN102752480A
CN102752480A CN2011103936895A CN201110393689A CN102752480A CN 102752480 A CN102752480 A CN 102752480A CN 2011103936895 A CN2011103936895 A CN 2011103936895A CN 201110393689 A CN201110393689 A CN 201110393689A CN 102752480 A CN102752480 A CN 102752480A
Authority
CN
China
Prior art keywords
sharpening
matrix
image
original image
zone
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
CN2011103936895A
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.)
China Digital Video Beijing 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 CN2011103936895A priority Critical patent/CN102752480A/en
Publication of CN102752480A publication Critical patent/CN102752480A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

An embodiment of the invention discloses a method for achieving sharpening special effects for an image. The method includes obtaining an original image; presetting a sharpening matrix of the original image, wherein the sharpening matrix comprises a horizontal sharpening matrix and a longitudinal sharpening matrix; receiving a sharpening grade of the sharpened original image; and sharpening the original image based on the sharpening matrix and the sharpening grade and obtaining a target image. According to the method, clear effects of an image are achieved through a special sharpening process on the image.

Description

A kind of method that realizes the image sharpening special effects
Technical field
The present invention relates to video and technical field of image processing, relate in particular to a kind of method that realizes the image sharpening special effects.
Background technology
A kind of colour coding method that the YUV color space is adopted by the eurovision system.Wherein Y representes lightness (Luminance or Luma), just GTG value; That U and V represent then is colourity (Chrominance or Chroma).Color TV adopts yuv space just in order to solve the compatibling problem of color television set and black and white television set with brightness signal Y, makes black and white television set also can receive colour TV signal.The characteristics of YUV color space are that brightness and chrominance separation are opened, thereby are suitable for image processing field.
Image is in transmission and transfer process; Quality all can reduce generally speaking, and except the factor that adds noise, what also can become is fuzzyyer; Cause the details and the profile of image unintelligible; Image sharpening is exactly details and the profile of strengthening in the image, strengthens the part of edge of image and Gray Level Jump, makes image become clear.
In realizing process of the present invention; The inventor finds that there is following technical problem in prior art: image carried out in the process of sharpening, sometimes can be not enough to the image sharpening degree, and cause DeGrain; The effect that can not get wanting; Sometimes can cause image section information dropout to the excessive sharpening of image, the sharpening effect that can not get wanting.
Summary of the invention
The embodiment of the invention provides a kind of method that realizes the image sharpening special effects, through the processing to the image sharpening stunt, to realize the effect of image sharpening.
In order to achieve the above object, the embodiment of the invention provides a kind of method that realizes the image sharpening special effects, may further comprise the steps:
Obtain original image;
The sharpening matrix of preset said original image, said sharpening matrix comprise horizontal sharpening matrix and vertical sharpening matrix;
The sharpening rank of sharpening is carried out in reception to said original image;
According to said sharpening matrix and said sharpening rank said original image is carried out sharpening, obtain target image.
Said reception also comprises before said original image is carried out the sharpening rank of sharpening:
Receive the sharpening zone that the user is provided with, said sharpening zone comprises coboundary, lower boundary, left margin and right margin.
Said obtaining after the original image also comprises:
If the color space of said original image is a rgb color space, then the color space with said original image converts the YUV color space into.
Saidly said original image is carried out sharpening, obtains target image, comprising according to said sharpening matrix and said sharpening rank:
Calculate the width and the height in said sharpening zone according to said sharpening zone;
According to said horizontal sharpening matrix processing is gone in said sharpening zone, generate the row of said target image;
According to said vertical sharpening matrix said sharpening zone is listed as processing, generates the row of said target image.
Saidly processing is gone in said sharpening zone, generates the row of said target image, specifically comprise according to said horizontal sharpening matrix:
Matrix according between said horizontal sharpening matrix computations current pixel point and former and later two pixels is poor, obtains the sharpening result of said current pixel point;
The matrix that obtains next pixel according to the matrix differential conversion formula of the matrix difference of said current matrix and neighbor pixel is poor;
Matrix according to said next pixel is poor, obtains the sharpening result of said next pixel.
Said horizontal sharpening matrix is specially:
R=[-1,-2,...,-n,+(2*n+1+m),-n,...-2,-1];
Said vertical sharpening matrix is specially:
P = - 1 - 2 · · · - n + ( 2 * n + 1 + m ) - n · · · - 2 - 1
Wherein, n is the sharpening width, and m is the sharpening rank.
The embodiment of the invention is through obtaining original image; The sharpening matrix of preset said original image, said sharpening matrix comprise horizontal sharpening matrix and vertical sharpening matrix; The sharpening rank of sharpening is carried out in reception to said original image; According to said sharpening matrix and said sharpening rank said original image is carried out sharpening, obtain target image, realized image is carried out the processing of sharpening stunt, realize the sharpening effect of image.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram of realizing the image sharpening special effects in the embodiment of the invention;
Fig. 2 is a kind of method particular flow sheet of realizing the image sharpening special effects in the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention one discloses a kind of method that realizes the image sharpening special effects, and is as shown in Figure 1, may further comprise the steps:
Step S101 obtains original image.
Step S102, the sharpening matrix of preset said original image, said sharpening matrix comprise horizontal sharpening matrix and vertical sharpening matrix.
Step S103 receives the sharpening rank that said original image is carried out sharpening from the user.
Wherein, receive from the user said original image is carried out the sharpening rank of sharpening before, comprising:
Receive the sharpening zone that the user is provided with, said sharpening zone comprises coboundary, lower boundary, left margin and right margin.
Step S104 carries out sharpening according to said sharpening matrix and said sharpening rank to said original image, obtains target image.Specifically comprise:
Calculate the width and the height in said sharpening zone according to said sharpening zone;
According to said horizontal sharpening matrix processing is gone in said sharpening zone, generates the row of said target image, specifically comprise:
Matrix according between said horizontal sharpening matrix computations current pixel point and former and later two pixels is poor, obtains the sharpening result of said current pixel point;
The matrix that obtains next pixel according to the matrix differential conversion formula of the matrix difference of said current matrix and neighbor pixel is poor;
Matrix according to said next pixel is poor, obtains the sharpening result of said next pixel.
According to said vertical sharpening matrix said sharpening zone is listed as processing, generates the row of said target image, specifically comprise:
Vertically sharpening is with unit of a behavior, and the capable result of n calculates the sharpening result of current line before and after utilizing.
Said horizontal sharpening matrix is specially:
R=[-1,-2,...,-n,+(2*n+1+m),-n,...-2,-1]
Said vertical sharpening matrix is specially:
P = - 1 - 2 · · · - n + ( 2 * n + 1 + m ) - n · · · - 2 - 1
Wherein, n is the sharpening width, and m is the sharpening rank.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is following: through obtaining original image; The sharpening matrix of preset said original image, said sharpening matrix comprise horizontal sharpening matrix and vertical sharpening matrix; The sharpening rank of sharpening is carried out in reception to said original image; According to said sharpening matrix and said sharpening rank said original image is carried out sharpening, obtain target image, realized image is carried out the processing of sharpening stunt, realize the sharpening effect of image.
The embodiment of the invention two discloses a kind of method that realizes the image sharpening special effects, and is as shown in Figure 2, may further comprise the steps:
Step S201 obtains original image.
Step S202, the color space of said original image are rgb color space, convert the color space of said original image into the YUV color space,
Rgb color space changes the YUV color space shown in formula 1,2 and 3:
Y=0.299*R+0.587*G+0.114*B (1)
U=-0.168*R-0.33*G+0.498*B+128 (2)
V=0.501*R-0.42*G-0.081*B+128 (3)
Step S203, the sharpening matrix of preset said original image, said sharpening matrix comprise horizontal sharpening matrix and vertical sharpening matrix.
Step S204 receives the sharpening rank that said original image is carried out sharpening from the user;
Generally, the sharpening rank is carried out limit value, scope is [0,2].
Wherein, receive from the user said original image is carried out the sharpening rank of sharpening before, comprising:
Receive the sharpening zone that the user is provided with, said sharpening zone comprises coboundary, lower boundary, left margin and right margin.
Step S205 carries out sharpening according to said sharpening matrix and said sharpening rank to said original image, obtains target image.Specifically comprise:
Calculate the width and the height in said sharpening zone according to said sharpening zone.
According to said horizontal sharpening matrix processing is gone in said sharpening zone, generates the row of said target image, specifically comprise:
Matrix according between said horizontal sharpening matrix computations current pixel point and former and later two pixels is poor, obtains the sharpening result of said current pixel point;
The matrix that obtains next pixel according to the matrix differential conversion formula of the matrix difference of said current matrix and neighbor pixel is poor;
Matrix according to said next pixel is poor, obtains the sharpening result of said next pixel.
According to said vertical sharpening matrix said sharpening zone is listed as processing, generates the row of said target image.
Said horizontal sharpening matrix, shown in formula 4:
R=[-1,-2,...,-n,+(2*n+1+m),-n,...-2,-1] (4)
The matrix of former and later two pixels is poor, shown in formula 5:
[1,1,...,1,-(2*n+1+n+m),+(2*n+1+n+m),-1,...-1,-1] (5)
Calculating finishes after the horizontal sharpening result of a pixel, and the matrix that calculates itself and next pixel is poor
Said vertical sharpening matrix, shown in formula 6:
P = - 1 - 2 · · · - n + ( 2 * n + 1 + m ) - n · · · - 2 - 1 - - - ( 6 )
Wherein, n is the sharpening width, and m is the sharpening rank.
It should be noted that sharpening width n when laterally sharpening is calculated, calculate by the width of the image of want sharpening; When vertically sharpening is calculated, obtain by the high computational of the image of want sharpening.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is following: through obtaining original image; The sharpening matrix of preset said original image, said sharpening matrix comprise horizontal sharpening matrix and vertical sharpening matrix; The sharpening rank of sharpening is carried out in reception to said original image; According to said sharpening matrix and said sharpening rank said original image is carried out sharpening, obtain target image, realized image is carried out the processing of sharpening stunt, realize the sharpening effect of image.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform; Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
In a word, the above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a method that realizes the image sharpening special effects is characterized in that, may further comprise the steps:
Obtain original image;
The sharpening matrix of preset said original image, said sharpening matrix comprise horizontal sharpening matrix and vertical sharpening matrix;
The sharpening rank of sharpening is carried out in reception to said original image;
According to said sharpening matrix and said sharpening rank said original image is carried out sharpening, obtain target image.
2. method according to claim 1 is characterized in that said reception also comprises before said original image is carried out the sharpening rank of sharpening:
Receive the sharpening zone that the user is provided with, said sharpening zone comprises coboundary, lower boundary, left margin and right margin.
3. method according to claim 1 is characterized in that said obtaining after the original image also comprises:
If the color space of said original image is a rgb color space, then the color space with said original image converts the YUV color space into.
4. method according to claim 1 or claim 2 is characterized in that, saidly according to said sharpening matrix and said sharpening rank said original image is carried out sharpening, obtains target image, comprising:
Calculate the width and the height in said sharpening zone according to said sharpening zone;
According to said horizontal sharpening matrix processing is gone in said sharpening zone, generate the row of said target image;
According to said vertical sharpening matrix said sharpening zone is listed as processing, generates the row of said target image.
5. method according to claim 1 is characterized in that, saidly according to said horizontal sharpening matrix processing is gone in said sharpening zone, generates the row of said target image, specifically comprises:
Matrix according between said horizontal sharpening matrix computations current pixel point and former and later two pixels is poor, obtains the sharpening result of said current pixel point;
The matrix that obtains next pixel according to the matrix differential conversion formula of the matrix difference of said current matrix and neighbor pixel is poor;
Matrix according to said next pixel is poor, obtains the sharpening result of said next pixel.
6. method according to claim 1 is characterized in that said horizontal sharpening matrix is specially:
R=[-1,-2,…,-n,+(2*n+1+m),-n,…-2,-1];
Said vertical sharpening matrix is specially:
Figure FDA0000114865950000021
Wherein, n is the sharpening width, and m is the sharpening rank.
CN2011103936895A 2011-12-01 2011-12-01 Method for achieving sharpening special effects for image Pending CN102752480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103936895A CN102752480A (en) 2011-12-01 2011-12-01 Method for achieving sharpening special effects for image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103936895A CN102752480A (en) 2011-12-01 2011-12-01 Method for achieving sharpening special effects for image

Publications (1)

Publication Number Publication Date
CN102752480A true CN102752480A (en) 2012-10-24

Family

ID=47032368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103936895A Pending CN102752480A (en) 2011-12-01 2011-12-01 Method for achieving sharpening special effects for image

Country Status (1)

Country Link
CN (1) CN102752480A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010525A (en) * 2018-10-08 2020-04-14 宏碁股份有限公司 Method for dynamically adjusting image definition and image processing device thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394459A (en) * 2007-09-17 2009-03-25 硕颉科技股份有限公司 Adaptive image processing device and method thereof
CN101502097A (en) * 2006-08-07 2009-08-05 高通股份有限公司 Adaptive spatial image filter for filtering image information
WO2009110328A1 (en) * 2008-03-03 2009-09-11 三菱電機株式会社 Image processing device and method, and image display device and method
CN102137221A (en) * 2010-01-22 2011-07-27 富士通微电子(上海)有限公司 Method and system for sharpening digital video image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101502097A (en) * 2006-08-07 2009-08-05 高通股份有限公司 Adaptive spatial image filter for filtering image information
CN101394459A (en) * 2007-09-17 2009-03-25 硕颉科技股份有限公司 Adaptive image processing device and method thereof
WO2009110328A1 (en) * 2008-03-03 2009-09-11 三菱電機株式会社 Image processing device and method, and image display device and method
CN102137221A (en) * 2010-01-22 2011-07-27 富士通微电子(上海)有限公司 Method and system for sharpening digital video image

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010525A (en) * 2018-10-08 2020-04-14 宏碁股份有限公司 Method for dynamically adjusting image definition and image processing device thereof
CN111010525B (en) * 2018-10-08 2021-04-06 宏碁股份有限公司 Method for dynamically adjusting image sharpness and image processing device thereof

Similar Documents

Publication Publication Date Title
JP7246542B2 (en) Apparatus and method for improving perceptual luminance nonlinearity-based image data exchange between different display features
KR102488954B1 (en) Image processing device and image processing method thereof
CN107909553B (en) Image processing method and device
EP3430807B1 (en) A method and a device for encoding a high dynamic range picture, corresponding decoding method and decoding device
TWI727968B (en) Method and apparatus for quantization in video encoding and decoding
US20120229495A1 (en) Interpolation of Color Gamut For Display on Target Display
US11190778B2 (en) Image filtering method and apparatus
WO2019092463A1 (en) Video image processing
CN102752607B (en) A kind of realize when image moves trail specially good effect method and apparatus
CN102750116A (en) Method for processing over-range signal of luma and chroma (YUV) color space
CN102752605A (en) Method and system for regulating image/video color saturation degree
EP3300368A1 (en) Video encoding and decoding method, and video encoder/decoder
EP4037312A1 (en) Image signal conversion method and apparatus, and terminal device
CN101543042A (en) Image processing apparatus, video reception apparatus, and image processing method
CN102752608A (en) Method and device for realizing fast color correction
CN102752480A (en) Method for achieving sharpening special effects for image
US10205967B2 (en) Extended YCC format for backward-compatible P3 camera video
US10298932B1 (en) Compression encoding of images
CN101534454B (en) A color difference signal non-linear quantization method for expansion of digital television color gamut
CN104717401A (en) Method and device for removing singular point noise
CN102750925B (en) In a kind of color oscilloscope, colour model maps the method for three-dimensional space
CN102752476A (en) Method and device for adjusting image printing light in real time
Khan A new quantization scheme for HDR two-layer encoding schemes
CN108271061A (en) A kind of method for being inserted into high contrast frame subtitle in video
CN102750926A (en) Method and system for color display of ultra violet (UV) oscilloscope

Legal Events

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

Application publication date: 20121024