CN105872509A - Image contrast adjustment method and device - Google Patents

Image contrast adjustment method and device Download PDF

Info

Publication number
CN105872509A
CN105872509A CN201510821196.5A CN201510821196A CN105872509A CN 105872509 A CN105872509 A CN 105872509A CN 201510821196 A CN201510821196 A CN 201510821196A CN 105872509 A CN105872509 A CN 105872509A
Authority
CN
China
Prior art keywords
image
sample point
foreground image
foreground
play amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510821196.5A
Other languages
Chinese (zh)
Inventor
武勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201510821196.5A priority Critical patent/CN105872509A/en
Publication of CN105872509A publication Critical patent/CN105872509A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/643Hue control means, e.g. flesh tone control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/646Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides an image contrast adjustment method and device. The device comprises a foreground image processing circuit for obtaining a foreground image of a current frame of video, obtaining chroma offsets of different colors at each sample point in the foreground image, and normalizing the chroma offsets of different colors at each sample point, thus generating a processed foreground image; a background image processing circuit for obtaining a background image of the current frame of video, and carrying out grain processing to the background image, thus generating the processed background image; and an image output circuit for superimposing the processed background image and the processed foreground image, and outputting the final image with adjusted color contrast. Through adoption of the technical scheme provided by the embodiment of the invention, the foreground image and the background image are processed respectively, the color distortion problem resulting from modifying the transparency of the foreground image is avoided, and the displaying effect of the image with adjusted color contrast is improved.

Description

