CN102868847A - Image type based processing method and device - Google Patents

Image type based processing method and device Download PDF

Info

Publication number
CN102868847A
CN102868847A CN2012104024415A CN201210402441A CN102868847A CN 102868847 A CN102868847 A CN 102868847A CN 2012104024415 A CN2012104024415 A CN 2012104024415A CN 201210402441 A CN201210402441 A CN 201210402441A CN 102868847 A CN102868847 A CN 102868847A
Authority
CN
China
Prior art keywords
picture
colour picture
quality factor
convergent
divergent
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.)
Granted
Application number
CN2012104024415A
Other languages
Chinese (zh)
Other versions
CN102868847B (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 CN201210402441.5A priority Critical patent/CN102868847B/en
Publication of CN102868847A publication Critical patent/CN102868847A/en
Application granted granted Critical
Publication of CN102868847B publication Critical patent/CN102868847B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an image type based processing method and a device and relates to the technical field of image processing. The device comprises a judging module, a compressing quality factor determining module, a first scaling module and a sharpening module, wherein the judging module is suitable for judging types of input images; the compressing quality factor determining module is suitable for acquiring compressing quality factors which indicate compression ratios of color images under the condition that the judging module judges that the types of the input images are the color images; the first scaling module is suitable for scaling the color images; the sharpening module is suitable for sharpening the color images which are obtained after scaling processing according to the compressing quality factors of the color images to obtain output color images; and the higher the compression ratios indicated by the compressing quality factors are, the lower the sharpening degree of image sharpening of the sharpening module is. According to the method and the device, the image sharpening is processed according to the compression ratios of the color images, and the definition of original low-quality color images is substantially improved.

Description

Processing method and equipment based on picture/mb-type
Technical field
The present invention relates to technical field of image processing, be specifically related to a kind of processing method based on picture/mb-type and equipment.
Background technology
In Computer Image Processing, image zooming refers to by the process that increases or the removal pixel is adjusted the size of digital picture.Compromise owing to doing between efficient and picture quality (for example smoothness and definition), image zooming is not a mediocre process.The instrument of active client processing picture is many, such as Photoshop and Mei Tu show show etc., can the User hobby carry out zoom operations to picture by these instruments.
The image zooming technology comprises that picture dwindles and two kinds of technology of picture amplification.The picture amplification generally is used for adopting a less picture to fill a larger screen, and when dimension of picture increased, the pixel that forms picture increased, and picture looks just to become and " soft ".Picture dwindles except being used for dwindling picture to adapt to the viewing area, more is for generation of the preview picture.The picture amplifying technique generally can adopt interpolation algorithm to realize.The picture technology of dwindling can realize 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 behind convergent-divergent, the quality of picture will inevitably be affected.With to JPEG(Joint Photographic Experts Group, JPEG (joint photographic experts group)) picture is reduced into example, to remove some pixels in the picture by the mode of sampling, this certainly will cause picture to blur, have the problems such as granular sensation, if the JPEG picture quality is poorer, the thumbnail that obtains is just fuzzyyer.
Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of processing method and corresponding treatment facility based on picture/mb-type based on picture/mb-type that overcomes the problems referred to above or address the above problem at least in part is provided.
According to one aspect of the present invention, a kind of processing method based on picture/mb-type is provided, comprise step: the type to the input picture is judged; Judge the input picture type be in the situation of colour picture, obtain the compression quality factor of the compression ratio of index color image; Colour picture is carried out convergent-divergent to be processed; And according to the compression quality factor of colour picture, the colour picture that obtains after convergent-divergent processed carries out image sharpening to be processed, and obtains exporting colour picture; Wherein, the indicated compression ratio of the described compression quality factor is higher, and the sharpening degree of image sharpening is lower.
According to a further aspect in the invention, provide a kind for the treatment of facility based on picture/mb-type, having comprised: judge module is suitable for the type of input picture is judged; Compression quality factor determination module, the type that is suitable for judging at judge module described input picture is in the situation of colour picture, obtains the compression quality factor of the compression ratio of index color image; The first Zoom module is suitable for that colour picture is carried out convergent-divergent and processes; And the sharpening module, being suitable for the compression quality factor according to colour picture, the colour picture that obtains after convergent-divergent is processed carries out image sharpening to be processed, and obtains exporting colour picture; Wherein, the indicated compression ratio of the described compression quality factor is higher, and the sharpening degree of image sharpening is lower.
According to the processing method based on picture/mb-type provided by the invention and equipment, by the type of input picture is judged, in situation about judging as colour picture, obtain the compression quality factor of this colour picture, carrying out image sharpening according to the colour picture after the compression quality factor pair convergent-divergent processing of colour picture processes, wherein the compression quality factor indicates the compression ratio of colour picture, that is to say, method and apparatus provided by the invention carries out image sharpening according to the compression ratio of colour picture to be processed, through after such processing, the definition of original inferior colour picture is largely increased.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of drawings
By reading hereinafter detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing only is used for the purpose of preferred implementation is shown, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts with identical reference symbol.In the accompanying drawings:
Fig. 1 shows according to an embodiment of the invention the flow chart based on the processing method of picture/mb-type;
Fig. 2 shows in accordance with another embodiment of the present invention the flow chart based on the processing method of picture/mb-type; And
Fig. 3 shows according to an embodiment of the invention the structural representation based on the treatment facility of picture/mb-type.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
Fig. 1 shows according to an embodiment of the invention the flow chart based on the processing method 100 of picture/mb-type.The method that present embodiment provides mainly solves is to be in the situation of colour picture in the type of judging the input picture, how this colour picture is carried out convergent-divergent and processes.As shown in Figure 1, method 100 starts from step S101, wherein the type of input picture is judged.Because the type difference of input picture causes the processing meeting done behind the follow-up convergent-divergent different, need in the method therefore at first the type of input picture to be judged that this deterministic process mainly is to determine whether the 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, determines that so then the type of this input picture is colour picture.
Subsequently, method 100 enters step S102, and the type of judging the input picture in step S101 is in the situation of colour picture, obtains the compression quality factor of the compression ratio of index color image in step S102.Colour picture in the current internet is all processed through compression in various degree, take the JPEG picture as example, 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 has been indicated the compression ratio of colour picture.If the compression quality factor of choosing is larger, can increase substantially compression ratio, but picture quality can be relatively poor; If the compression quality factor of choosing is less, the reconstruction quality of image is better, but compression ratio is lower.Therefore, the compression quality factor is a factor that characterizes colour picture picture quality.Judge the input picture type be in the situation of colour picture, obtain the compression quality factor of this colour picture, will use this compression quality factor in the subsequent step of this method.
Method 100 enters step S103 subsequently, wherein colour picture is carried out convergent-divergent and processes.After obtaining the compression quality factor of colour picture, according to interpolation or sampling algorithm, colour picture is carried out convergent-divergent process.The convergent-divergent of this step is processed and can be carried out according to existing method, does not repeat them here.
Should be noted in the discussion above that between step S102 and the S103 does not have ordinal relation, and two steps can be carried out simultaneously, first step S103 step S102 etc. then, and all these is within protection scope of the present invention.
Subsequently, in step S104, according to the compression quality factor of the colour picture that obtains at step S102, the colour picture that obtains after the convergent-divergent processing is carried out image sharpening process, obtain exporting colour picture.It is compensation and the radio-frequency component that increases image that the image sharpening that step S104 does is processed, and makes atural object border, edges of regions, lines, textural characteristics and fine structure feature in the image more clear and distinct.Because when carrying out the image sharpening processing, the noise section of picture can get enhancing to the same extent, and for the higher picture of compression ratio, its pixel loss situation is more for serious, noise is also corresponding larger, so this method is processed the image sharpening that the colour picture with different compression quality factors carries out in various degree.Particularly, the indicated compression ratio of the compression quality factor is higher, and the sharpening degree of image sharpening is lower, and the indicated compression ratio of the compression quality factor is lower, and the sharpening degree of image sharpening is higher.After such image sharpening processing, the definition of the output colour picture that obtains is largely increased.
Picture is carried out the method that convergent-divergent is processed according to what present embodiment provided, by the type of input picture is judged, in situation about judging as colour picture, obtain the compression quality factor of this colour picture, carrying out image sharpening according to the colour picture after the compression quality factor pair convergent-divergent processing of colour picture processes, wherein the compression quality factor indicates the compression ratio of colour picture, that is to say, the method that present embodiment provides is carried out image sharpening according to the compression ratio of colour picture and is processed, through after such processing, the definition of original inferior colour picture is largely increased.
Fig. 2 shows in accordance with another embodiment of the present invention the flow chart based on the processing method 200 of picture/mb-type.As shown in Figure 2, method 200 starts from step S201, wherein the type of input picture is judged.Because the type difference of input picture causes the processing meeting done behind the follow-up convergent-divergent different, need in the method therefore at first the type of input picture to be judged that this deterministic process mainly is to determine that the 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, determines that so then the type of this input picture is the gray scale picture, execution in step S202; If the color space of input picture is RGB, determine that so then the type of this input picture is colour picture, execution in step S204.
The type of judging the input picture in step S201 is in the situation of gray scale picture, and method 200 enters step S202, in step S202 the gray scale picture is carried out convergent-divergent and processes.According to interpolation or sampling algorithm, the gray scale picture is carried out convergent-divergent process.The convergent-divergent of this step is processed and can be carried out according to existing method, does not repeat them here.
In step S202 the gray scale picture is carried out after convergent-divergent processes, method 200 enters step S203, and the gray scale picture that obtains after wherein convergent-divergent being processed carries out histogram equalization to be processed, and obtains the output gray level picture.For the grey picture, this method adopts the histogram equalization method that it is processed, and can strengthen picture contrast.Histogram equalization is the method for utilizing image histogram that picture contrast is adjusted in the 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 the pictures, discloses the quantity that pixel occurs under each gray scale in the picture.According to the image aspects that these numerical value are drawn, can tentatively judge the exposure status of picture.No matter picture has abundant high light performance or over-exposed, and there perhaps have full thin section shadow or details to differentiate to be unclear, and image histogram can both show very intuitively.The histogram equalization method is by using cumulative function that gray value is carried out " adjustment " to realize the enhancing of contrast." central idea " that histogram equalization is processed is from becoming the even distribution in whole tonal ranges between certain gray area of relatively concentrating the grey level histogram of original image.Histogram equalization carries out Nonlinear extension to image exactly, redistributes image pixel value, makes the pixel quantity in certain tonal range roughly the same.Simple saying is exactly that the histogram distribution of Given Graph picture is changed over the histogram distribution that " evenly " distributes.
For a gray scale picture, establish n iThe number of times that expression gray scale i occurs, gray scale is that the pixel probability of occurrence of i is in the picture:
p x ( i ) = n i n , i∈0,...,L-1(1)
Wherein, L is grey all in the picture, and n is pixel count all in the picture, p xBe actually the histogram of this picture, it normalized in [0,1] scope.
C as corresponding to p xCumulative probability function, be defined as:
c ( i ) = Σ j = 0 i p x ( j ) - - - ( 2 )
C is the accumulative total normalization histogram of picture.
Create a variation function that form is y=T (x), it just produces a y for each value in the original image, and the cumulative probability function of y just can carry out linearisation in all values scope like this, and conversion formula is defined as:
y i=T(x i)=c(i)(3)
Note T with different grade mappings to [0,1] territory, for these values shine upons go back to their initial territories, simple transformation that need to be below result's application:
y i′=y i·(max-min)+min (4)
Wherein, max represents the gray scale maximum in the picture, and min represents the minimum gray value in the picture.
Owing to the gray scale picture is lost through pixel behind the convergent-divergent and is thickened, can make the pixel of picture tend to occupy whole possible gray scale and be evenly distributed by above-mentioned histogram equalization processing method, thereby reach the purpose that strengthens the contrast between picture prospect, background, so that the output gray level picture is more clear.
The above has described the method for using histogram equalization on the gray level image, but by this method being respectively applied to redness, green and the blue component of image RGB color value, thereby also can process coloured image.
The type of judging the input picture in step S201 is in the situation of colour picture, and method 200 enters step S204, obtains the compression quality factor of the compression ratio of index color image in step S204.Colour picture in the current internet is all processed through compression in various degree, for source and the effect that can better understand the compression quality factor, introduces the processing procedure of picture compression here as an example of the JPEG picture example.The JPEG picture compression mainly is divided into following four steps and finishes:
(1) color conversion.
Because JPEG only supports the data structure of YUV color mode, and does not support the data structure of RGB color mode, so before colour picture is compressed, the color mode of colour picture must be converted to the RGB color mode.
(2) dct transform.
Picture signal in the enterprising line translation of frequency domain, is isolated high-frequency information and low frequency information.Follow-up will the HFS (being image detail) of image the compression is to reach the purpose of compressing image data.
(3) quantize.
Because the code book that uses in the next code process all is integer, therefore need to the coefficient of frequency behind the dct transform be quantized, be converted into integer.In this course, can choose the compression quality factor, this compression quality factor has been indicated the compression ratio of colour picture.After carrying out quantification treatment according to the compression quality factor, the quantized value that obtains all is approximation, and between the data of original image difference has been arranged, and this difference is to cause the main cause of distortion after the image compression.Therefore, choosing of the compression quality factor is most important, if the compression quality factor of choosing is larger, can increase substantially compression ratio, but picture quality can be relatively poor; If the compression quality factor of choosing 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 the jpeg code implementor.
(4) coding.
Can find out from the process of front, be accomplished to coding from color conversion before, image is not further compressed, dct transform and quantize can be described as the preparation of doing for coding stage.Coding can adopt two kinds of mechanism: one is the run length encoding of 0 value; The 2nd, the entropy coding.In JPEG, adopt the song sequence of wandering, namely make element in " it " word arrangement image data matrix with the cornerwise normal direction of image data matrix.The advantage of doing like this be so that near the larger arrangement of elements in the image data matrix upper left corner, value in the front of stroke, and the image data matrix element that arrange the back of stroke is essentially 0 value.Run length encoding is coded system very simple and commonly used, does not repeat them here.Coding is actually a kind of coding method based on statistical property.In JPEG, allow to adopt huffman coding or arithmetic coding.
Compression process by above-mentioned JPEG picture can see that the compression quality factor can be controlled flexibly, and different realizations also has different definition to the compression quality factor, for instance:
IJG(Independent JPEG Group, independent JPEG group) the compression quality factor tolerance grade that adopts is 1 ~ 99, and the compression ratio of 1 indication picture is minimum, and the compression ratio of 99 indication pictures is the highest;
Photoshop(image processing software) defined 1 ~ 12 grade the compression quality factor;
The Apple(apple) defined 0 ~ 4 grade the compression quality factor;
Paint Shop Pro(image editing software) the compression quality factor tolerance grade that adopts also is 1 ~ 99, but with IJG by contrast, the compression ratio of 1 indication picture is the highest, the compression ratio of 99 indication pictures is minimum.
For the compression quality factor of above-mentioned several different definition, can be translated into unified tolerance grade.For example, after the compression quality factor of the content obtaining colour picture of analyzing colour picture, it can be converted into the tolerance grade of IJG definition, alternatively, just can realize this function by adopting the JPEGdump instrument.Need to prove that the present invention is not limited only to the compression quality factor is converted into the tolerance grade of IJG definition, can be converted into the tolerance grade of other types definition yet, the present invention does not limit this.
Method 200 enters step S205 subsequently, and wherein the form with colour picture is PNG form (Portable Network Graphic Format, streaming network graphical format) by original format conversion.Because the picture processing process of PNG form is harmless process, this method is chosen in the convergent-divergent processing and before the form (such as jpeg format) of colour picture is converted to the PNG form, with respect to other form, the colour picture of PNG form is carried out convergent-divergent process, can reduce the impact on definition.
Subsequently, in step S206, colour picture is carried out convergent-divergent process.Particularly, according to interpolation or sampling algorithm, colour picture is carried out convergent-divergent process.The convergent-divergent of step S206 is processed and can be carried out according to existing method, does not repeat them here.
In step S206 colour picture is carried out after convergent-divergent processes, method 200 enters step S207, and the form of the colour picture after wherein convergent-divergent being processed is original form by the PNG format conversion.In order to obtain less byte number, the colour picture after the convergent-divergent processing is converted to original form (such as jpeg format) again.
Above-mentioned steps S205 and step S207 are optional steps of the present invention, and the present invention also can be directly carries out convergent-divergent to the colour picture of unprocessed form and processes, and need not to carry out format conversion.But in the situation of carrying out format conversion, the definition of the colour picture that obtains can be more good.
Should be noted that; there is not ordinal relation between arbitrary step among step S204 and the step S205-S207; step S204 can with step S205-S207 in arbitrary step carry out simultaneously, carry out after arbitrary step that also can be in step S205-S207, all these is within protection scope of the present invention.
Subsequently, in step S208, the colour picture that obtains after the convergent-divergent processing is carried out process of convolution from the gaussian signal of the different sharpening degree of indication, obtain exporting colour picture.This method adopts the mode that colour picture and gaussian signal are carried out process of convolution to reach the purpose of image sharpening, wherein the indicated sharpening degree of gaussian signal is determined by the parameter in the gaussian signal, and the size of the parameter in the gaussian signal is to determine according to the compression quality factor of the colour picture that obtains at step S204.If colour picture is f (x, y), gaussian signal is g (r, σ), and the output colour picture that obtains through process of convolution so is:
R(x,y)=f(x,y)*g(r,σ)(5)
Wherein, r and σ are the parameters in the 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 according to the compression quality factor of colour picture and definite.
Take the compression quality factor Q of the tolerance grade of IJG definition as example:
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 are not carried out sharpening and are processed.
The concrete numerical value of the parameter of above-mentioned gaussian signal is one of embodiment provided by the invention, but can not be as being limitation of the present invention.
Picture is carried out the method that convergent-divergent is processed according to what present embodiment provided, by the type of input picture is judged, in situation about judging as the gray scale picture, gray scale picture after the convergent-divergent processing is carried out histogram equalization to be processed, make the pixel of gray scale picture tend to occupy whole possible gray scale and be evenly distributed, thereby reached the purpose that strengthens the contrast between picture prospect, background, so that the output gray level picture is more clear.And in situation about judging as colour picture, obtain the compression quality factor of this colour picture, carrying out image sharpening according to the colour picture after the compression quality factor pair convergent-divergent processing of colour picture processes, wherein the compression quality factor indicates the compression ratio of colour picture, that is to say, the method that present embodiment provides is processed the image sharpening that colour picture carries out in various degree according to the compression ratio of colour picture, through after such processing, the definition of original inferior picture is largely increased.Generally speaking, utilize method that present embodiment provides to process the convergent-divergent of the picture of any type and be optimized, so that the picture of convergent-divergent after processing is more clear, the method is specially adapted to picture is carried out the batch process of enterprise-level.
Fig. 3 shows according to an embodiment of the invention the structural representation based on the treatment facility of picture/mb-type.As shown in Figure 3, this image zooming equipment 300 comprises judge module 310, compression quality factor determination module 320, the first Zoom module 330 and sharpening module 340.
In image zooming equipment 300, judge module 310 receives the extraneous input picture that sends, and the type of input picture is judged.Because the type difference of input picture causes the processing meeting of doing behind the image zooming different, therefore judge module 310 needs at first the type of input picture to be judged in this equipment, and this deterministic process mainly is to determine that the 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, determines that so then the type of this input picture is the gray scale picture; If the color space of input picture is RGB, determine that so then the type of this input picture is colour picture.
The type that compression quality factor determination module 320 is judged the input picture at judge module 310 is in the situation of colour picture, obtains the compression quality factor of the compression ratio of index color image.Colour picture in the current internet is all processed through compression in various degree, take the JPEG picture as example, 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 be referring to the description among the said method embodiment.Can choose the compression quality factor in quantization step, this compression quality factor has been indicated the compression ratio of colour picture.If the compression quality factor of choosing is larger, can increase substantially compression ratio, but picture quality can be relatively poor; If the compression quality factor of choosing is less, the reconstruction quality of image is better, but compression ratio is lower.Therefore, the compression quality factor is a factor that characterizes colour picture picture quality.Judge the input picture type be in the situation of colour picture, compression quality factor determination module 320 obtains the compression quality factor of this colour picture.Alternatively, compression quality factor determination module 320 specifically is suitable for the compression quality factor by the content obtaining colour picture of analyzing colour picture, the compression quality factor is converted into the tolerance grade of IJG, for example by adopting the JPEGdump instrument just can realize this function.Afterwards, compression quality factor determination module 320 is exported to sharpening module 340 with the compression quality factor.
330 pairs of colour pictures of the first Zoom module carry out convergent-divergent to be processed.Particularly, the first Zoom module 330 carries out convergent-divergent to colour picture and processes according to interpolation or sampling algorithm.
Sharpening module 340 is carried out image sharpening to the colour picture that obtains after the convergent-divergent processing and is processed according to the compression quality factor of colour picture, obtains exporting colour picture.Wherein, the indicated compression ratio of the compression quality factor is higher, and the sharpening degree that sharpening module 340 is carried out image sharpening is lower.
Alternatively, sharpening module 340 can comprise: sharpening processing module 341 and parameter acquisition module 342, wherein, the colour picture that sharpening processing module 341 obtains after convergent-divergent is processed carries out process of convolution from the gaussian signal of the different sharpening degree of indication, obtains exporting colour picture and output; Parameter acquisition module 342 is determined the size of the parameter in the gaussian signal according to the compression quality factor of colour picture, and the indicated sharpening degree of gaussian signal is determined by the parameter in the gaussian signal.341 pairs of colour pictures of wherein sharpening processing module carry out detailed process that sharpening processes can be referring to the associated description among the said method embodiment.
Alternatively, image zooming equipment 300 can also comprise format converting module 350, the form that this format converting module 350 is suitable for colour picture is the PNG form by original format conversion, and the form of the colour picture that obtains after convergent-divergent processed is original form by the PNG format conversion.Because the picture processing process of PNG form is harmless process, this equipment is chosen in the convergent-divergent processing and before the form (such as jpeg format) of colour picture is converted to the PNG form, with respect to other form, the colour picture of PNG form is carried out convergent-divergent process, can reduce the impact on definition.
Further, image zooming equipment 300 can also comprise the second Zoom module 360 and histogram equalization processing module 370.Wherein, the type that the second Zoom module 360 is judged the input picture at judge module 310 is in the situation of gray scale picture, the gray scale picture is carried out convergent-divergent process.The second Zoom module 360 can according to interpolation or sampling algorithm, carry out convergent-divergent to the gray scale picture and process.The gray scale picture that obtains after 370 pairs of convergent-divergents of histogram equalization processing module are processed carries out histogram equalization to be processed, and obtains output gray level picture and output.For the grey picture, this equipment adopts the histogram equalization method that it is processed, and can strengthen picture contrast.370 pairs of gray scale pictures of histogram equalization processing module carry out detailed process that histogram equalization processes can be referring to the associated description of said method embodiment.
Picture is carried out the equipment that convergent-divergent is processed according to what present embodiment provided, by judge module the type of input picture is judged, in situation about judging as the gray scale picture, gray scale picture after the histogram equalization processing module is processed convergent-divergent carries out histogram equalization to be processed, make the pixel of gray scale picture tend to occupy whole possible gray scale and be evenly distributed, thereby reached the purpose that strengthens the contrast between picture prospect, background, so that the output gray level picture is more clear.And in situation about judging as colour picture, compression quality factor determination module obtains the compression quality factor of this colour picture, colour picture after the sharpening module is processed according to the compression quality factor pair convergent-divergent of colour picture carries out image sharpening to be processed, wherein the compression quality factor indicates the compression ratio of colour picture, that is to say, the equipment that present embodiment provides is processed the image sharpening that colour picture carries out in various degree according to the compression ratio of colour picture, through after such processing, the definition of original inferior picture is largely increased.Generally speaking, utilize equipment that present embodiment provides to process the convergent-divergent of the picture of any type and be optimized, so that the picture of convergent-divergent after processing is more clear, this equipment is specially adapted to picture is carried out the batch process of enterprise-level.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the specification that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be put into practice in the situation of these details not having.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 one or more in each inventive aspect, in the description 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 in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate clearly thus this embodiment into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment among the embodiment.Can be combined into a module or unit or assembly to the module among the embodiment or unit or assembly, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless in addition clearly statement, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this specification (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of the feature of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use in practice microprocessor or digital signal processor (DSP) to realize picture being carried out some or all some or repertoire of parts in the equipment that convergent-divergent processes according to the embodiment of the invention.The present invention can also be embodied as be used to part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation of the scope that does not break away from 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 is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title with these word explanations.

Claims (10)

1. processing method based on picture/mb-type comprises:
Type to the input picture is judged;
Be in the situation of colour picture in the type of judging described input picture, obtain the compression quality factor of the compression ratio of the described colour picture of indication;
Described colour picture is carried out convergent-divergent to be processed; And
According to the compression quality factor of described colour picture, the colour picture that obtains after the convergent-divergent processing is carried out image sharpening process, obtain exporting colour picture;
Wherein, the indicated compression ratio of the described compression quality factor is higher, and the sharpening degree of image sharpening is lower.
2. method according to claim 1, the described colour picture that obtains after convergent-divergent is processed carries out the step that image sharpening processes and comprises: the colour picture that obtains after convergent-divergent is processed carries out process of convolution with the gaussian signal of indicating different sharpening degree, obtain described output colour picture, wherein the indicated sharpening degree of gaussian signal is determined by the parameter in the gaussian signal, and the size of the parameter in the described gaussian signal is to determine according to the compression quality factor of described colour picture.
3. according to claim 1 to 2 each described methods, also comprise before processing at described convergent-divergent that colour picture is carried out: be the streaming network graphical format with the form of described colour picture by original format conversion;
Also comprise after the convergent-divergent processing described colour picture is carried out: the form of the colour picture that obtains after convergent-divergent is processed is converted to original form by the streaming network graphical format.
4. according to claim 1 to 3 each described methods, the described step of obtaining the compression quality factor of described colour picture comprises: the compression quality factor of the content obtaining colour picture by analyzing described colour picture is converted into the described compression quality factor tolerance grade of independent JPEG group.
5. according to claim 1 to 4 each described methods, also comprise:
Be in the situation of gray scale picture in the type of judging described input picture, described gray scale picture carried out convergent-divergent process;
The gray scale picture that obtains after the convergent-divergent processing is carried out histogram equalization process, obtain the output gray level picture.
6. treatment facility based on picture/mb-type comprises:
Judge module is suitable for the type of input picture is judged;
Compression quality factor determination module, the type that is suitable for judging at described judge module described input picture is in the situation of colour picture, obtains the compression quality factor of the compression ratio of the described colour picture of indication;
The first Zoom module is suitable for that described colour picture is carried out convergent-divergent and processes; And
The sharpening module is suitable for the compression quality factor according to described colour picture, and the colour picture that obtains after convergent-divergent is processed carries out image sharpening to be processed, and obtains exporting colour picture;
Wherein, the indicated compression ratio of the described compression quality factor is higher, and the sharpening degree that described sharpening module is carried out image sharpening is lower.
7. equipment according to claim 6, described sharpening module comprises:
The sharpening processing module, the colour picture that is suitable for obtaining after the convergent-divergent processing carries out process of convolution from the gaussian signal of the different sharpening degree of indication, obtains described output colour picture;
Parameter acquisition module is suitable for determining according to the compression quality factor of described colour picture the size of the parameter in the described gaussian signal, and the indicated sharpening degree of gaussian signal is determined by the parameter in the gaussian signal.
8. also comprise according to claim 6 or 7 described equipment:
Format converting module, the form that is suitable for described colour picture is the streaming network graphical format by original format conversion, and the form of the colour picture that obtains after convergent-divergent processed is converted to original form by the streaming network graphical format.
9. according to claim 6 to 8 each described equipment, described compression quality factor determination module specifically is suitable for the compression quality factor by the content obtaining colour picture of analyzing described colour picture, the described compression quality factor is converted into the tolerance grade of independent JPEG group.
10. according to claim 6 to 9 each described equipment, also comprise:
The second Zoom module, the type that is suitable for judging at described judge module described input picture is in the situation of gray scale picture, described gray scale picture is carried out convergent-divergent process;
The histogram equalization processing module is suitable for that the gray scale picture that obtains after the convergent-divergent processing is carried out histogram equalization and processes, and obtains the output gray level picture.
CN201210402441.5A 2012-10-19 2012-10-19 Image type based processing method and device Expired - Fee Related CN102868847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210402441.5A CN102868847B (en) 2012-10-19 2012-10-19 Image type based processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210402441.5A CN102868847B (en) 2012-10-19 2012-10-19 Image type based processing method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201410637869.7A Division CN104301578A (en) 2012-10-19 2012-10-19 Processing method and equipment based on image type

Publications (2)

Publication Number Publication Date
CN102868847A true CN102868847A (en) 2013-01-09
CN102868847B CN102868847B (en) 2014-12-10

Family

ID=47447424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210402441.5A Expired - Fee Related CN102868847B (en) 2012-10-19 2012-10-19 Image type based processing method and device

Country Status (1)

Country Link
CN (1) CN102868847B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883165A (en) * 2012-10-19 2013-01-16 北京奇虎科技有限公司 Picture zooming processing method and device
CN103606161A (en) * 2013-12-03 2014-02-26 山东中医药大学 Method and system for processing medical image
CN105513100A (en) * 2015-12-03 2016-04-20 广州一刻影像科技有限公司 Method for automatically selecting image compression quality and compressing image
WO2016101663A1 (en) * 2014-12-25 2016-06-30 中兴通讯股份有限公司 Image compression method and device
CN109255796A (en) * 2018-09-07 2019-01-22 浙江大丰实业股份有限公司 Stage equipment security solution platform
CN110692245A (en) * 2017-09-28 2020-01-14 谷歌有限责任公司 Image processing for compression
CN110728631A (en) * 2019-09-03 2020-01-24 北京爱博同心医学科技有限公司 Image dynamic contrast enhancement method based on augmented reality and augmented reality glasses

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1374789A (en) * 2001-02-21 2002-10-16 胡笑平 Digital image compression method
CN1507741A (en) * 2001-03-30 2004-06-23 �´�ӡ�ռ��� Automated sharpening of images for soft proofing
US20070162617A1 (en) * 2006-01-09 2007-07-12 Lexmark International, Inc. Methods and systems for dynamic scan compression
CN101076079A (en) * 2007-06-14 2007-11-21 华为技术有限公司 Method and apparatus for enhancing video-signal image
CN101502097A (en) * 2006-08-07 2009-08-05 高通股份有限公司 Adaptive spatial image filter for filtering image information
CN101667405A (en) * 2009-08-14 2010-03-10 西安龙腾微电子科技发展有限公司 Image sharpening method for TFT-LCD color display

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1374789A (en) * 2001-02-21 2002-10-16 胡笑平 Digital image compression method
CN1507741A (en) * 2001-03-30 2004-06-23 �´�ӡ�ռ��� Automated sharpening of images for soft proofing
US20070162617A1 (en) * 2006-01-09 2007-07-12 Lexmark International, Inc. Methods and systems for dynamic scan compression
CN101502097A (en) * 2006-08-07 2009-08-05 高通股份有限公司 Adaptive spatial image filter for filtering image information
CN101076079A (en) * 2007-06-14 2007-11-21 华为技术有限公司 Method and apparatus for enhancing video-signal image
CN101667405A (en) * 2009-08-14 2010-03-10 西安龙腾微电子科技发展有限公司 Image sharpening method for TFT-LCD color display

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883165A (en) * 2012-10-19 2013-01-16 北京奇虎科技有限公司 Picture zooming processing method and device
CN103606161A (en) * 2013-12-03 2014-02-26 山东中医药大学 Method and system for processing medical image
WO2016101663A1 (en) * 2014-12-25 2016-06-30 中兴通讯股份有限公司 Image compression method and device
CN105513100A (en) * 2015-12-03 2016-04-20 广州一刻影像科技有限公司 Method for automatically selecting image compression quality and compressing image
CN105513100B (en) * 2015-12-03 2018-07-17 广州一刻影像科技有限公司 A method of automatically selecting picture compression quality and compressed picture
CN110692245A (en) * 2017-09-28 2020-01-14 谷歌有限责任公司 Image processing for compression
CN109255796A (en) * 2018-09-07 2019-01-22 浙江大丰实业股份有限公司 Stage equipment security solution platform
CN109255796B (en) * 2018-09-07 2022-01-28 浙江大丰实业股份有限公司 Safety analysis platform for stage equipment
CN110728631A (en) * 2019-09-03 2020-01-24 北京爱博同心医学科技有限公司 Image dynamic contrast enhancement method based on augmented reality and augmented reality glasses

Also Published As

Publication number Publication date
CN102868847B (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN102868847B (en) Image type based processing method and device
US9501818B2 (en) Local multiscale tone-mapping operator
Kou Digital image compression: algorithms and standards
CN102883165B (en) Image zooming processing method and equipment
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
JP6529504B2 (en) Methods and devices for encoding high dynamic range images and / or decoding bitstreams
US20160012573A1 (en) Method and device for selecting an image dynamic range conversion operator
JP2018511193A (en) Method and apparatus for inverse tone mapping of pictures
RU2518932C2 (en) Reduced dc gain mismatch and dc leakage in overlap transform processing
CN106157247A (en) A kind of image processing method and system
KR20190000811A (en) Method for tone adapting an image to a target peak luminance lt of a target display device
CN112399069B (en) Image encoding method and apparatus, storage medium, and electronic device
US20110110600A1 (en) Method for compressing images and a format for compressed images
Richter On the integer coding profile of JPEG XT
CN107027027B (en) Image encoding method, image decoding method, image encoding device, image decoding device, and image encoding/decoding system
US11463716B2 (en) Buffers for video coding in palette mode
CN104301578A (en) Processing method and equipment based on image type
Tsagkatakis et al. Recovery of quantized compressed sensing measurements
Bhosale et al. Study on deep CNN as preprocessing for video compression
CN102215400B (en) Buffer size reduction for wireless analog TV receivers
US8260070B1 (en) Method and system to generate a compressed image utilizing custom probability tables
Minami et al. Inverse halftoning using super‐resolution image processing
Mietens et al. New DCT computation algorithm for video quality scaling
Kwon et al. Fast Opto-electrical Transformation of HDR Videos based on a LUT for Piecewise Linear Approximation
KR20170046279A (en) Decoding apparatus, electronic apparatus and the controlling method thereof

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: 20141210

Termination date: 20211019

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