CN107633481A - Image processing method, device, computing device and storage medium based on layering - Google Patents
Image processing method, device, computing device and storage medium based on layering Download PDFInfo
- Publication number
- CN107633481A CN107633481A CN201710851929.9A CN201710851929A CN107633481A CN 107633481 A CN107633481 A CN 107633481A CN 201710851929 A CN201710851929 A CN 201710851929A CN 107633481 A CN107633481 A CN 107633481A
- Authority
- CN
- China
- Prior art keywords
- image
- layer data
- dim spot
- information
- shadow
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Image Processing (AREA)
Abstract
The invention discloses a kind of image processing method based on layering, device, computing device and computer-readable storage medium, wherein, the image processing method based on layering includes:Obtain the first pending image;Details layer data is extracted from the first image;According to the details layer data extracted, dim spot area is determined;Raising brightness processed is carried out to pixel corresponding to dim spot area in the first image, obtains the second image;The shooting triggered according to user instructs, and preserves the second image.According to technical scheme provided by the invention, the image after can easily and quickly being handled, image processing efficiency is improved, optimize image procossing mode, beautified image display effect.
Description
Technical field
The present invention relates to image processing field, and in particular to a kind of image processing method based on layering, device, calculating are set
Standby and computer-readable storage medium.
Background technology
With the development of science and technology, the technology of image capture device also increasingly improves.The image collected becomes apparent from, differentiated
Rate, display effect also greatly improve.But existing image possibly can not meet the needs of user, user wishes to carry out U.S. to image
Change is handled.In the prior art, it is to carry out landscaping treatment to image by the way of adaptive fuzzy mostly, but uses this
The display effect of mode image resulting after handling is bad, and image is not clear enough.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State the image processing method based on layering, device, computing device and the computer-readable storage medium of problem.
According to an aspect of the invention, there is provided a kind of image processing method based on layering, this method include:
Obtain the first pending image;
Details layer data is extracted from the first image;
According to the details layer data extracted, dim spot area is determined;
Raising brightness processed is carried out to pixel corresponding to dim spot area in the first image, obtains the second image.
Further, according to the details layer data extracted, determine that dim spot area further comprises:
Using default enhancing function, enhancing processing is carried out to the details layer data extracted, obtains strengthening data;
According to enhancing data, dim spot probabilistic information is obtained, dim spot probabilistic information have recorded for reflecting each pixel category
In the probability of dim spot;
According to dim spot probabilistic information, dim spot area is determined.
Further, pixel corresponding to dim spot area carries out raising brightness processed in the first image, obtains second
Before image, this method also includes:
Shadow layer data is extracted from the first image;
Shadow contrast processing, the shadow layer data after being handled are carried out to the shadow layer data extracted;
Shadow layer data after processing and details layer data are subjected to fusion treatment, obtain the first figure after fusion treatment
Picture;
Raising brightness processed is carried out to pixel corresponding to dim spot area in the first image, obtaining the second image is specially:
According to dim spot probabilistic information, pixel corresponding to dim spot area in the first image after fusion treatment improve at brightness
Reason, obtains the second image.
Further, shadow contrast processing, the shadow layer data after being handled are carried out to the shadow layer data extracted
Further comprise:
Shadow layer data is projected into pre-set color space, obtains monochrome information and chrominance information;
Shadow contrast processing, the monochrome information after being handled are carried out to monochrome information;
According to the monochrome information and chrominance information after processing, the shadow layer data after being handled.
Further, pre-set color space is YUV color spaces;Chrominance information includes:First chrominance information and the second color
Spend information.
Further, the first chrominance information is hue information, and the second chrominance information is saturation infromation;
According to the monochrome information and chrominance information after processing, the shadow layer data after being handled further comprises:
Monochrome information after processing, hue information and saturation infromation are subjected to fusion treatment, the shadow after being handled
Layer data.
Further, details layer data is extracted from the first image to further comprise:Using Steerable filter algorithm, from
Details layer data is extracted in one image.
Further, shadow layer data is extracted from the first image to further comprise:Using Steerable filter algorithm, from
Shadow layer data is extracted in one image.
Further, the first pending image is obtained to further comprise:
The first pending image that real-time image acquisition collecting device is caught.
Further, pixel corresponding to dim spot area carries out raising brightness processed in the first image, obtains second
After image, this method also includes:
Show the second image.
Further, the second image of display further comprises:
The image of real-time display second.
Further, pixel corresponding to dim spot area carries out raising brightness processed in the first image, obtains second
After image, this method also includes:
The shooting triggered according to user instructs, and preserves the second image.
Further, pixel corresponding to dim spot area carries out raising brightness processed in the first image, obtains second
After image, this method also includes:
According to user trigger record command, preserve by the second image as group of picture into video.
According to another aspect of the present invention, there is provided a kind of image processing apparatus based on layering, the device include:
Acquisition module, suitable for obtaining the first pending image;
Extraction module, suitable for extracting details layer data from the first image;
Determining module, suitable for the details layer data extracted according to extraction module, determine dim spot area;
Brightness improves module, suitable for carrying out raising brightness processed to pixel corresponding to dim spot area in the first image, obtains
To the second image.
Further, it is determined that module is further adapted for:
Using default enhancing function, the details layer data extracted to extraction module carries out enhancing processing, obtains strengthening number
According to;
According to enhancing data, dim spot probabilistic information is obtained, dim spot probabilistic information have recorded for reflecting each pixel category
In the probability of dim spot;
According to dim spot probabilistic information, dim spot area is determined.
Further, extraction module is further adapted for:Shadow layer data is extracted from the first image;The device also wraps
Include:
Shadow contrast module, suitable for carrying out shadow contrast processing, the light after being handled to the shadow layer data extracted
Shadow layer data;
Fusion Module, suitable for the shadow layer data after processing and details layer data are carried out into fusion treatment, obtain at fusion
The first image after reason;
Brightness improves module and is further adapted for:According to dim spot probabilistic information, to dim spot in the first image after fusion treatment
Pixel corresponding to region carries out raising brightness processed, obtains the second image.
Further, shadow contrast module is further adapted for:
Shadow layer data is projected into pre-set color space, obtains monochrome information and chrominance information;
Shadow contrast processing, the monochrome information after being handled are carried out to monochrome information;
According to the monochrome information and chrominance information after processing, the shadow layer data after being handled.
Further, pre-set color space is YUV color spaces;Chrominance information includes:First chrominance information and the second color
Spend information.
Further, the first chrominance information is hue information, and the second chrominance information is saturation infromation;
Shadow contrast module is further adapted for:Monochrome information after processing, hue information and saturation infromation are melted
Conjunction is handled, the shadow layer data after being handled.
Further, extraction module is further adapted for:Using Steerable filter algorithm, levels of detail is extracted from the first image
Data.
Further, extraction module is further adapted for:Using Steerable filter algorithm, shadow layer is extracted from the first image
Data.
Further, acquisition module is further adapted for:
The first pending image that real-time image acquisition collecting device is caught.
Further, the device also includes:
Display module, suitable for showing the second image.
Further, display module is further adapted for:The image of real-time display second.
Further, the device also includes:
First preserving module, suitable for the shooting instruction triggered according to user, preserve the second image.
Further, the device also includes:
Second preserving module, suitable for the record command triggered according to user, preserve by the second image as group of picture into
Video.
According to another aspect of the invention, there is provided a kind of computing device, including:Processor, memory, communication interface and
Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory is used to deposit an at least executable instruction, the executable instruction figure based on layering that makes computing device above-mentioned
Operated as corresponding to processing method.
In accordance with a further aspect of the present invention, there is provided a kind of computer-readable storage medium, be stored with least one in storage medium
Executable instruction, executable instruction make computing device as described above based on operation corresponding to the image processing method of layering.
According to technical scheme provided by the invention, the first pending image is obtained, is then extracted from the first image
Details layer data, then according to the details layer data extracted, dim spot area is determined, to corresponding to dim spot area in the first image
Pixel carries out raising brightness processed, obtains the second image.Using technical scheme provided by the invention, pass through the levels of detail of image
Data, the dim spot area of image can be accurately determined, raising brightness processed is carried out to pixel corresponding to dim spot area, can
Image after easily and quickly being handled, improves image processing efficiency, optimizes image procossing mode, has beautified image
Display effect.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the schematic flow sheet of the image processing method according to an embodiment of the invention based on layering;
Fig. 2 shows the schematic flow sheet of the image processing method in accordance with another embodiment of the present invention based on layering;
Fig. 3 shows the structured flowchart of the image processing apparatus according to an embodiment of the invention based on layering;
Fig. 4 shows the structured flowchart of the image processing apparatus in accordance with another embodiment of the present invention based on layering;
Fig. 5 shows a kind of structural representation of computing device according to embodiments of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Fig. 1 shows the schematic flow sheet of the image processing method according to an embodiment of the invention based on layering, such as
Shown in Fig. 1, this method comprises the following steps:
Step S100, obtain the first pending image.
Specifically, the first pending image can be the image in the image or website that user oneself shoots,
The image that other users are shared is can also be, is not limited herein.When user wants to beautify the first image, for example,
Want to make the skin of people in image to seem tender, pale, first image can be obtained in the step s 100.
Step S101, details layer data is extracted from the first image.
In order to accurately determine out dim spot area, in step S101, the details number of plies is extracted from the first image
According to.Wherein, details layer data reflects the edge and details of the first image, for example, levels of detail data are included in the first image
High-frequency information.
Step S102, according to the details layer data extracted, determine dim spot area.
After details layer data is extracted, the details layer data of extraction is handled, determines dim spot area.Wherein,
Dim spot area is the region that is made up of dim spot, and dim spot is the dark pixel of color.
Step S103, raising brightness processed is carried out to pixel corresponding to dim spot area in the first image, obtains the second figure
Picture.
Specifically, pixel corresponding to dim spot area in the first image is improved using predetermined luminance enhancing algorithm
Brightness processed, it is improved the brightness of pixel corresponding to dim spot area, so as to obtain the second image, the second image is to carry
The image obtained after high brightness processing.Wherein, those skilled in the art can set predetermined luminance to strengthen algorithm according to being actually needed,
Do not limit herein.For example, predetermined luminance enhancing algorithm can be piecewise linear transform algorithm or nonlinear transformation algorithm.
Because the brightness of pixel corresponding to dim spot area is improved, therefore compared with the first image, the second image
With preferable image display effect.So that the first image includes face as an example, using method provided by the invention, in step
In S103, raising brightness processed is carried out to pixel corresponding to dim spot area in the first image, not only can effectively remove figure
Blackening, freckle as on face etc., can also make face in image skin seem it is more pale, naturally, with preferable
Image display effect.
According to the present embodiment provide the image processing method based on layering, obtain the first pending image, then from
Details layer data is extracted in first image, then according to the details layer data extracted, dim spot area is determined, to the first image
Pixel carries out raising brightness processed corresponding to middle dim spot area, obtains the second image.Using technical scheme provided by the invention,
By the details layer data of image, the dim spot area of image can be accurately determined, pixel corresponding to dim spot area is carried out
Brightness processed is improved, the image after can easily and quickly being handled, image processing efficiency is improved, optimizes at image
Reason mode, has beautified image display effect.
Fig. 2 shows the schematic flow sheet of the image processing method in accordance with another embodiment of the present invention based on layering,
As shown in Fig. 2 this method comprises the following steps:
Step S200, the first pending image that real-time image acquisition collecting device is caught.
Image capture device illustrates by taking mobile terminal as an example in the present embodiment.Get mobile terminal camera in real time
The first image captured, wherein, the first image can be arbitrary image, for example includes the image of landscape or include human body
Image etc., do not limit herein.
Step S201, shadow layer data and details layer data are extracted from the first image.
Specifically, using Steerable filter algorithm, shadow layer data and details layer data are extracted from the first image.Profit
With Steerable filter algorithm, the first image is smoothed, obtains shadow layer data and details layer data.Wherein, shadow layer
Data reflect the basic structure of the first image, and details layer data reflects the edge and details of the first image, for example, shadow layer
The data concretely intermediate frequency information in shadow tomographic image, including the first image;Details layer data concretely details tomographic image,
Including the high-frequency information in the first image.
Step S202, using default enhancing function, enhancing processing is carried out to the details layer data extracted, obtain strengthening number
According to.
Wherein, it is the data obtained by being carried out to details layer data after enhancing processing to strengthen data.Those skilled in the art
It can not limited herein according to the default enhancing function of selection is actually needed.For example, default enhancing function can be gray scale stretching algorithm
Or algorithm of histogram equalization etc..Specifically, gray scale stretching algorithm is also known as contrast stretching algorithm, and it uses segmentation
Linear transformation function, the dynamic range of gray level when can improve image procossing, can selectively be drawn using gray scale stretching algorithm
Stretch certain section of gray scale interval.Algorithm of histogram equalization is from certain section of gray area for comparing concentration the grey level histogram of original image
Between become being uniformly distributed in whole tonal ranges.Histogram equalization is exactly to carry out Nonlinear extension to image, is divided again
With image pixel value, make the pixel quantity in certain tonal range roughly the same.
Step S203, according to enhancing data, obtain dim spot probabilistic information.
After enhancing data have been obtained, so that it may enhancing data are analyzed, obtain dim spot probabilistic information, wherein, secretly
Point probabilistic information have recorded for reflecting that each pixel belongs to the probability of dim spot.
Step S204, according to dim spot probabilistic information, determine dim spot area.
Specifically, pixel of the probability in dim spot probabilistic information higher than predetermined probabilities threshold value can be defined as dim spot, then
Dim spot area is determined according to dim spot.
Step S205, shadow contrast processing, the shadow layer data after being handled are carried out to the shadow layer data extracted.
In order to prevent color of image distortion, shadow contrast processing can be carried out to monochrome information corresponding to shadow layer data, and
Chrominance information corresponding to shadow layer data is not handled.Specifically, shadow layer data is projected into pre-set color space,
Obtain monochrome information and chrominance information;Shadow contrast processing, the monochrome information after being handled are carried out to monochrome information;According to place
Monochrome information and chrominance information after reason, the shadow layer data after being handled.In an instantiation, pre-set color space
For YUV color spaces, resulting monochrome information is Y information component after shadow layer data is projected to YUV color spaces, resulting
Chrominance information include the first chrominance information and the second chrominance information, wherein, the first chrominance information is hue information, the second colourity
Information is saturation infromation, and the two chrominance informations are respectively U information components and V information component, and specifically, monochrome information is entered
The contrast of row shadow is handled, the monochrome information after being handled, and then believes the monochrome information after processing, hue information and saturation degree
Breath carries out fusion treatment, the shadow layer data after being handled, that is, by the Y information component after processing, U information components and V
Information component carries out fusion treatment, the shadow layer data after being handled.
Wherein, shadow contrast processing can be carried out to monochrome information, improve shadow pair by way of stretching gray scale interval
Than the monochrome informations after being handled, the monochrome information after processing and chrominance information then being carried out into fusion treatment, handled
Shadow layer data afterwards.
Step S206, the shadow layer data after processing and details layer data are subjected to fusion treatment, after obtaining fusion treatment
The first image.
After the shadow layer data after being handled, the shadow layer data after processing is melted with details layer data
Conjunction is handled, and obtains the first image after fusion treatment.
Step S207, according to dim spot probabilistic information, to pixel corresponding to dim spot area in the first image after fusion treatment
Point carries out raising brightness processed, obtains the second image.
Wherein, algorithm and dim spot probabilistic information can be strengthened according to predetermined luminance, to dark in the first image after fusion treatment
Pixel corresponding to point region carries out raising brightness processed, obtains the second image.Specifically, can be by probability in dim spot probabilistic information
The brightness of high pixel improve it is more, by the brightness of the low pixel of probability in dim spot probabilistic information improve few one
A bit, the fuzzy sense that loss of detail is brought can be effectively made up in this way, image is kept clear, beautified image and shown
Show effect.
Step S208, the image of real-time display second.
The second obtained image is shown in real time, user can directly be seen that to obtained after the first image procossing
Two images.After the second image is obtained, the first image caught is replaced using the second image at once and is shown, typically 1/24
It is replaced within second, for a user, relatively short due to replacing the time, human eye is not discovered significantly, equivalent to real-time
The image of display second.
Step S209, the shooting triggered according to user instruct, and preserve the second image.
After the second image is shown, the shooting that can also be triggered according to user instructs, and preserves the second image.As user clicks on
The shooting push button of camera, triggering shooting instruction, the second image of display is preserved.
Step S210, according to user trigger record command, preserve by the second image as group of picture into video.
When showing the second image, can also be preserved according to the record command of user's triggering by the second image as frame figure
As the video of composition.As user clicks on the recording button of camera, triggering record command, using the second image of display as in video
Two field picture preserved, so as to preserve multiple second images as group of picture into video.
Step S209 and step S210 is the optional step of the present embodiment, and in the absence of perform sequencing, according to
The different instruction selection of family triggering performs corresponding step.
The image processing method based on layering provided according to the present embodiment, is divided into shadow by way of layering by image
Layer data and details layer data, shadow contrast processing is carried out to monochrome information corresponding to the shadow layer data of image, improves figure
The shadow contrast of picture, effectively prevent color of image distortion, helps to make up the fuzzy sense that loss of detail is brought;And based on by
The dim spot probabilistic information that levels of detail data analysis obtains, the dim spot area of image can be accurately determined, it is corresponding to dim spot area
Pixel carry out raising brightness processed, the image after can easily and quickly being handled, improve image processing efficiency,
Image procossing mode is optimized, has further beautified image display effect.
Fig. 3 shows the structured flowchart of the image processing apparatus according to an embodiment of the invention based on layering, such as Fig. 3
Shown, the device includes:Acquisition module 310, extraction module 320, determining module 330 and raising brightness module 340.
Acquisition module 310 is suitable to:Obtain the first pending image.
Extraction module 320 is suitable to:Details layer data is extracted from the first image.
Determining module 330 is suitable to:The details layer data extracted according to extraction module 320, determines dim spot area.
Brightness improves module 340 and is suitable to:Raising brightness processed is carried out to pixel corresponding to dim spot area in the first image,
Obtain the second image.
Specifically, brightness, which improves module 340, can utilize predetermined luminance enhancing algorithm corresponding to dim spot area in the first image
Pixel carry out raising brightness processed, be improved the brightness of pixel corresponding to dim spot area, so as to obtain the second figure
Picture.
The image processing apparatus based on layering provided according to the present embodiment, acquisition module obtain the first pending figure
Picture, extraction module extract details layer data from the first image, and determining module is according to the details layer data extracted, it is determined that secretly
Point region, brightness improve module and raising brightness processed are carried out to pixel corresponding to dim spot area in the first image, obtain second
Image.Using technical scheme provided by the invention, by the details layer data of image, the dim spot area of image can be accurately determined
Domain, raising brightness processed is carried out to pixel corresponding to dim spot area, the image after can easily and quickly being handled, carried
High image processing efficiency, optimizes image procossing mode, has beautified image display effect.
Fig. 4 shows the structured flowchart of the image processing apparatus in accordance with another embodiment of the present invention based on layering, such as
Shown in Fig. 4, the device includes:Acquisition module 410, extraction module 420, determining module 430, shadow contrast module 440, fusion mould
Block 450, brightness improve module 460, display module 470, the first preserving module 480 and the second preserving module 490.
Acquisition module 410 is suitable to:The first pending image that real-time image acquisition collecting device is caught.
Image capture device illustrates by taking mobile terminal as an example in the present embodiment.Acquisition module 410 gets shifting in real time
The first image that dynamic terminal camera captures, wherein, the first image can be arbitrary image.
Extraction module 420 is suitable to:Shadow layer data and details layer data are extracted from the first image.
Alternatively, extraction module 420 is further adapted for:Using Steerable filter algorithm, shadow is extracted from the first image
Layer data and details layer data.
Determining module 430 is suitable to:Using default enhancing function, the details layer data extracted to extraction module 420 is carried out
Enhancing is handled, and obtains strengthening data;According to enhancing data, dim spot probabilistic information is obtained, dim spot probabilistic information have recorded for anti-
Reflect the probability that each pixel belongs to dim spot;According to dim spot probabilistic information, dim spot area is determined.
Shadow contrast module 440 is suitable to:Shadow contrast processing is carried out to the shadow layer data extracted, after being handled
Shadow layer data.
Specifically, shadow contrast module 440 is further adapted for:Shadow layer data is projected into pre-set color space, obtained
To monochrome information and chrominance information;Shadow contrast processing, the monochrome information after being handled are carried out to monochrome information;According to processing
Monochrome information and chrominance information afterwards, the shadow layer data after being handled.In an instantiation, pre-set color space is
YUV color spaces, resulting monochrome information is Y information component after shadow layer data is projected to YUV color spaces, resulting
Chrominance information includes the first chrominance information and the second chrominance information, wherein, the first chrominance information is hue information, and the second colourity is believed
It is respectively U information components and V information component, specifically, shadow contrast module to cease for saturation infromation, the two chrominance informations
440 pairs of monochrome informations carry out shadow contrast processing, the monochrome information after being handled, then by the monochrome information after processing, color
Adjust information to carry out fusion treatment, the shadow layer data after being handled with saturation infromation, that is, the Y information after processing is divided
Amount, U information components and V information component carry out fusion treatment, the shadow layer data after being handled.
Fusion Module 450 is suitable to:Shadow layer data after processing and details layer data are subjected to fusion treatment, merged
The first image after processing.
Brightness improves module 460 and is suitable to:According to dim spot probabilistic information, to dim spot area in the first image after fusion treatment
Corresponding pixel carries out raising brightness processed, obtains the second image.
Wherein, brightness, which improves module 460, to strengthen algorithm and dim spot probabilistic information according to predetermined luminance, after fusion treatment
The first image in pixel corresponding to dim spot area carry out raising brightness processed, obtain the second image.Specifically, can be by dim spot
The brightness of the high pixel of probability improves more in probabilistic information, by the bright of the low pixel of probability in dim spot probabilistic information
Degree improves ground less, can effectively make up the problem of loss of detail is brought in this way, image is kept clear, beautiful
Image display effect is changed.
Display module 470 is suitable to:Show the second image.
Alternatively, display module 470 is further adapted for:The image of real-time display second.Display module 470 will obtain second
Image is shown that user can directly be seen that the second image to being obtained after the first image procossing in real time.Mould is improved in brightness
After block 460 obtains the second image, display module 470 is replaced the first image caught using the second image and shown at once, and one
As be replaced within 1/24 second, for a user, due to replace the time it is relatively short, human eye is not discovered significantly, phase
When in the second image of real-time display of display module 470.
First preserving module 480 is suitable to:The shooting triggered according to user instructs, and preserves the second image.
After the second image is shown, the shooting that the first preserving module 480 can trigger according to user instructs, and preserves the second figure
Picture.Such as the shooting push button of user's click camera, triggering shooting instruction, the first preserving module 480 carries out the second image of display
Preserve.
Second preserving module 490 is suitable to:The record command triggered according to user, is preserved by the second image as group of picture
Into video.
When showing the second image, the second preserving module 490 can be preserved by second according to the record command of user's triggering
Image as group of picture into video.As user clicks on the recording button of camera, triggering record command, the second preserving module
490 are preserved the second image of display as the two field picture in video, so as to preserve multiple second images as two field picture
The video of composition.
According to the first preserving module 480 and the second preserving module 490 corresponding to the different instruction execution that user triggers.
The image processing apparatus based on layering provided according to the present embodiment, is divided into shadow by way of layering by image
Layer data and details layer data, shadow contrast processing is carried out to monochrome information corresponding to the shadow layer data of image, improves figure
The shadow contrast of picture, effectively prevent color of image distortion, helps to make up the fuzzy sense that loss of detail is brought;And based on by
The dim spot probabilistic information that levels of detail data analysis obtains, the dim spot area of image can be accurately determined, it is corresponding to dim spot area
Pixel carry out raising brightness processed, the image after can easily and quickly being handled, improve image processing efficiency,
Image procossing mode is optimized, has further beautified image display effect.
Present invention also offers a kind of nonvolatile computer storage media, computer-readable storage medium is stored with least one can
Execute instruction, executable instruction can perform the image processing method based on layering in above-mentioned any means embodiment.
Fig. 5 shows a kind of structural representation of computing device according to embodiments of the present invention, the specific embodiment of the invention
The specific implementation to computing device does not limit.
As shown in figure 5, the computing device can include:Processor (processor) 502, communication interface
(Communications Interface) 504, memory (memory) 506 and communication bus 508.
Wherein:
Processor 502, communication interface 504 and memory 506 complete mutual communication by communication bus 508.
Communication interface 504, for being communicated with the network element of miscellaneous equipment such as client or other servers etc..
Processor 502, for configuration processor 510, it can specifically perform the above-mentioned image processing method based on layering and implement
Correlation step in example.
Specifically, program 510 can include program code, and the program code includes computer-managed instruction.
Processor 502 is probably central processor CPU, or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or it is arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that computing device includes, can be same type of processor, such as one or more CPU;Also may be used
To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 506, for depositing program 510.Memory 506 may include high-speed RAM memory, it is also possible to also include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 510 specifically can be used for so that processor 502 perform in above-mentioned any means embodiment based on layering
Image processing method.The specific implementation of each step may refer in the above-mentioned image procossing embodiment based on layering in program 510
Corresponding steps and unit in corresponding description, will not be described here.It is apparent to those skilled in the art that it is
The convenience of description the equipment of foregoing description and the specific work process of module, may be referred in preceding method embodiment with succinctly
Corresponding process description, will not be repeated here.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) are come one of some or all parts in realizing according to embodiments of the present invention
A little or repertoire.The present invention is also implemented as setting for performing some or all of method as described herein
Standby or program of device (for example, computer program and computer program product).Such program for realizing the present invention can deposit
Storage on a computer-readable medium, or can have the form of one or more signal.Such signal can be from because of spy
Download and obtain on net website, either provide on carrier signal or provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Claims (10)
1. a kind of image processing method based on layering, methods described include:
Obtain the first pending image;
Details layer data is extracted from described first image;
According to the details layer data extracted, dim spot area is determined;
Raising brightness processed is carried out to pixel corresponding to dim spot area in described first image, obtains the second image.
2. according to the method for claim 1, wherein, the details layer data that the basis extracts, determine that dim spot area enters
One step includes:
Using default enhancing function, enhancing processing is carried out to the details layer data extracted, obtains strengthening data;
According to the enhancing data, dim spot probabilistic information is obtained, the dim spot probabilistic information have recorded for reflecting each pixel
Point belongs to the probability of dim spot;
According to the dim spot probabilistic information, dim spot area is determined.
3. method according to claim 1 or 2, wherein, it is described to described first image in picture corresponding to dim spot area
Vegetarian refreshments carries out raising brightness processed, and before obtaining the second image, methods described also includes:
Shadow layer data is extracted from described first image;
Shadow contrast processing, the shadow layer data after being handled are carried out to the shadow layer data extracted;
Shadow layer data after the processing and the details layer data are subjected to fusion treatment, obtain first after fusion treatment
Image;
It is described that raising brightness processed is carried out to pixel corresponding to dim spot area in described first image, it is specific to obtain the second image
For:According to the dim spot probabilistic information, pixel corresponding to dim spot area is carried out in first image to after fusion treatment
Brightness processed is improved, obtains the second image.
4. according to the method described in claim any one of 1-3, wherein, the described pair of shadow layer data extracted carries out shadow pair
Than processing, the shadow layer data after being handled further comprises:
The shadow layer data is projected into pre-set color space, obtains monochrome information and chrominance information;
Shadow contrast processing, the monochrome information after being handled are carried out to the monochrome information;
According to the monochrome information after processing and the chrominance information, the shadow layer data after being handled.
5. according to the method described in claim any one of 1-4, wherein, the pre-set color space is YUV color spaces;It is described
Chrominance information includes:First chrominance information and the second chrominance information.
6. according to the method described in claim any one of 1-5, wherein, first chrominance information is hue information, described
Two chrominance informations are saturation infromation;
The monochrome information according to after processing and the chrominance information, the shadow layer data after being handled further comprise:
Monochrome information after processing, hue information and saturation infromation are subjected to fusion treatment, the shadow number of plies after being handled
According to.
7. according to the method described in claim any one of 1-6, wherein, it is described that the details number of plies is extracted from described first image
According to further comprising:Using Steerable filter algorithm, details layer data is extracted from described first image.
8. a kind of image processing apparatus based on layering, described device include:
Acquisition module, suitable for obtaining the first pending image;
Extraction module, suitable for extracting details layer data from described first image;
Determining module, suitable for the details layer data extracted according to the extraction module, determine dim spot area;
Brightness improves module, suitable for carrying out raising brightness processed to pixel corresponding to dim spot area in described first image, obtains
To the second image.
9. a kind of computing device, including:Processor, memory, communication interface and communication bus, the processor, the storage
Device and the communication interface complete mutual communication by the communication bus;
The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as right will
Ask operation corresponding to the image processing method based on layering any one of 1-7.
10. a kind of computer-readable storage medium, an at least executable instruction, the executable instruction are stored with the storage medium
Make operation corresponding to the image processing method based on layering of the computing device as any one of claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710851929.9A CN107633481A (en) | 2017-09-19 | 2017-09-19 | Image processing method, device, computing device and storage medium based on layering |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710851929.9A CN107633481A (en) | 2017-09-19 | 2017-09-19 | Image processing method, device, computing device and storage medium based on layering |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107633481A true CN107633481A (en) | 2018-01-26 |
Family
ID=61102151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710851929.9A Pending CN107633481A (en) | 2017-09-19 | 2017-09-19 | Image processing method, device, computing device and storage medium based on layering |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107633481A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111178118A (en) * | 2018-11-13 | 2020-05-19 | 浙江宇视科技有限公司 | Image acquisition processing method and device and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103067661A (en) * | 2013-01-07 | 2013-04-24 | 华为终端有限公司 | Image processing method, image processing device and shooting terminal |
CN104008534A (en) * | 2014-06-18 | 2014-08-27 | 福建天晴数码有限公司 | Intelligent human face beautifying method and device |
CN106296576A (en) * | 2016-08-05 | 2017-01-04 | 厦门美图之家科技有限公司 | Image processing method and image processing apparatus |
CN106550244A (en) * | 2015-09-16 | 2017-03-29 | 广州市动景计算机科技有限公司 | The picture quality enhancement method and device of video image |
-
2017
- 2017-09-19 CN CN201710851929.9A patent/CN107633481A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103067661A (en) * | 2013-01-07 | 2013-04-24 | 华为终端有限公司 | Image processing method, image processing device and shooting terminal |
CN104008534A (en) * | 2014-06-18 | 2014-08-27 | 福建天晴数码有限公司 | Intelligent human face beautifying method and device |
CN106550244A (en) * | 2015-09-16 | 2017-03-29 | 广州市动景计算机科技有限公司 | The picture quality enhancement method and device of video image |
CN106296576A (en) * | 2016-08-05 | 2017-01-04 | 厦门美图之家科技有限公司 | Image processing method and image processing apparatus |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111178118A (en) * | 2018-11-13 | 2020-05-19 | 浙江宇视科技有限公司 | Image acquisition processing method and device and computer readable storage medium |
CN111178118B (en) * | 2018-11-13 | 2023-07-21 | 浙江宇视科技有限公司 | Image acquisition processing method, device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Li et al. | Fast multi-scale structural patch decomposition for multi-exposure image fusion | |
US20200134787A1 (en) | Image processing apparatus and method | |
Jiang et al. | Image contrast enhancement with brightness preservation using an optimal gamma correction and weighted sum approach | |
WO2020019618A1 (en) | Image lighting method and apparatus, electronic device, and storage medium | |
CN109102483A (en) | Image enhancement model training method, device, electronic equipment and readable storage medium storing program for executing | |
CN110148088B (en) | Image processing method, image rain removing method, device, terminal and medium | |
US10600186B2 (en) | Performing segmentation of cells and nuclei in multi-channel images | |
CN109472193A (en) | Method for detecting human face and device | |
Parihar et al. | Fusion‐based simultaneous estimation of reflectance and illumination for low‐light image enhancement | |
CN109558892A (en) | A kind of target identification method neural network based and system | |
CN107408401B (en) | User slider for simplified adjustment of images | |
Moriwaki et al. | Hybrid loss for learning single-image-based HDR reconstruction | |
Celebi et al. | Fuzzy fusion based high dynamic range imaging using adaptive histogram separation | |
Pang et al. | Fan: Frequency aggregation network for real image super-resolution | |
CN107665482A (en) | Realize the video data real-time processing method and device, computing device of double exposure | |
CN110443764A (en) | Video repairing method, device and server | |
CN107610149A (en) | Image segmentation result edge optimization processing method, device and computing device | |
Mejjati et al. | Look here! a parametric learning based approach to redirect visual attention | |
CN110837781B (en) | Face recognition method, face recognition device and electronic equipment | |
CN106815803A (en) | The processing method and processing device of picture | |
CN107493504A (en) | Video data real-time processing method, device and computing device based on layering | |
CN107705279A (en) | Realize the view data real-time processing method and device, computing device of double exposure | |
CN110838088B (en) | Multi-frame noise reduction method and device based on deep learning and terminal equipment | |
CN107633481A (en) | Image processing method, device, computing device and storage medium based on layering | |
CN107564085A (en) | Scalloping processing method, device, computing device and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180126 |
|
RJ01 | Rejection of invention patent application after publication |