A kind of picture contrast control method and device
Technical field
The present embodiments relate to graph and image processing field, particularly relate to a kind of picture contrast control method And device.
Background technology
Along with developing rapidly of electronic technology, user can pass through various electronic equipments (such as personal computer, Mobile phone, panel computer etc.) viewing video, browsing pictures etc..
Owing to everyone is different to the perception degree of image color, therefore, user during viewing video, The demand adjusting picture contrast can be there is.At present, various electronic equipments are generally by adjusting foreground image The method of transparency, adjusts picture contrast.
Concrete, each frame video in video flowing is an image, all comprises prospect in each image Image and background image;When user needs the color contrast of image is become big, though the color contrast of image Time distincter, electronic equipment is by reducing the transparency of foreground image, it is achieved increase the color pair of image Degree of ratio;Accordingly, when user needs to diminish the color contrast of image, though the color contrast of image Time less distinct, electronic equipment is by improving the transparency of foreground image, it is achieved reduce the color of image Contrast.Use technique scheme, it is achieved during the adjustment of picture contrast, although adjust process the fastest Victory, but only by adjusting the transparency of foreground image, it is achieved the adjustment of picture contrast, there is image pair After adjusting than degree, cause color of image distortion, the problem that image display effect is the best.
As can be seen here, at present during the color contrast adjustment to video image, there is Adjustment effect poor Problem.
Summary of the invention
The embodiment of the present invention provides a kind of picture contrast control method and device, in order to solve to video figure During the color contrast of picture adjusts, the problem that there is Adjustment effect difference.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
The embodiment of the present invention provides a kind of picture contrast control method, including:
Obtain the foreground image of present frame video, and obtain the face of each sample point in described foreground image Colour saturation side-play amount, and respectively the color depth side-play amount of each sample point is normalized, raw Foreground image after one-tenth process;
Obtain the background image of described present frame video, and described background image is carried out gain process, generate Background image after process;
Background image after described process and the foreground image after described process are overlapped, and export color Final image after setting contrast.
The embodiment of the present invention provides a kind of picture contrast adjusting means, including:
Foreground image processes circuit, for obtaining the foreground image of present frame video, and obtains described foreground picture The color depth side-play amount of each sample point in Xiang, and inclined to the color depth of each sample point respectively Shifting amount is normalized, the foreground image after generation process;
Background image processes circuit, for obtaining the background image of described present frame video, and to described background Image carries out gain process, the background image after generation process;
Image output circuit, processes circuit with described foreground image respectively and described background image processes circuit Connect, for the background image after described process and the foreground image after described process are overlapped and defeated Go out the final image after color contrast adjusts.
The embodiment of the present invention provides a kind of picture contrast control method and device, wraps and is regarded by acquisition present frame The foreground image of frequency, and obtain the color depth side-play amount of each sample point in described foreground image, with And the color depth side-play amount of each sample point is normalized, the foreground image after generation process; Obtaining the background image of described present frame video, and described background image carries out gain process, generation processes After background image;Background image after described process and the foreground image after described process are overlapped, And export the final image after color contrast adjusts.Use embodiment of the present invention technical scheme, by respectively Foreground image and background image are processed, it is to avoid the only transparency to foreground image is changed causing The problem such as cross-color;Further, by the concentration excursion amount of the different color of foreground image, image is adjusted Color contrast, it is possible to ensure color contrast adjust after the color of image full abundant, improve face The display effect of the image after color contrast adjustment.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, retouch below Accompanying drawing in stating is some embodiments of the present invention, for those of ordinary skill in the art, is not paying On the premise of creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is picture contrast control method flow chart in the embodiment of the present invention one;
Fig. 2 is picture contrast adjusting means structural representation in;
Fig. 3 is picture contrast adjusting means structural representation in the embodiment of the present invention two;
Fig. 4 a is coordinate diagram one in the embodiment of the present invention two;
Fig. 4 b is coordinate diagram two in the embodiment of the present invention two;
Fig. 5 is picture contrast adjusting apparatus structural representation in the embodiment of the present invention three;
Fig. 6 is picture contrast adjusting apparatus structural representation in the embodiment of the present invention four;
Fig. 7 is picture contrast adjusting apparatus structural representation in the embodiment of the present invention five.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that Described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based in the present invention Embodiment, those of ordinary skill in the art obtained under not making creative work premise all its His embodiment, broadly falls into the scope of protection of the invention.
In the embodiment of the present invention, this picture contrast method of adjustment can apply to terminal plays video process In, the application scenarios that video image is adjusted, described terminal can be intelligent television, personal computer, Mobile phone, panel computer etc., the operating system loaded in described terminal can be Windows operating system, peace Tall and erect operating system, or ios operating system etc..
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
Embodiment one
Refering to shown in Fig. 1, in the embodiment of the present invention, regulate the process of picture contrast, including:
Step 100: obtain the foreground image of present frame video, and obtain each in described foreground image The color depth side-play amount of sample point, and respectively the color depth side-play amount of each sample point is carried out normalizing Change processes, the foreground image after generation process.
In the embodiment of the present invention, terminal obtains currently playing video flowing, and gathers every from described video flowing The image of one frame, the image of this each frame is the object of image adjustment.
Optionally, terminal uses interframe to insert a point method, or uses binocular vision away from image-forming principle from present frame figure Foreground image and background image is distinguished in Xiang.
The color depth side-play amount of each sample point in the described foreground image of described acquisition, specifically includes: Obtain the foreground image of current frame video image, and described current foreground image is processed, generate described The foreground key signal that current foreground image is corresponding;The first sample point is gathered respectively from described foreground key signal, with And gather the second sample point from the video template chosen in advance, for every in described foreground image and video template The first sample point in one same position and the second sample point, be performed both by operating as follows: relatively described first The brightness value of sample point and the brightness value of described second sample point, from described first sample point and described second sample This point is chosen the sample point that brightness value is maximum, obtains the color depth side-play amount of described sample point;Wherein, Described color depth side-play amount comprises red-color concentration side-play amount and blue intensity side-play amount;
Respectively the color depth side-play amount of each sample point is normalized, the prospect after generation process Image, specifically includes: for the color depth side-play amount of each sample point, is performed both by operating as follows: root According to default expectation key color, red-color concentration side-play amount and blue intensity side-play amount to this sample point are entered respectively Row normalized, wherein, described expectation key color is the color parameter being expected to be set to of this sample point; The wound of the blue intensity side-play amount after the red-color concentration side-play amount after process and normalized is changed according to normalization Build coordinate diagram, this coordinate diagram represent the most respectively the blue intensity side-play amount after normalized and Red-color concentration side-play amount after normalized;By the horizontally and vertically rotation predetermined angle of described coordinate diagram, Generate the first coordinate transforming axle and the second coordinate transforming axle;Inclined according to the red-color concentration after described normalized Blue intensity side-play amount after shifting amount and normalized, obtain that described first coordinate transforming axle is corresponding first Data, and the second data that described second coordinate transforming axle is corresponding;According to described first data and described Two data, obtain the acceptance angle that this sample point is corresponding;Wherein, described acceptance angle is for being used for characterizing this sample point Described in the boundary angle of the amplitude of the foreground key signal part linearly increasing with the increase of saturation;According to Described acceptance angle, obtains the first foreground image comprised in described foreground image;Wherein, described first prospect Image is to be positioned at the part within described acceptance angle in described sample point;According to described foreground key signal, by institute State the first foreground image colouring information to process, the foreground image after generation process.
Further, terminal, according to described acceptance angle, obtains the second foreground picture comprised in described foreground image Picture: wherein, described second foreground image is to be positioned at the part beyond described acceptance angle in described sample point;Right Described second foreground image carries out gain process.
Step 110: obtain the background image of described present frame video, and described background image is carried out gain Process, the background image after generation process.
In the embodiment of the present invention, optionally, by multiplier, described background image is processed, and pass through Background image after processing and the background image gain preset are processed by multiplier, the back of the body after generation process Scape image;Wherein, described background image gain be in conventional images color amplitude basis color add agriculture.
Step 120: the background image after described process and the foreground image after described process are overlapped, And export the final image after color contrast adjusts.
In the embodiment of the present invention, to process after the first foreground image, the second foreground image after process, with And the background image after described process is overlapped.
Embodiment two
Refering to shown in Fig. 2, for picture contrast adjusting apparatus in the embodiment of the present invention;Described picture contrast Adjusting apparatus includes that foreground image processes circuit 10, and background image processes circuit 20, and image output electricity Road 30;Wherein:
Described foreground image processes circuit 10, for obtaining the foreground image of present frame video, and obtains described The color depth side-play amount of each sample point in foreground image, and color to each sample point respectively Concentration excursion amount is normalized, the foreground image after generation process;
Background image processes circuit 20, for obtaining the background image of described present frame video, and to the described back of the body Scape image carries out gain process, the background image after generation process;
Image output circuit 30, processes at circuit 10 and described background image with described foreground image respectively Reason circuit 20 connects, for the background image after described process and the foreground image after described process being carried out Superposition, and export the final image after color contrast adjusts.
Optionally, described background image processes circuit 20 is multiplier.Concrete, described multiplier is to institute State background image and the background image gain preset processes, the background image after generation process;Wherein, Described background image gain be in conventional images color amplitude basis color add agriculture.
Optionally, described image output circuit 30 comprises adder, described adder respectively with described prospect Image processing circuit and described background image process circuit and connect, and are used for: to the Background after described process Foreground image after picture and described process is overlapped.
Use embodiment of the present invention technical scheme, by foreground image process circuit to foreground image at Reason, and by background image process circuit, background image is processed, the most right by different circuit Foreground image and background image process, it is to avoid the only transparency to foreground image is changed causing The problems such as cross-color;Further, by the concentration excursion amount of the different color of foreground image, image is adjusted Color contrast, it is possible to ensure that the color of the image after color contrast adjustment is full abundant, improve color The display effect of the image after setting contrast.
Embodiment two
Refering to shown in Fig. 3, for picture contrast adjusting apparatus in the embodiment of the present invention;Described picture contrast Adjusting apparatus includes that foreground image processes circuit 10, and background image processes circuit 20, and image output electricity Road 30;Wherein:
Described foreground image processes circuit and includes key maker 101, non additivity blender 102, and prospect is compressed Device 103, and key processor 104;Wherein:
Described key maker 101, for obtaining the foreground image of current frame video image, and to described currently Foreground image processes, and generates the foreground key signal (KFG) that described current foreground image is corresponding;Wherein, Described foreground key signal is for characterizing the element information comprised in described foreground image;
Described non additivity blender 102, is connected with described key maker 101, is used for receiving described key and generates The foreground key signal that device 101 sends, and gather the first sample point, Yi Jicong from described foreground key signal respectively The video template chosen in advance gathers the second sample point, and wherein, described video template is in video flowing, arbitrarily One two field picture;First sample point and the second sample point are according to preset rules, respectively from foreground image and video The pixel chosen in template;The position of described first sample point is identical with the position of described second sample point, And first the quantity of sample point identical with the quantity of the second sample point, described quantity is the most multiple;For institute The first sample point stated in foreground image and video template in each same position and the second sample point, all hold The following operation of row: compare brightness value and the brightness value of described second sample point of described first sample point, from institute State and the first sample point and described second sample point are chosen the sample point that brightness value is maximum, obtain described sample point Red-color concentration side-play amount (being designated as Cr) and blue intensity side-play amount (being designated as Cb);Such as, the first sample Point is for be positioned at the pixel of the first row first row in foreground image, and same, the second sample point is for being positioned at video The pixel of the first row first row in template, obtains the brightness value (being designated as a) of the first sample point, and second The brightness value (being designated as b) of sample point, as a > b, obtains Cr and Cb of the first sample point;
Prospect compressor 103, is connected with described non additivity blender 102, for for each sample point Red-color concentration side-play amount and blue intensity side-play amount, be performed both by operating as follows: according to default expectation key face Color, red-color concentration side-play amount and blue intensity side-play amount to this sample point be normalized respectively, its In, described expectation key color is the color parameter being expected to be set to of this sample point;And change according to normalization Red-color concentration side-play amount after process and the blue intensity side-play amount after normalized create coordinate diagram and (refer to Shown in Fig. 4 a), the blue intensity side-play amount after the normalized of expression the most respectively of this coordinate diagram Red-color concentration side-play amount (being designated as Cr ') after (being designated as Cb ') and normalized;By described coordinate diagram Horizontally and vertically rotate predetermined angle (being designated as θ), generate the first coordinate transforming axle (being designated as X) and second and become Change coordinate axes (being designated as Z), refering to shown in Fig. 4 a;According to described Cr ' and Cb ', obtain described first and become Change the first data that coordinate axes is corresponding, and the second data that described second coordinate transforming axle is corresponding;According to institute State the first data and described second data, obtain acceptance angle corresponding to this sample point (being designated as α);Wherein, Refering to shown in Fig. 4 b, described acceptance angle is for characterizing in this sample point foreground key signal with the increasing of saturation Add and the boundary angle of linearly increasing part;
Key processor 104, is connected with described prospect compressor 103, is used for according to described foreground key signal, The the first foreground image colouring information exported by described prospect compressor 103 processes, after generation processes Foreground image;Wherein, described first foreground image is to be positioned at the portion within described acceptance angle in described sample point Point.
Wherein, owing to Cr ' and Cb ' is the parameter after normalized, therefore, Cr ' and Cb ' Span be [-1,1].
Optionally, refering to shown in Fig. 4 a, Cr ' and Cb ' represents the longitudinal axis and transverse axis respectively, described transverse axis and In the coordinate system of longitudinal axis composition, zones of different represents different colors;After described coordinate system anglec of rotation θ, X-axis and the coordinate system of Z axis composition will be generated;The initial value of this θ can be arranged as the case may be by user, Can change according to the mode of the preset value that successively decreases successively, it is also preferred that the left the value of this θ is for making X-axis pass expectation Key color.
Wherein, the value that described X-axis is corresponding can use equation below to obtain:
X=Cb'cos θ+Cr'sin θ formula one
The value that described Z axis is corresponding can use equation below to obtain:
Z=Cr'cos θ-Cb'sin θ formula two
Owing to the span of Cr ' and Cb ' is [-1,1], therefore, the span of x and z is [0,1].
Further, obtain according to equation below due to KFG:
K F G = x - | z | t a n ( α / 2 ) Formula three
As KFG=0, the angle value obtained is acceptance angle.
The acceptance angle obtained is divided equally by X-axis, and this acceptance angle constitutes a scope, at the model of acceptance angle composition The amplitude of the KFG enclosing interior sample point is linearly increasing with the increase of saturation, by acceptance angle compositing range Sample point composition foreground image be referred to as the first foreground image;Outside the scope of acceptance angle composition, sample point KFG=0, by outside acceptance angle compositing range sample point form foreground image become the second foreground image.
Optionally, described key processor 104 by equation below to the first foreground image colouring information at Reason, the foreground image after generation process:
X '=x-KFG formula four
Optionally, the second foreground image can not be processed, directly be overlapped with the first foreground image.
Optionally, described background image processes circuit 20 is multiplier 201 and multiplier 202.Concrete, Described background image is processed by described multiplier 201, and described multiplier 202 is to the Background after processing Picture and the background image gain preset process, the background image after generation process;Wherein, described background Image gain be in conventional images color amplitude basis color add agriculture.
Optionally, described image output circuit 30 comprises adder, described adder respectively with described prospect Image processing circuit and described background image process circuit and connect, and are used for: to the Background after described process Foreground image after picture and described process is overlapped.
Concrete, described adder, specifically for: to the first foreground image after processing, the after process Background image after two foreground images, and process is overlapped.
Use embodiment of the present invention technical scheme, owing to the red-color concentration side-play amount in foreground image and blueness are dense Degree side-play amount is for strengthening the point of brightness in foreground image, therefore, by red-color concentration in foreground image Side-play amount and the process of blue intensity side-play amount, it is possible to improve the brightness of image of foreground image;Further, pass through Background image is carried out gain process, it is possible to improve the brightness of image of background image, thus adjust the face of image Color contrast, it is possible to ensure that the color of the image after color contrast adjustment is full abundant, improve color pair The display effect of the image after adjusting than degree.
Embodiment three
Refering to shown in Fig. 5, for picture contrast adjusting apparatus in the embodiment of the present invention;Described picture contrast Adjusting apparatus includes that foreground image processes circuit 10, and background image processes circuit 20, and image output electricity Road 30;Wherein:
Described foreground image processes circuit and includes key maker 101, non additivity blender 102, and prospect is compressed Device 103, and key processor 104, multiplier 105;Wherein:
Described key maker 101, for obtaining the foreground image of current frame video image, and to described currently Foreground image processes, and generates the foreground key signal (KFG) that described current foreground image is corresponding;Wherein, Described foreground key signal is for characterizing the element information comprised in described foreground image;
Described non additivity blender 102, is connected with described key maker 101, is used for receiving described key and generates The foreground key signal that device 101 sends, and gather the first sample point, Yi Jicong from described foreground key signal respectively The video template chosen in advance gathers the second sample point, and wherein, described video template is in video flowing, arbitrarily One two field picture;First sample point and the second sample point are according to preset rules, respectively from foreground image and video The pixel chosen in template;The position of described first sample point is identical with the position of described second sample point, And first the quantity of sample point identical with the quantity of the second sample point, described quantity is the most multiple;For institute The first sample point stated in foreground image and video template in each same position and the second sample point, all hold The following operation of row: compare brightness value and the brightness value of described second sample point of described first sample point, from institute State and the first sample point and described second sample point are chosen the sample point that brightness value is maximum, obtain described sample point Red-color concentration side-play amount (being designated as Cr) and blue intensity side-play amount (being designated as Cb);Such as, the first sample Point is for be positioned at the pixel of the first row first row in foreground image, and same, the second sample point is for being positioned at video The pixel of the first row first row in template, obtains the brightness value (being designated as a) of the first sample point, and second The brightness value (being designated as b) of sample point, as a > b, obtains Cr and Cb of the first sample point;
Prospect compressor 103, is connected with described non additivity blender 102, for for each sample point Red-color concentration side-play amount and blue intensity side-play amount, be performed both by operating as follows: according to default expectation key face Color, red-color concentration side-play amount and blue intensity side-play amount to this sample point be normalized respectively, its In, described expectation key color is the color parameter being expected to be set to of this sample point;And change according to normalization Red-color concentration side-play amount after process and the blue intensity side-play amount after normalized create coordinate diagram and (refer to Shown in Fig. 4 a), the blue intensity side-play amount after the normalized of expression the most respectively of this coordinate diagram Red-color concentration side-play amount (being designated as Cr ') after (being designated as Cb ') and normalized;By described coordinate diagram Horizontally and vertically rotate predetermined angle (being designated as θ), generate the first coordinate transforming axle (being designated as X) and second and become Change coordinate axes (being designated as Z), refering to shown in Fig. 4 a;According to described Cr ' and Cb ', obtain described first and become Change the first data that coordinate axes is corresponding, and the second data that described second coordinate transforming axle is corresponding;According to institute State the first data and described second data, obtain acceptance angle corresponding to this sample point (being designated as α);Wherein, Refering to shown in Fig. 4 b, described acceptance angle is for characterizing in this sample point foreground key signal with the increasing of saturation Add and the boundary angle of linearly increasing part;
Key processor 104, is connected with described prospect compressor 103, is used for according to described foreground key signal, The the first foreground image colouring information exported by described prospect compressor 103 processes, after generation processes Foreground image;Wherein, described first foreground image is to be positioned at the portion within described acceptance angle in described sample point Point.
Wherein, owing to Cr ' and Cb ' is the parameter after normalized, therefore, Cr ' and Cb ' Span be [-1,1].
Optionally, refering to shown in Fig. 4 a, Cr ' and Cb ' represents the longitudinal axis and transverse axis respectively, described transverse axis and In the coordinate system of longitudinal axis composition, zones of different represents different colors;After described coordinate system anglec of rotation θ, X-axis and the coordinate system of Z axis composition will be generated;The initial value of this θ can be arranged as the case may be by user, Can change according to the mode of the preset value that successively decreases successively, it is also preferred that the left the value of this θ is for making X-axis pass expectation Key color.
Wherein, the value that described X-axis is corresponding can use formula one acquisition;The value that described Z axis is corresponding is permissible Formula two is used to obtain;The span of x and z is [0,1].
Further, KFG obtains according to formula three;As KFG=0, the angle value obtained is acceptance Angle.
The acceptance angle obtained is divided equally by X-axis, and this acceptance angle constitutes a scope, at the model of acceptance angle composition The amplitude of the KFG enclosing interior sample point is linearly increasing with the increase of saturation, by acceptance angle compositing range Sample point composition foreground image be referred to as the first foreground image;Outside the scope of acceptance angle composition, sample point KFG=0, by outside acceptance angle compositing range sample point form foreground image become the second foreground image.
Optionally, the first foreground image colouring information is processed by described key processor 104 by formula four, Foreground image after generation process.
Optionally, by multiplier 105, default prospect gain and the second foreground image are processed.
Optionally, described background image processes circuit 20 is multiplier 201 and multiplier 202.Concrete, Described background image is processed by described multiplier 201, and described multiplier 202 is to the Background after processing Picture and the background image gain preset process, the background image after generation process;Wherein, described background Image gain be in conventional images color amplitude basis color add agriculture.
Optionally, described image output circuit 30 comprises adder, described adder respectively with described prospect Image processing circuit and described background image process circuit and connect, and are used for: to the Background after described process Foreground image after picture and described process is overlapped.
Concrete, described adder, specifically for: to the first foreground image after processing, the after process Background image after two foreground images, and process is overlapped.
Use embodiment of the present invention technical scheme, owing to the red-color concentration side-play amount in foreground image and blueness are dense Degree side-play amount is for strengthening the point of brightness in foreground image, therefore, by red-color concentration in foreground image Side-play amount and the process of blue intensity side-play amount, it is possible to improve the brightness of image of foreground image;Further, pass through Background image is carried out gain process, it is possible to improve the brightness of image of background image, thus adjust the face of image Color contrast, it is possible to ensure that the color of the image after color contrast adjustment is full abundant, improve color pair The display effect of the image after adjusting than degree.
Embodiment four
Based on described embodiment one to embodiment three, refering to shown in Fig. 6, described picture contrast adjusting apparatus Also including image splitter 40, described image splitter 40 processes circuit 10 with described foreground image respectively Process circuit 20 with described background image to connect, be used for: from the image that present frame video is corresponding, separate Obtain foreground image and background image.
Based on described embodiment one to embodiment three, refering to shown in Fig. 7, described picture contrast adjusting apparatus Also include that image acquisition device 50, described image acquisition device 50 are connected with described image splitter 40, are used for: Obtain video data, and obtain the image that in described video data, present frame video is corresponding.
In sum, in the embodiment of the present invention, it is provided that a kind of picture contrast adjusting apparatus, including prospect Image processing circuit, background image processes circuit, and image output circuit;Wherein, described foreground picture As processing circuit, for obtaining the foreground image of present frame video, and obtain in described foreground image every The concentration excursion amount of the different colours of one sample point, and the concentration of the different colours to each sample point Side-play amount is normalized, the foreground image after generation process;Background image processes circuit, is used for Obtain the background image of described present frame video, and described background image is carried out gain process, at generation Background image after reason;Image output circuit, processes circuit and the described back of the body with described foreground image respectively Scape image processing circuit connects, for by the background image after described process and the foreground picture after described process As being overlapped, and export the final image after color contrast adjusts.Use embodiment of the present invention technology Scheme, is processed circuit by foreground image and processes foreground image, and processed by background image Background image is processed by circuit, is carried out foreground image and background image respectively by different circuit Process, it is to avoid the only transparency to foreground image is changed the problems such as the cross-color that causes;And And, by the concentration excursion amount of the different color of foreground image, adjust the color contrast of image, it is possible to Ensure that the color of the image after color contrast adjustment is full abundant, after improve color contrast adjustment The display effect of image.
Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words Dividing and can embody with the form of software product, this computer software product can be stored in computer can Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one Computer equipment (can be personal computer, server, or the network equipment etc.) performs each embodiment Or the method described in some part of embodiment.
Last it is noted that above example is only in order to illustrate the technical scheme of the embodiment of the present invention, rather than It is limited;Although the embodiment of the present invention being described in detail with reference to previous embodiment, this area Those of ordinary skill is it is understood that the technical scheme described in foregoing embodiments still can be repaiied by it Change, or wherein portion of techniques feature is carried out equivalent;And these amendments or replacement, do not make phase The essence answering technical scheme departs from the spirit and scope of the embodiment of the present invention each embodiment technical scheme.

