CN102883165B - Image zooming processing method and equipment - Google Patents

Image zooming processing method and equipment Download PDF

Info

Publication number
CN102883165B
CN102883165B CN201210400944.9A CN201210400944A CN102883165B CN 102883165 B CN102883165 B CN 102883165B CN 201210400944 A CN201210400944 A CN 201210400944A CN 102883165 B CN102883165 B CN 102883165B
Authority
CN
China
Prior art keywords
picture
colour picture
convergent
quality factor
colour
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
CN201210400944.9A
Other languages
Chinese (zh)
Other versions
CN102883165A (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 Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210400944.9A priority Critical patent/CN102883165B/en
Publication of CN102883165A publication Critical patent/CN102883165A/en
Application granted granted Critical
Publication of CN102883165B publication Critical patent/CN102883165B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Color Television Systems (AREA)

Abstract

The invention discloses a kind of image zooming processing method and equipment, relate to technical field of image processing.Wherein method comprises: judge the type of input picture; When the type judging described input picture is colour picture, obtain the compression quality factor of the compression ratio of the described colour picture of instruction; Convergent-divergent process is carried out to described colour picture; And according to the compression quality factor of described colour picture, image sharpening process is carried out to the colour picture obtained after convergent-divergent process, obtain exporting colour picture.Method and apparatus provided by the invention carries out image sharpening process according to the compression ratio of colour picture, and after such process, the definition of original inferior colour picture is largely increased.

Description

Image zooming processing method and equipment
Technical field
The present invention relates to technical field of image processing, be specifically related to a kind of method and apparatus picture being carried out convergent-divergent process.
Background technology
In Computer Image Processing, image zooming refers to the process adjusted by increasing or remove the size of pixel to digital picture.Compromise owing to will do between efficiency and picture quality (such as smoothness and definition), image zooming is not a mediocre process.The instrument of active client process picture is many, as Photoshop and Mei Tu show show etc., can carry out zoom operations by these instruments according to user preferences to picture.
Image zooming technology comprises picture and reduces and amplify two kinds of technology with picture.Picture amplifies and is generally used for the less picture of employing one and fills a larger screen, and when dimension of picture increases time, the pixel of composition picture increases, and picture looks that just change " soft ".Picture reduces and reduces picture to adapt to except viewing area except being used for, and is more for generation of preview picture.Picture amplifying technique generally can adopt interpolation algorithm to realize.Picture reduces technology and realizes by sampling (also can be described as down-sampling or down-sampled) method.Can not bring more information about picture to the zoom operations of picture, therefore after convergent-divergent, the quality of picture will inevitably be affected.With to JPEG(JointPhotographic Experts Group, JPEG (joint photographic experts group)) picture carries out being reduced into example, by some pixels that the mode of sampling will be removed in picture, this certainly will cause picture blur, have the problems such as granular sensation, if JPEG picture quality is poorer, the thumbnail obtained is fuzzyyer.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the image zooming processing method solved the problem at least in part and corresponding image zooming treatment facility.
According to an aspect of the present invention, provide a kind of image zooming processing method, comprise step: the type of input picture is judged; When judging that inputting the type of picture is colour picture, obtain the compression quality factor of the compression ratio of index color image; Convergent-divergent process is carried out to colour picture; And according to the compression quality factor of colour picture, image sharpening process is carried out to the colour picture obtained after convergent-divergent process, obtain exporting colour picture.
According to a further aspect in the invention, provide a kind of image zooming treatment facility, comprising: judge module, be suitable for judging the type of input picture; Compression quality factor determination module, is suitable for when the type that judge module judges described input picture is colour picture, obtains the compression quality factor of the compression ratio of index color image; First Zoom module, is suitable for carrying out convergent-divergent process to colour picture; And sharpening module, be suitable for the compression quality factor according to colour picture, image sharpening process is carried out to the colour picture obtained after convergent-divergent process, obtain exporting colour picture.
According to method and apparatus picture being carried out convergent-divergent process provided by the invention, by judging the type of input picture, when judging as colour picture, obtain the compression quality factor of this colour picture, image sharpening process is carried out according to the colour picture after the compression quality factor pair convergent-divergent process of colour picture, wherein the compression quality factor indicates the compression ratio of colour picture, that is, method and apparatus provided by the invention carries out image sharpening process according to the compression ratio of colour picture, after such process, the definition of original inferior colour picture is largely increased.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the flow chart of the method for according to an embodiment of the invention picture being carried out to convergent-divergent process;
Fig. 2 shows the flow chart of the method for in accordance with another embodiment of the present invention picture being carried out to convergent-divergent process; And
Fig. 3 shows the structural representation of the equipment according to an embodiment of the invention picture being carried out to convergent-divergent process.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows the flow chart of the method 100 of according to an embodiment of the invention picture being carried out to convergent-divergent process.What the method that the present embodiment provides mainly solved is when the type judging to input picture is colour picture, how to carry out convergent-divergent process to this colour picture.As shown in Figure 1, method 100 starts from step S101, wherein judges the type of input picture.The process done after causing follow-up convergent-divergent because the type inputting picture is different can be different, therefore needs in the method first to judge the type of input picture, and this deterministic process mainly determines whether input picture is colour picture.Alternatively, the foundation of judgement is the color space of input picture, if the color space of input picture is RGB, so then determines that the type of this input picture is colour picture.
Subsequently, method 100 enters step S102, when judging that in step S101 inputting the type of picture is colour picture, obtains the compression quality factor of the compression ratio of index color image in step s 102.Colour picture in current internet is all through compression process in various degree, for JPEG picture, the compression of this type picture mainly comprises four steps, is respectively color conversion, dct transform (Discrete Cosine Transform, discrete cosine transform), quantizes and coding.Can choose the compression quality factor in quantization step, this compression quality factor indicates the compression ratio of colour picture.If the compression quality factor chosen is comparatively large, compression ratio can be increased substantially, but picture quality can be poor; If the compression quality factor chosen is less, the reconstruction quality of image is better, but compression ratio is lower.Therefore, the compression quality factor is the factor characterizing color picture image quality.When judging that inputting the type of picture is colour picture, obtaining the compression quality factor of this colour picture, this compression quality factor in the subsequent step of this method, will be used.
Method 100 enters step S103 subsequently, wherein carries out convergent-divergent process to colour picture.After the compression quality factor obtaining colour picture, according to interpolation or sampling algorithm, convergent-divergent process is carried out to colour picture.The convergent-divergent process of this step can be carried out according to existing method, does not repeat them here.
It should be noted that there is no ordinal relation between step S102 and S103, two steps can perform simultaneously, first step S103 then step S102 etc., all these is within protection scope of the present invention.
Subsequently, in step S104, according to the compression quality factor of the colour picture obtained in step S102, image sharpening process is carried out to the colour picture obtained after convergent-divergent process, obtain exporting colour picture.The image sharpening process that step S104 does is the radio-frequency component compensating and increase image, makes the atural object border in image, edges of regions, lines, textural characteristics and fine structure feature more clear and distinct.Due to when carrying out image sharpening process, the noise section of picture can obtain enhancing to the same extent, and for the higher picture of compression ratio, its pixel loss situation is more serious, noise is also corresponding larger, so this method carries out image sharpening process in various degree to the colour picture with the different compression quality factors.Particularly, the compression ratio indicated by the compression quality factor is higher, and the sharpening degree of image sharpening is lower, and the compression ratio indicated by the compression quality factor is lower, and the sharpening degree of image sharpening is higher.After such image sharpening process, the definition of the output colour picture obtained is largely increased.
According to the method for picture being carried out convergent-divergent process that the present embodiment provides, by judging the type of input picture, when judging as colour picture, obtain the compression quality factor of this colour picture, image sharpening process is carried out according to the colour picture after the compression quality factor pair convergent-divergent process of colour picture, wherein the compression quality factor indicates the compression ratio of colour picture, that is, the method that the present embodiment provides carries out image sharpening process according to the compression ratio of colour picture, after such process, the definition of original inferior colour picture is largely increased.
Fig. 2 shows the flow chart of the method 200 of in accordance with another embodiment of the present invention picture being carried out to convergent-divergent process.As shown in Figure 2, method 200 starts from step S201, wherein judges the type of input picture.The process done after causing follow-up convergent-divergent because the type inputting picture is different can be different, therefore needs in the method first to judge the type of input picture, and this deterministic process mainly determines that input picture is colour picture or gray scale picture.Alternatively, the foundation of judgement is the color space of input picture, if the color space of input picture is gray scale, so then determines that the type of this input picture is gray scale picture, performs step S202; If the color space of input picture is RGB, so then determine that the type of this input picture is colour picture, perform step S204.
When judging that inputting the type of picture is gray scale picture in step s 201, method 200 enters step S202, in step S202, carry out convergent-divergent process to gray scale picture.According to interpolation or sampling algorithm, convergent-divergent process is carried out to gray scale picture.The convergent-divergent process of this step can be carried out according to existing method, does not repeat them here.
Carry out convergent-divergent process to gray scale picture in step S202 after, method 200 enters step S203, wherein the gray scale picture obtained after convergent-divergent process is carried out histogram equalization process, obtains output gray level picture.For grey picture, this method adopts histogram equalization method to process it, can strengthen picture contrast.Histogram equalization is the method utilizing image histogram to adjust picture contrast in image processing field.The abscissa of image histogram represents Luminance Distribution, and ordinate represents pixel distribution.It can show the distribution situation of tone in a pictures, discloses the quantity that in picture, under each gray scale, pixel occurs.According to the image aspects that these numerical value are drawn, the exposure status of picture tentatively can be judged.No matter picture has abundant high light performance or over-exposed, or has full thin portion shadow or details to differentiate unclear, and image histogram can show very intuitively.Histogram equalization method carries out " adjustment " to realize the enhancing of contrast by using cumulative function to gray value." central idea " of histogram equalization process is that the grey level histogram of original image is become being uniformly distributed in whole tonal range between certain gray area of relatively concentrating.Histogram equalization carries out Nonlinear extension to image exactly, redistributes image pixel value, makes the pixel quantity in certain tonal range roughly the same.Be exactly briefly that the histogram distribution of Given Graph picture is changed over the histogram distribution that " evenly " distribute.
For a gray scale picture, if n irepresent the number of times that gray scale i occurs, in picture, to be the pixel probability of occurrence of i be gray scale:
p x ( i ) = n i n , i ∈ 0 , . . . , L - 1 - - - ( 1 )
Wherein, L is grey all in picture, and n is pixel count all in picture, p xbe actually the histogram of this picture, normalized in [0,1] scope.
Using c as corresponding to p xcumulative probability function, be defined as:
c ( i ) = Σ j = 0 i p x ( j ) - - - ( 2 )
C is the accumulative normalization histogram of picture.
Create the change function that a form is y=T (x), for each value in original image, it just can carry out linearisation with regard to the cumulative probability function producing a y, such y within the scope of all values, and conversion formula is defined as:
y i=T(x i)=c(i) (3)
Different grade mappings to [0,1] territory, in order to these values are mapped go back to their initial territories, is needed the simple transformation below applying in result by attention T:
y i′=y i·(max-min)+min (4)
Wherein, max represents the gray scale maximum in picture, and min represents the minimum gray value in picture.
Lose due to gray scale picture pixel after convergent-divergent and thicken, the pixel of picture can be made to tend to occupy whole possible gray scale and be evenly distributed by above-mentioned histogram equalization processing method, thus reach the object of the contrast strengthened between picture prospect, background, make output gray level picture more clear.
Described above is method gray level image using histogram equalization, but redness, green and the blue component by this method being respectively used to image RGB color value, thus also can process coloured image.
When judging that inputting the type of picture is colour picture in step s 201, method 200 enters step S204, obtains the compression quality factor of the compression ratio of index color image in step S204.Colour picture in current internet, all through compression process in various degree, in order to understand source and the effect of the compression quality factor, introduces the processing procedure of picture compression here for JPEG picture.JPEG picture compression is mainly divided into following four steps:
(1) color conversion.
Because JPEG only supports the data structure of YUV color mode, and do not support the data structure of RGB color mode, so before being compressed by colour picture, the color mode of colour picture must be converted to RGB color mode.
(2) dct transform.
By picture signal in the enterprising line translation of frequency domain, isolate high-frequency information and low frequency information.Follow-up the HFS (i.e. image detail) to image to be compressed, to reach the object of compressing image data.
(3) quantize.
Because the code book used in next code process is all integer, therefore need the coefficient of frequency after to dct transform to quantize, be converted into integer.In this course, can choose the compression quality factor, this compression quality factor indicates the compression ratio of colour picture.After carrying out quantification treatment according to the compression quality factor, the quantized value obtained is all approximation, and has had difference between the data of original image, and this difference causes the main cause of distortion after image compression.Therefore, choosing of the compression quality factor is most important, if the compression quality factor chosen is comparatively large, can increase substantially compression ratio, but picture quality can be poor; If the compression quality factor chosen is less, the reconstruction quality of image is better, but compression ratio is lower.ISO has formulated one group of criterion and quantity value for jpeg code implementor.
(4) encode.
As can be seen from process above, before being accomplished to coding from color conversion, image is not further compressed, dct transform and quantize to can be described as the preparation done for coding stage.Coding can adopt two kinds of mechanism: one is the run length encoding of 0 value; Two is entropy code.In JPEG, adopt song to wander sequence, namely make the element in " it " word arrangement image data matrix with the cornerwise normal direction of image data matrix.The advantage done like this makes near the larger arrangement of elements of the image data matrix upper left corner, value before stroke, and the image data matrix element arranged after stroke is essentially 0 value.Run length encoding is very simple and conventional coded system, does not repeat them here.Coding is actually a kind of coding method of Corpus--based Method characteristic.Allow to adopt huffman coding or arithmetic coding in JPEG.
Can be seen by the compression process of above-mentioned JPEG picture, the compression quality factor can control flexibly, and different realizations also has different definition to the compression quality factor, for example:
IJG(Independent JPEG Group, independent JPEG group) the compression quality factor tolerance grade that adopts is 1 ~ 99, and the compression ratio of 1 instruction picture is minimum, the compression ratio of 99 instruction pictures is the highest;
Photoshop(image processing software) define the compression quality factor of 1 ~ 12 grade;
Apple(apple) define the compression quality factor of 0 ~ 4 grade;
Paint Shop Pro(image editing software) adopt the compression quality factor tolerance grade be also 1 ~ 99, but with IJG by contrast, 1 instruction picture compression ratio the highest, 99 instruction pictures compression ratio minimum.
For the compression quality factor of above-mentioned several different definition, unified tolerance grade can be translated into.Such as, after the compression quality factor of content obtaining colour picture analyzing colour picture, it can being converted into the tolerance grade of IJG definition, alternatively, just can realizing this function by adopting JPEGdump instrument.It should be noted that, the present invention is not limited only to factor converting for the compression quality tolerance grade for IJG definition, and also can be converted into the tolerance grade of other types definition, the present invention does not limit this.
Method 200 enters step S205 subsequently, is wherein PNG form (Portable Network Graphic Format, portable network graphics format) by the form of colour picture by original format conversion.Picture processing process due to PNG form is damage-free process, this method is selected, before convergent-divergent process, the form (as jpeg format) of colour picture is converted to PNG form, relative to other form, convergent-divergent process is carried out to the colour picture of PNG form, the impact on definition can be reduced.
Subsequently, in step S206, convergent-divergent process is carried out to colour picture.Particularly, according to interpolation or sampling algorithm, convergent-divergent process is carried out to colour picture.The convergent-divergent process of step S206 can be carried out according to existing method, does not repeat them here.
Carry out convergent-divergent process to colour picture in step S206 after, method 200 enters step S207, is wherein original form by the form of the colour picture after convergent-divergent process by PNG format conversion.In order to obtain less byte number, the colour picture after convergent-divergent process is converted to again original form (as jpeg format).
Above-mentioned steps S205 and step S207 is optional step of the present invention, and the present invention also directly can carry out convergent-divergent process to the colour picture of unprocessed form, and without the need to carrying out format conversion.But when carrying out format conversion, the definition of the colour picture obtained can be more good.
Should be noted that; ordinal relation is not had between arbitrary step in step S204 and step S205-S207; step S204 can perform with the arbitrary step in step S205-S207 simultaneously, also can perform after the arbitrary step in step S205-S207, and all these is within protection scope of the present invention.
Subsequently, in step S208, the colour picture obtained after convergent-divergent process is carried out process of convolution from the gaussian signal of the different sharpening degree of instruction, obtain exporting colour picture.This method adopts carries out the mode of process of convolution to reach the object of image sharpening by colour picture and gaussian signal, sharpening degree wherein indicated by gaussian signal determined by the parameter in gaussian signal, and the size of parameter in gaussian signal determines according to the compression quality factor of the colour picture obtained in step S204.If colour picture is f (x, y), gaussian signal is g (r, σ), and the output colour picture so obtained through process of convolution is:
R(x,y)=f(x,y)*g(r,σ) (5)
Wherein, r and σ is the parameter in gaussian signal, and r is the average of gaussian signal, and σ is the variance of gaussian signal.The size of the value of r and σ is determined according to the compression quality factor of colour picture.
Compression quality factor Q for the tolerance grade of IJG definition:
If Q >=95, r=5, σ=0.4;
If 90≤Q<95, r=5, σ=0.3;
If 85≤Q<90, r=5, σ=0.2;
If Q<85, do not carry out Edge contrast.
The concrete numerical value of the parameter of above-mentioned gaussian signal is one of embodiment provided by the invention, but can not as being limitation of the present invention.
According to the method for picture being carried out convergent-divergent process that the present embodiment provides, by judging the type of input picture, when judging as gray scale picture, histogram equalization process is carried out to the gray scale picture after convergent-divergent process, the pixel of gray scale picture is made to tend to occupy whole possible gray scale and be evenly distributed, thus reach the object of the contrast strengthened between picture prospect, background, make output gray level picture more clear.And when judging as colour picture, obtain the compression quality factor of this colour picture, image sharpening process is carried out according to the colour picture after the compression quality factor pair convergent-divergent process of colour picture, wherein the compression quality factor indicates the compression ratio of colour picture, that is, the image sharpening process that the method that the present embodiment provides is carried out in various degree according to the compression ratio of colour picture to colour picture, after such process, the definition of original inferior picture is largely increased.Generally speaking, the method utilizing the present embodiment to provide can be optimized the convergent-divergent process of the picture of any type, makes the picture after convergent-divergent process more clear, and the method is specially adapted to the batch process of picture being carried out to enterprise-level.
Fig. 3 shows the structural representation of the equipment according to an embodiment of the invention picture being carried out to convergent-divergent process.As shown in Figure 3, this image zooming equipment 300 comprises judge module 310, compression quality factor determination module 320, first Zoom module 330 and sharpening module 340.
In image zooming equipment 300, judge module 310 receives the input picture that the external world sends, and judges the type of input picture.Because the type inputting picture different causing can be different to the process done after image zooming, therefore in this equipment, judge module 310 needs first to judge the type of input picture, and this deterministic process mainly determines that input picture is colour picture or gray scale picture.Alternatively, the foundation of judgement is the color space of input picture, if the color space of input picture is gray scale, so then determines that the type of this input picture is gray scale picture; If the color space of input picture is RGB, so then determine that the type of this input picture is colour picture.
Compression quality factor determination module 320, when the type that judge module 310 judges to input picture is colour picture, obtains the compression quality factor of the compression ratio of index color image.Colour picture in current internet is all through compression process in various degree, for JPEG picture, the compression of this type picture mainly comprises four steps, be respectively color conversion, dct transform, quantification and coding, the detailed process of these four steps can see the description in said method embodiment.Can choose the compression quality factor in quantization step, this compression quality factor indicates the compression ratio of colour picture.If the compression quality factor chosen is comparatively large, compression ratio can be increased substantially, but picture quality can be poor; If the compression quality factor chosen is less, the reconstruction quality of image is better, but compression ratio is lower.Therefore, the compression quality factor is the factor characterizing color picture image quality.When judging that inputting the type of picture is colour picture, compression quality factor determination module 320 obtains the compression quality factor of this colour picture.Alternatively, compression quality factor determination module 320 is specifically suitable for the compression quality factor of the content obtaining colour picture by analyzing colour picture, by factor converting for compression quality be the tolerance grade of IJG, such as, by adopting JPEGdump instrument just can realize this function.Afterwards, the compression quality factor is exported to sharpening module 340 by compression quality factor determination module 320.
First Zoom module 330 pairs colour picture carries out convergent-divergent process.Particularly, the first Zoom module 330, according to interpolation or sampling algorithm, carries out convergent-divergent process to colour picture.
Sharpening module 340, according to the compression quality factor of colour picture, carries out image sharpening process to the colour picture obtained after convergent-divergent process, obtains exporting colour picture.Wherein, the compression ratio indicated by the compression quality factor is higher, and the sharpening degree that sharpening module 340 carries out image sharpening is lower.
Alternatively, sharpening module 340 can comprise: Edge contrast module 341 and parameter acquisition module 342, wherein, the colour picture obtained after convergent-divergent process is carried out process of convolution from the gaussian signal of the different sharpening degree of instruction by Edge contrast module 341, obtains exporting colour picture and exporting; Parameter acquisition module 342 is according to the size of the parameter in the compression quality factor determination gaussian signal of colour picture, and the sharpening degree indicated by gaussian signal determined by the parameter in gaussian signal.Wherein Edge contrast module 341 pairs of colour pictures carry out the detailed process of Edge contrast can see the associated description in said method embodiment.
Alternatively, image zooming equipment 300 can also comprise format converting module 350, it is PNG form that this format converting module 350 to be suitable for the form of colour picture by original format conversion, and is original form by the form of the colour picture obtained after convergent-divergent process by PNG format conversion.Picture processing process due to PNG form is damage-free process, the form (as jpeg format) of colour picture was converted to PNG form by this equipment choice before convergent-divergent process, relative to other form, convergent-divergent process is carried out to the colour picture of PNG form, the impact on definition can be reduced.
Further, image zooming equipment 300 can also comprise the second Zoom module 360 and histogram equalization processing module 370.Wherein, the second Zoom module 360, when the type that judge module 310 judges to input picture is gray scale picture, carries out convergent-divergent process to gray scale picture.Second Zoom module 360 according to interpolation or sampling algorithm, can carry out convergent-divergent process to gray scale picture.The gray scale picture obtained after the 370 pairs of convergent-divergent process of histogram equalization processing module carries out histogram equalization process, obtains output gray level picture and exports.For grey picture, this equipment adopts histogram equalization method to process it, can strengthen picture contrast.Histogram equalization processing module 370 pairs of gray scale pictures carry out the detailed process of histogram equalization process can see the associated description of said method embodiment.
According to equipment picture being carried out convergent-divergent process that the present embodiment provides, judged by the type of judge module to input picture, when judging as gray scale picture, histogram equalization processing module carries out histogram equalization process to the gray scale picture after convergent-divergent process, the pixel of gray scale picture is made to tend to occupy whole possible gray scale and be evenly distributed, thus reach the object of the contrast strengthened between picture prospect, background, make output gray level picture more clear.And when judging as colour picture, compression quality factor determination module obtains the compression quality factor of this colour picture, sharpening module carries out image sharpening process according to the colour picture after the compression quality factor pair convergent-divergent process of colour picture, wherein the compression quality factor indicates the compression ratio of colour picture, that is, the image sharpening process that the equipment that the present embodiment provides carries out in various degree according to the compression ratio of colour picture to colour picture, after such process, the definition of original inferior picture is largely increased.Generally speaking, the equipment utilizing the present embodiment to provide can be optimized the convergent-divergent process of the picture of any type, makes the picture after convergent-divergent process more clear, and this equipment is specially adapted to the batch process of picture being carried out to enterprise-level.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions of picture being carried out the some or all parts in the equipment of convergent-divergent process that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (10)

1. an image zooming processing method, comprising:
The type of input picture is judged;
When the type judging described input picture is colour picture, obtain the compression quality factor of the compression ratio of the described colour picture of instruction;
Convergent-divergent process is carried out to described colour picture; And
The colour picture obtained after convergent-divergent process is carried out process of convolution from the gaussian signal of the different sharpening degree of instruction, obtain exporting colour picture, sharpening degree wherein indicated by gaussian signal determined by the parameter in gaussian signal, and the size of parameter in described gaussian signal determines according to the compression quality factor of described colour picture, if colour picture is f (x, y), gaussian signal is g (r, σ), the output colour picture obtained through process of convolution is: R (x, y)=f (x, y) * g (r, σ);
Wherein, r and σ is the parameter in Gauss's information, and r is the average of Gauss's information, and σ is the variance of Gauss's information, and the size of the value of r and σ is determined according to the compression quality factor of colour picture.
2. method according to claim 1, the compression ratio indicated by the wherein said compression quality factor is higher, and the sharpening degree of image sharpening is lower.
3. method according to claim 1 and 2, described convergent-divergent process is carried out to colour picture before also comprise: be portable network graphics format by the form of described colour picture by original format conversion;
Described convergent-divergent process is carried out to colour picture after also comprise: the form of the colour picture obtained after by convergent-divergent process is converted to original form by portable network graphics format.
4. method according to claim 1, the step of the compression quality factor of the described colour picture of described acquisition comprises: by analyzing the compression quality factor of the content obtaining colour picture of described colour picture, by factor converting for described compression quality be the tolerance grade of independent JPEG group.
5. method according to claim 1, also comprises:
When the type judging described input picture is gray scale picture, according to interpolation or sampling algorithm, convergent-divergent process is carried out to described gray scale picture;
Histogram equalization process is carried out to the gray scale picture obtained after convergent-divergent process, obtains output gray level picture.
6. an image zooming treatment facility, comprising:
Judge module, is suitable for judging the type of input picture;
Compression quality factor determination module, is suitable for when the type that described judge module judges described input picture is colour picture, obtains the compression quality factor of the compression ratio of the described colour picture of instruction;
First Zoom module, is suitable for carrying out convergent-divergent process to described colour picture; And
Edge contrast module, is suitable for the colour picture obtained after convergent-divergent process to carry out process of convolution from the gaussian signal of the different sharpening degree of instruction, obtains exporting colour picture;
Parameter acquisition module, be suitable for the size determining the parameter in described gaussian signal according to the compression quality factor of described colour picture, the sharpening degree indicated by gaussian signal determined by the parameter in gaussian signal;
If colour picture is f (x, y), gaussian signal is g (r, σ), and the output colour picture obtained through process of convolution is: R (x, y)=f (x, y) * g (r, σ);
Wherein, r and σ is the parameter in Gauss's information, and r is the average of Gauss's information, and σ is the variance of Gauss's information, and the size of the value of r and σ is determined according to the compression quality factor of colour picture.
7. equipment according to claim 6, the compression ratio indicated by the described compression quality factor is higher, and the sharpening degree that described Edge contrast module carries out image sharpening is lower.
8. the equipment according to claim 6 or 7, also comprises:
Format converting module, being suitable for the form of described colour picture by original format conversion is portable network graphics format, and the form of the colour picture obtained after convergent-divergent process is converted to original form by portable network graphics format.
9. equipment according to claim 6, described compression quality factor determination module is specifically suitable for the compression quality factor of the content obtaining colour picture by analyzing described colour picture, by factor converting for described compression quality be the tolerance grade of independent JPEG group.
10. equipment according to claim 6, also comprises:
Second Zoom module, is suitable for, when the type that described judge module judges described input picture is gray scale picture, according to interpolation or sampling algorithm, carrying out convergent-divergent process to described gray scale picture;
Histogram equalization processing module, the gray scale picture be suitable for obtaining after convergent-divergent process carries out histogram equalization process, obtains output gray level picture.
CN201210400944.9A 2012-10-19 2012-10-19 Image zooming processing method and equipment Expired - Fee Related CN102883165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210400944.9A CN102883165B (en) 2012-10-19 2012-10-19 Image zooming processing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210400944.9A CN102883165B (en) 2012-10-19 2012-10-19 Image zooming processing method and equipment

Publications (2)

Publication Number Publication Date
CN102883165A CN102883165A (en) 2013-01-16
CN102883165B true CN102883165B (en) 2015-10-07

Family

ID=47484280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210400944.9A Expired - Fee Related CN102883165B (en) 2012-10-19 2012-10-19 Image zooming processing method and equipment

Country Status (1)

Country Link
CN (1) CN102883165B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103606161A (en) * 2013-12-03 2014-02-26 山东中医药大学 Method and system for processing medical image
CN105138694A (en) * 2015-09-21 2015-12-09 合一网络技术(北京)有限公司 Method and device for graphics interchange format (GIF) recording
CN105631467A (en) * 2015-12-18 2016-06-01 小米科技有限责任公司 Method and device for displaying picture
CN109255752B (en) * 2017-07-14 2023-06-23 北京字节跳动网络技术有限公司 Image self-adaptive compression method, device, terminal and storage medium
CN109255796B (en) * 2018-09-07 2022-01-28 浙江大丰实业股份有限公司 Safety analysis platform for stage equipment
CN116416128A (en) * 2021-12-31 2023-07-11 北京字跳网络技术有限公司 Downsampling method and device for image

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162104B2 (en) * 2002-08-30 2007-01-09 W.W. Grainger, Inc. System and method for image compression, storage, and retrieval
US8442344B2 (en) * 2006-08-07 2013-05-14 Qualcomm Incorporated Adaptive spatial image filter for filtering image information
CN102129644A (en) * 2011-03-08 2011-07-20 北京理工大学 Intelligent advertising system having functions of audience characteristic perception and counting
CN102868847B (en) * 2012-10-19 2014-12-10 北京奇虎科技有限公司 Image type based processing method and device

Also Published As

Publication number Publication date
CN102883165A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
CN102868847B (en) Image type based processing method and device
CN102883165B (en) Image zooming processing method and equipment
US9501818B2 (en) Local multiscale tone-mapping operator
JP6180566B2 (en) Apparatus and method for improving perceptual luminance nonlinearity based image data exchange between different display functions
JP2020171022A (en) System for coding high dynamic range and wide color gamut sequences
RU2640717C1 (en) Coding, decoding and presenting high dynamic range images
CN105103548A (en) Selection of the maximum dynamic range of transformed data and the data precision of transform matrices according to the bit depth of input data
CN107852513A (en) The pixel of input video sequence is encoded
WO2017053860A1 (en) High dynamic range adaptation operations at a video decoder
EP2609746A2 (en) Extending image dynamic range
TW202116072A (en) Tensor-product b-spline predictor
CN1947146A (en) Method of down-sampling data values
WO2010005360A1 (en) Method for compressing images and a format for compressed images
Richter On the integer coding profile of JPEG XT
CN107925778A (en) Pixel pre-processes and coding
CN104301578A (en) Processing method and equipment based on image type
KR20220119316A (en) Encoding method and encoder
US20170195673A1 (en) Adaptive precision and quantification of a wavelet transformed matrix
CN102215400B (en) Buffer size reduction for wireless analog TV receivers
GB2313757A (en) Method using an embedded codestream
Patel An Efficient Image Compression Technique Based On Arithmetic Coding
WO2005074146A1 (en) Data encoding using multi-dimensional redundancies
Albarahany et al. Modern Digital Signal Processing in Reference to Image Compression
Kwon et al. Fast Opto-electrical Transformation of HDR Videos based on a LUT for Piecewise Linear Approximation
Minami et al. Inverse halftoning using super‐resolution image processing

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151007

Termination date: 20211019

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