Claims (12)

1. a picture contrast control method, it is characterised in that including:
Obtain the foreground image of present frame video, and obtain the face of each sample point in described foreground image Colour saturation side-play amount, and respectively the color depth side-play amount of each sample point is normalized, raw Foreground image after one-tenth process;
Obtain the background image of described present frame video, and described background image is carried out gain process, generate Background image after process;
Background image after described process and the foreground image after described process are overlapped, and export color Final image after setting contrast.
Method the most according to claim 1, it is characterised in that in the described foreground image of described acquisition The color depth side-play amount of each sample point, and color depth side-play amount to each sample point respectively It is normalized, the foreground image after generation process, specifically includes:
Obtain the foreground image of current frame video image, and described current foreground image is processed, generate The foreground key signal that described current foreground image is corresponding;
The first sample point is gathered respectively from described foreground key signal, and from the video template collection chosen in advance Second sample point, for the first sample point in each same position in described foreground image and video template With the second sample point, it is performed both by operating as follows: compare the brightness value of described first sample point and described second sample The brightness value of this point, chooses the sample that brightness value is maximum from described first sample point and described second sample point Point, obtains the color depth side-play amount of described sample point;Wherein, described color depth side-play amount comprises redness Concentration excursion amount and blue intensity side-play amount;
For the color depth side-play amount of each sample point, it is performed both by operating as follows: according to default expectation Key color, red-color concentration side-play amount and blue intensity side-play amount to this sample point are normalized place respectively Reason, wherein, described expectation key color is the color parameter being expected to be set to of this sample point;
The skew of the blue intensity after the red-color concentration side-play amount after process and normalized is changed according to normalization Amount creates coordinate diagram, the blue intensity skew after the normalized of expression the most respectively of this coordinate diagram Red-color concentration side-play amount after amount and normalized;
By the horizontally and vertically rotation predetermined angle of described coordinate diagram, generate the first coordinate transforming axle and second and become Change coordinate axes;Dense according to the red-color concentration side-play amount after described normalized and the blueness after normalized Degree side-play amount, obtains the first data that described first coordinate transforming axle is corresponding, and described second coordinate transforming The second data that axle is corresponding;
According to described first data and described second data, obtain the acceptance angle that this sample point is corresponding;Wherein, Described acceptance angle is for characterizing the amplitude of foreground key signal described in this sample point with the increase of saturation The boundary angle of linearly increasing part;According to described acceptance angle, obtain comprised in described foreground image One foreground image;Wherein, described first foreground image be described sample point is positioned at described acceptance angle within Part;
According to described foreground key signal, being processed by described first foreground image colouring information, generation processes After foreground image.
Method the most according to claim 2, it is characterised in that described method also includes:
According to described acceptance angle, obtain the second foreground image comprised in described foreground image: wherein, described Second foreground image is to be positioned at the part beyond described acceptance angle in described sample point;
Described second foreground image is carried out gain process.
Method the most according to claim 3, it is characterised in that by the background image after described process It is overlapped with the foreground image after described process, specifically includes:
To the first foreground image after processing, the second foreground image after process, and the back of the body after described process Scape image is overlapped.
5. according to the method described in any one of claim 1-4, it is characterised in that obtain present frame video Foreground image, specifically include:
From the image that present frame video is corresponding, isolated foreground image and background image.
6. a picture contrast adjusting means, it is characterised in that including:
Foreground image processes circuit, for obtaining the foreground image of present frame video, and obtains described foreground picture The color depth side-play amount of each sample point in Xiang, and inclined to the color depth of each sample point respectively Shifting amount is normalized, the foreground image after generation process;
Background image processes circuit, for obtaining the background image of described present frame video, and to described background Image carries out gain process, the background image after generation process;
Image output circuit, processes circuit with described foreground image respectively and described background image processes circuit Connect, for the background image after described process and the foreground image after described process are overlapped and defeated Go out the final image after color contrast adjusts.
Device the most according to claim 6, it is characterised in that described foreground image processes circuit bag Include key maker, non additivity blender, prospect compressor, and key processor;Wherein:
Described key maker, for obtaining the foreground image of current frame video image, and to described current prospect Image processes, and generates the foreground key signal that described current foreground image is corresponding;
Described non additivity blender, is connected with described key maker, for receiving what described key maker sent Foreground key signal, and gather the first sample point from described foreground key signal respectively, and from regarding of choosing in advance Frequently template gathers the second sample point, in each same position in described foreground image and video template First sample point and the second sample point, be performed both by operating as follows: relatively described first sample point brightness value and The brightness value of described second sample point, chooses brightness value from described first sample point and described second sample point Maximum sample point, obtains the color depth side-play amount of described sample point;Wherein, described color depth skew Amount comprises red-color concentration side-play amount and blue intensity side-play amount;
Prospect compressor, is connected with described non additivity blender, dark for for each sample point Degree side-play amount, is performed both by operating as follows: according to default expectation key color, the red-color concentration to this sample point Side-play amount and blue intensity side-play amount are normalized respectively, and wherein, described expectation key color is this sample The color parameter being expected to be set to of this point;And according to normalization change the red-color concentration side-play amount after process and Blue intensity side-play amount after normalized creates coordinate diagram, representing the most respectively of this coordinate diagram Blue intensity side-play amount after normalized and the red-color concentration side-play amount after normalized;By described seat The horizontally and vertically rotation predetermined angle marked on a map, generates the first coordinate transforming axle and the second coordinate transforming axle;Root According to the red-color concentration side-play amount after described normalized and the blue intensity side-play amount after normalized, obtain Take the first data that described first coordinate transforming axle is corresponding, and described second coordinate transforming axle corresponding second Data;According to described first data and described second data, obtain the acceptance angle that this sample point is corresponding;Wherein, Described acceptance angle is for characterizing the amplitude of foreground key signal described in this sample point with the increase of saturation The boundary angle of linearly increasing part;
Key processor, is connected with described prospect compressor, for according to described foreground key signal, before described First foreground image colouring information of scape compressor output processes, the foreground image after generation process;Its In, described first foreground image is to be positioned at the part within described acceptance angle in described sample point.
Device the most according to claim 7, it is characterised in that described foreground image processes circuit also Including multiplier, described multiplier is connected with described prospect compressor, is used for:
Obtain the second foreground image of described prospect compressor output, described second foreground image is carried out gain Process;Wherein, described second foreground image is to be positioned at the part beyond described acceptance angle in described sample point.
Device the most according to claim 8, it is characterised in that described background image processes circuit and is Multiplier.
Device the most according to claim 9, it is characterised in that described image output circuit comprises and adds Musical instruments used in a Buddhist or Taoist mass, described adder processes circuit with described foreground image respectively and described background image processes circuit even Connect, be used for:
To the first foreground image after processing, the second foreground image after process, and the back of the body after described process Scape image is overlapped.
11. according to the device described in any one of claim 6-10, it is characterised in that also include that image separates Device, described image splitter processes circuit with described foreground image respectively and described background image processes circuit even Connect, be used for:
From the image that present frame video is corresponding, isolated foreground image and background image.
12. devices according to claim 11, it is characterised in that also include image acquisition device, institute State image acquisition device to be connected with described image splitter, be used for:
Obtain video data, and obtain the image that in described video data, present frame video is corresponding.
CN201510821196.5A 2015-11-23 2015-11-23 Image contrast adjustment method and device Pending CN105872509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510821196.5A CN105872509A (en) 2015-11-23 2015-11-23 Image contrast adjustment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510821196.5A CN105872509A (en) 2015-11-23 2015-11-23 Image contrast adjustment method and device

Publications (1)

Publication Number Publication Date
CN105872509A true CN105872509A (en) 2016-08-17

Family

ID=56623779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510821196.5A Pending CN105872509A (en) 2015-11-23 2015-11-23 Image contrast adjustment method and device

Country Status (1)

Country Link
CN (1) CN105872509A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109791748A (en) * 2016-09-28 2019-05-21 富士胶片株式会社 Grating display body, the forming method of raster image, the formation program of the manufacturing method of grating display body and raster image
WO2020078027A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Image processing method, apparatus and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450444A (en) * 2002-04-09 2003-10-22 三星电子株式会社 Method and circuit for adjusting background contrast in display apparatus
CN101052096A (en) * 2006-04-04 2007-10-10 广达电脑股份有限公司 Method and device for regulating image contrast ratio
CN101529497A (en) * 2006-10-27 2009-09-09 惠普开发有限公司 Dynamically adjustable elements of an on-screen display
US20130235065A1 (en) * 2007-08-03 2013-09-12 Samsung Electronics Co., Ltd Method and system of immersive generation for two-dimension still image and factor dominating method, image content analysis method and scaling parameter prediction method for generating immersive sensation
CN103327219A (en) * 2012-03-21 2013-09-25 浙江大华技术股份有限公司 Video image contrast adjustment method and device
CN104881849A (en) * 2015-05-25 2015-09-02 中国科学院上海高等研究院 Method and system for enhancing color image contrast

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450444A (en) * 2002-04-09 2003-10-22 三星电子株式会社 Method and circuit for adjusting background contrast in display apparatus
CN101052096A (en) * 2006-04-04 2007-10-10 广达电脑股份有限公司 Method and device for regulating image contrast ratio
CN101529497A (en) * 2006-10-27 2009-09-09 惠普开发有限公司 Dynamically adjustable elements of an on-screen display
US20130235065A1 (en) * 2007-08-03 2013-09-12 Samsung Electronics Co., Ltd Method and system of immersive generation for two-dimension still image and factor dominating method, image content analysis method and scaling parameter prediction method for generating immersive sensation
CN103327219A (en) * 2012-03-21 2013-09-25 浙江大华技术股份有限公司 Video image contrast adjustment method and device
CN104881849A (en) * 2015-05-25 2015-09-02 中国科学院上海高等研究院 Method and system for enhancing color image contrast

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109791748A (en) * 2016-09-28 2019-05-21 富士胶片株式会社 Grating display body, the forming method of raster image, the formation program of the manufacturing method of grating display body and raster image
CN109791748B (en) * 2016-09-28 2021-01-08 富士胶片株式会社 Raster display body, method for forming raster image, method for manufacturing raster display body, and storage medium
WO2020078027A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Image processing method, apparatus and device
US12026863B2 (en) 2018-10-15 2024-07-02 Huawei Technologies Co., Ltd. Image processing method and apparatus, and device

Similar Documents

Publication Publication Date Title
KR101639429B1 (en) Methods and apparatus for color rendering
CN103248793B (en) The colour of skin optimization method of gamut conversion system and device
CN102611897B (en) Method and system for carrying out vision perception high-fidelity transformation on color digital image
US8687883B2 (en) Method and a device for merging a plurality of digital pictures
CN101478687B (en) Correcting method for pseudo color pixel in digital image
CN109934776A (en) Model generating method, video enhancement method, device and computer readable storage medium
CN103200409B (en) Color correction method of multi-projector display system
CN107820069B (en) Video monitoring equipment ISP debugging method
CN105955733B (en) A kind of method, apparatus and mobile terminal for modifying icon
CN103383830B (en) Method for viewing virtual display outputs
CN105933692B (en) For preparing the method for 3-D view
CN103702095A (en) Color gamut correction method, device and system of image fusion process
CN109754375A (en) Image processing method, system, computer equipment, storage medium and terminal
CN108022223A (en) A kind of tone mapping method based on the processing fusion of logarithmic mapping function piecemeal
CN116034400A (en) Image processing based on object classification
CN110248242A (en) A kind of image procossing and live broadcasting method, device, equipment and storage medium
CN106997608A (en) A kind of method and device for generating halation result figure
CN104641631B (en) By the color enhancement of gamut extension
WO2022256411A1 (en) System and method for displaying super saturated color
CN110070515A (en) Image composition method, device and computer readable storage medium
CN109636739B (en) Detail processing method and device for enhancing image saturation
CN106709888B (en) A kind of high dynamic range images production method based on human vision model
CN105872509A (en) Image contrast adjustment method and device
CN108702494A (en) Image processing apparatus, imaging device, image processing method and program
Hsin et al. Color to grayscale transform preserving natural order of hues

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160817