WO2020037630A1 - 图像处理方法、图像处理装置、电子装置和存储介质 - Google Patents

图像处理方法、图像处理装置、电子装置和存储介质 Download PDF

Info

Publication number
WO2020037630A1
WO2020037630A1 PCT/CN2018/102041 CN2018102041W WO2020037630A1 WO 2020037630 A1 WO2020037630 A1 WO 2020037630A1 CN 2018102041 W CN2018102041 W CN 2018102041W WO 2020037630 A1 WO2020037630 A1 WO 2020037630A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel value
adjustment parameter
contrast
brightness
image
Prior art date
Application number
PCT/CN2018/102041
Other languages
English (en)
French (fr)
Inventor
席迎来
Original Assignee
深圳市大疆创新科技有限公司
大疆互娱科技(北京)有限公司
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 深圳市大疆创新科技有限公司, 大疆互娱科技(北京)有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2018/102041 priority Critical patent/WO2020037630A1/zh
Priority to CN201880038443.6A priority patent/CN110800309B/zh
Publication of WO2020037630A1 publication Critical patent/WO2020037630A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • 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
    • 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/77Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase

Definitions

  • the present invention relates to image processing technologies, and in particular, to an image processing method, an image processing device, an electronic device, and a computer-readable storage medium.
  • the brightness, contrast, etc. of the image may be adjusted by the image pixels.
  • the RGB of an image pixel is generally converted into a color space such as HSL (HSV), and the brightness portion is adjusted by increasing or decreasing, and then converted to RGB space.
  • HSL HSL
  • the adjustment process is complicated, resulting in brightness Slow adjustment.
  • Embodiments of the present invention provide an image processing method, an image processing device, an electronic device, and a computer-readable storage medium.
  • the image processing method of the present invention includes: acquiring an input image, the input image including a plurality of input pixel values; acquiring an adjustment parameter; acquiring a correspondence relationship between the input pixel value and an output pixel value according to the adjustment parameter; and according to the correspondence The relationship and the input pixel value obtain the output pixel value to obtain an output image.
  • An image processing apparatus includes a first acquisition module, a second acquisition module, a third acquisition module, and a fourth acquisition module.
  • the first acquisition module is configured to acquire an input image, where the input image includes multiple input pixel values.
  • the second obtaining module is configured to obtain an adjustment parameter.
  • the third obtaining module is configured to obtain a correspondence between the input pixel value and the output pixel value according to the adjustment parameter.
  • the fourth obtaining module is configured to obtain the output pixel value according to the correspondence relationship and the input pixel value to obtain an output image.
  • the electronic device includes a processor configured to obtain an input image, where the input image includes multiple input pixel values, obtain adjustment parameters, and obtain the input pixel values and output pixels according to the adjustment parameters. A corresponding relationship between the values, and obtaining the output pixel value according to the corresponding relationship and the input pixel value to obtain an output image.
  • the computer-readable storage medium of the embodiment of the present invention stores a computer program thereon, and the computer program can be executed by a processor to complete the image processing method.
  • Embodiments of the present invention provide an image processing method, an image processing device, an electronic device, and a computer-readable storage medium.
  • the correspondence between the input pixel value and the output pixel value is obtained according to the adjustment parameter, so that the input pixel value of the input image can be processed to obtain the output image according to the correspondence relationship, that is, the adjustment can be performed quickly according to the adjustment parameter and the input image. To get the output image.
  • FIG. 1 to 3 are schematic flowcharts of an image processing method according to some embodiments of the present invention.
  • FIGS. 6 to 10 are schematic flowcharts of an image processing method according to some embodiments of the present invention.
  • FIG. 11 and 12 are schematic diagrams of an image processing apparatus according to some embodiments of the present invention.
  • FIG. 13 is a schematic diagram of an electronic device according to some embodiments of the present invention.
  • FIG. 14 is a schematic diagram of a connection between an electronic device and a computer-readable storage medium according to some embodiments of the present invention.
  • FIG. 15 is a schematic diagram of a movable platform according to some embodiments of the present invention.
  • Mobile platform 1000 electronic device 100, image processing device 10, first acquisition module 11, second acquisition module 12, third acquisition module 13, fourth acquisition module 14, update module 15, generation module 16, processor 20, Power unit 200, computer-readable storage medium 400.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality” is two or more, unless specifically defined otherwise.
  • connection should be understood in a broad sense unless otherwise specified and limited.
  • they may be fixed connections or removable.
  • Connection, or integral connection can be mechanical, electrical, or can communicate with each other; can be directly connected, or indirectly connected through an intermediate medium, can be the internal communication of two elements or the interaction of two elements relationship.
  • connection, or integral connection can be mechanical, electrical, or can communicate with each other; can be directly connected, or indirectly connected through an intermediate medium, can be the internal communication of two elements or the interaction of two elements relationship.
  • an image processing method includes:
  • the input image includes multiple input pixel values.
  • the image processing method obtains the corresponding relationship between the input pixel value and the output pixel value according to the adjustment parameter, so that the input pixel value of the input image can be processed to obtain the output image according to the corresponding relationship, that is, the adjustment parameter and the input can be obtained according to the adjustment parameter.
  • the image gets the output image quickly.
  • acquiring the input image may specifically be controlling the image capture device (such as a camera) to capture the input image, wherein the input image may be a preview image or an image saved by the image capture device and stored in a storage element. In this way, after the input image is collected by the image collector, the input image can be quickly processed according to the adjustment parameter to obtain an output image. It can be understood that, in other embodiments, the input image may also be obtained in other ways. For example, acquiring an input image may be reading an input image stored in a storage element. For another example, acquiring an input image may be downloading an input image from a server, etc., which is not specifically limited herein.
  • the number of input images may be one or more frames, and the input images may be visible light images, infrared images, X-ray images, and the like.
  • the format of the input image includes, but is not limited to, YUV, RGB, RAW, and so on.
  • acquiring the adjustment parameter may specifically determine the adjustment parameter according to user input, for example, the user may input the adjustment parameter by means of text input, voice input, triggering a virtual key, and the like. It can be understood that, in other embodiments, the adjustment parameter may also be obtained in other ways.
  • the adjustment parameter may be a preset parameter, the preset parameter is stored in the storage element in advance, and the preset parameter in the storage element may be directly read when the adjustment parameter is obtained.
  • the input image may be pre-processed to obtain the information of the input image. The information of the input image may include, but is not limited to, brightness and color, and then the adjustment parameters are determined according to the information of the input image, which is not specifically limited herein.
  • the input image is an image in RGB space
  • the input pixel value includes a red channel pixel value, a green channel pixel value, and a blue channel pixel value.
  • the red channel pixel value When the input image is processed by using the adjustment parameter, the red channel pixel value , The pixel values of the green channel and the pixel values of the blue channel share the same correspondence. In this way, it is possible to ensure synchronous adjustment of the input image without unreasonably changing the color of the output image compared to the input image because only the pixel values of a specific channel are adjusted.
  • the image processing method according to the embodiment of the present invention may also process pixel values of only one channel, which is not specifically limited herein.
  • an image processing method is used to process a video.
  • the video includes multiple frames of input images.
  • the image processing method further includes:
  • Step 04 includes:
  • the image processing method according to the embodiment of the present invention may be used to process a video, where the video includes multiple frames of input images.
  • the embodiment of the present invention can process the video by adjusting the parameters.
  • the adjustment parameters have not changed (for example, the user has not re-entered the adjustment parameters)
  • the original adjustment parameters will be processed.
  • the adjustment parameter changes for example, the user re-enters the adjustment parameter
  • the corresponding relationship can be updated in real time according to the changed adjustment parameter, so as to obtain the output pixel value according to the updated correspondence relationship and the input pixel value to obtain an output image.
  • the video processing speed of the prior art is slow, which cannot satisfy the real-time processing of the video during the video playback process, and the real-time image of the present invention
  • the processing method can directly process the input image in RGB space through the corresponding relationship, so its processing speed is fast, so that it can meet the real-time processing requirements of high-definition video.
  • Step 03 includes:
  • 031 Get the exponential curve function or S-curve function of the corresponding curvature according to the adjustment parameter.
  • the image processing method may use an exponential curve function or an S-curve function to process the input image.
  • an exponential curve function or an S-curve function corresponding to the curvature may be obtained according to the adjustment function, and then the exponential curve function and the input may be used.
  • the exponential curve function or the S-curve function can make the output pixel value more accurate and make the output image have a stronger sense of hierarchy.
  • the adjustment parameter includes a brightness adjustment parameter
  • the correspondence relationship includes a brightness correspondence relationship
  • Step 04 includes:
  • a user in order to adjust the brightness of an input image, may input a brightness adjustment parameter.
  • the image processing method obtains a brightness correspondence relationship according to the brightness adjustment parameter, and then according to the brightness correspondence relationship Obtain the output pixel value with the input pixel value to obtain the output image.
  • the output image at this time is the image after brightness adjustment. In this way, the user can quickly adjust the brightness of the input image by inputting the brightness adjustment parameter.
  • the brightness adjustment parameter when the brightness adjustment parameter is greater than zero, the brightness of the output image is greater than the brightness of the input image, and when the brightness adjustment parameter is less than zero, the brightness of the output image is less than the brightness of the input image, that is, by entering a greater than zero Parameter to increase the brightness of the input image, and lower the brightness of the input image by entering a parameter less than zero.
  • the larger the brightness adjustment parameter the larger the brightness of the output image of the same input image; the smaller the brightness adjustment parameter, the smaller the brightness of the output image of the same input image. In this way, the setting of the brightness adjustment parameter is more in line with the adjustment logic of the user, and the user can more conveniently use the image processing method of the embodiment of the present invention to control the brightness of the output image.
  • the relationship between the brightness adjustment parameter, the input image, and the output image is just an example.
  • the brightness adjustment parameter when the brightness adjustment parameter is less than zero, the brightness of the output image is greater than the brightness of the input image, and when the brightness adjustment parameter is greater than zero, the brightness of the output image is less than the brightness of the input image; or
  • the brightness adjustment parameter is greater than the preset value, the brightness of the output image is greater than the brightness of the input image.
  • the brightness adjustment parameter is less than the preset value, the brightness of the output image is less than the brightness of the input image, etc., where the preset value may be non-zero Any value of.
  • the larger the brightness adjustment parameter the smaller the brightness of the output image of the same input image; the smaller the brightness adjustment parameter, the greater the brightness of the output image of the same input image, which is not specifically limited herein.
  • the adjustment parameter includes a contrast adjustment parameter
  • the corresponding relationship includes a contrast corresponding relationship.
  • Step 04 includes:
  • the traditional contrast adjustment algorithm uses a histogram equalization method.
  • the gray value is adjusted by using a cumulative function, the image is stretched non-linearly, and the image pixel value is redistributed to make the number of pixels in a certain gray range approximately.
  • the traditional contrast adjustment process is complicated, thereby making the adjustment speed slow.
  • a user may input a contrast adjustment parameter.
  • the image processing method of the embodiment of the present invention obtains a contrast correspondence according to the contrast adjustment parameter, and then according to the contrast correspondence and input
  • the pixel value is used to obtain an output pixel value to obtain an output image.
  • the output image is an image after the contrast is adjusted. In this way, the user can quickly adjust the contrast of the input image by entering a contrast adjustment parameter.
  • the contrast correspondence is a piecewise exponential curve function.
  • the piecewise exponential curve function includes, for example, a two-stage exponential curve function, and the two-stage exponential curve function forms an S-curve function. Using the S-curve function and the input pixel value to obtain the output pixel value can adjust the contrast of the output image.
  • the contrast adjustment parameter when the contrast adjustment parameter is greater than zero, the contrast of the output image is greater than the contrast of the input image, and when the contrast adjustment parameter is less than zero, the contrast of the output image is less than the contrast of the input image, that is, by entering a greater than zero Parameter to increase the contrast of the input image, and enter a parameter less than zero to decrease the contrast of the input image.
  • the larger the contrast adjustment parameter the larger the contrast of the output image of the same input image; the smaller the contrast adjustment parameter, the smaller the contrast of the output image of the same input image. In this way, the setting of the contrast adjustment parameter is more in line with the adjustment logic of the user, and the user can more conveniently use the image processing method of the embodiment of the present invention to control the contrast of the output image.
  • the relationship between the above-mentioned contrast adjustment parameters, the input image, and the output image is merely an example.
  • the contrast adjustment parameter when the contrast adjustment parameter is less than zero, the contrast of the output image is greater than the contrast of the input image, and when the contrast adjustment parameter is greater than zero, the contrast of the output image is less than the contrast of the input image; or
  • the contrast adjustment parameter is greater than the preset value, the contrast of the output image is greater than the contrast of the input image.
  • the contrast adjustment parameter is less than the preset value, the contrast of the output image is less than the contrast of the input image, etc., where the preset value may be non-zero Any value of.
  • the larger the contrast adjustment parameter the smaller the contrast of the output image of the same input image; the smaller the contrast adjustment parameter, the greater the contrast of the output image of the same input image, which is not specifically limited herein.
  • the adjustment parameters include a brightness adjustment parameter and a contrast adjustment parameter.
  • Step 03 includes:
  • Step 04 includes:
  • a user may input a brightness adjustment parameter and a contrast adjustment parameter.
  • the image processing method according to the embodiment of the present invention may obtain a brightness correspondence according to the brightness adjustment parameter. Relationship, according to the contrast adjustment parameter to obtain the contrast correspondence, then obtain the intermediate pixel value according to the brightness correspondence and the input pixel value, and then obtain the output pixel value according to the contrast correspondence and the intermediate pixel value to obtain the output image, that is, the input image Perform the brightness adjustment first and then the contrast adjustment to obtain the output image.
  • the user can quickly adjust the brightness and contrast of the input image by entering the brightness adjustment parameters and contrast adjustment parameters.
  • the adjustment parameters include a brightness adjustment parameter and a contrast adjustment parameter.
  • Step 03 includes:
  • Step 04 includes:
  • a user may input a brightness adjustment parameter and a contrast adjustment parameter.
  • the image processing method according to the embodiment of the present invention may obtain a brightness correspondence according to the brightness adjustment parameter. Relationship, according to the contrast adjustment parameter to obtain the contrast correspondence, then obtain the intermediate pixel value according to the contrast correspondence and the input pixel value, and then obtain the output pixel value according to the brightness correspondence and the intermediate pixel value to obtain the output image, that is, the input image Perform the contrast adjustment first and then the brightness adjustment to obtain the output image.
  • the user can quickly adjust the brightness and contrast of the input image by entering the brightness adjustment parameters and contrast adjustment parameters.
  • the brightness correspondence is Among them, y is an output pixel value, x is an input pixel value, b is a brightness adjustment parameter, f (b) is a conversion function of the brightness adjustment parameter, 0.5 ⁇ f (b) ⁇ 2, and z is a number of bits. Specifically, the number of bits z ⁇ 8, the larger the value of z, the larger the color range of the image, and the larger the storage space required for the image. The smaller the value of z, the smaller the color range of the image. At the same time, the storage space required for the image will also be reduced. In the embodiment of the present invention, if z is 8, for example, the brightness correspondence relationship is
  • f (b) can be set according to user needs.
  • f (b) 0.5 -b , and the range of b is -1 to 1.
  • the brightness of the output image is less than the brightness of the input image; at b When it is 0, the brightness of the output image is equal to the brightness of the input image; when b is greater than 0 and less than or equal to 1, the brightness of the output image is greater than the brightness of the input image.
  • f (b) 0.5 b
  • the range of b is -1 to 1.
  • f (b) 0.5- b / 100
  • the value of b ranges from -100 to 100.
  • the user can input brightness adjustment parameters in different ranges according to different f (b), and can switch the control logic of the brightness adjustment parameter to the output image. , The larger the output image brightness of the same input image; the larger the brightness adjustment parameter, the smaller the output image brightness of the same input image, and so on.
  • the brightness correspondence relationship is
  • the input pixel value is, for example, the red channel pixel value r, and the output pixel value is The input pixel value is the green channel pixel value g, and the output pixel value is The input pixel value is the blue channel pixel value b, and the output pixel value is
  • the contrast correspondence is Among them, y is the output pixel value, x is the input pixel value, c is the contrast adjustment parameter, and f (c) is the conversion function of the contrast adjustment parameter, z is the number of bits. Specifically, the number of bits z ⁇ 8, the larger the value of z, the larger the color range of the image, and the larger the storage space required for the image. The smaller the value of z, the smaller the color range of the image. At the same time, the storage space required for the image will also be reduced. In the embodiment of the present invention, if z is 8, for example, the contrast correspondence relationship is
  • f (c) can be set according to user needs.
  • f (c) 1.5 c
  • the range of b is -1 to 1.
  • c is greater than or equal to -1 and less than 0
  • the contrast of the output image is smaller than that of the input image; where c is When 0, the contrast of the output image is equal to the contrast of the input image; when c is greater than 0 and less than or equal to 1, the contrast of the output image is greater than the contrast of the input image.
  • f (c) 1.5 -c
  • the range of c is -1 to 1.
  • the contrast of the output image is greater than the contrast of the input image;
  • the contrast of the output image is equal to the contrast of the input image;
  • the contrast of the output image is less than the contrast of the input image.
  • f (c) 1.5 c / 100
  • the value of c ranges from -100 to 100.
  • the control logic of the contrast adjustment parameter on the output image includes, for example, the larger the contrast adjustment parameter , The larger the output image contrast of the same input image; the larger the contrast adjustment parameter, the smaller the output image contrast of the same input image, and so on.
  • the image processing method further includes:
  • Step 04 includes:
  • 048 Obtain an output pixel value according to a lookup table and an input pixel value to obtain an output image.
  • the brightness correspondence relationship is A lookup table is generated according to the brightness correspondence relationship.
  • the lookup table is a one-dimensional lookup table
  • the one-dimensional lookup table may default to x, for example, the default x changes from 1 to 2 z -1 at this time.
  • the one-dimensional lookup table can make the storage space required by the lookup table smaller.
  • an image processing apparatus 10 includes a first acquisition module 11, a second acquisition module 12, a third acquisition module 13, and a fourth acquisition module 14.
  • the image processing method according to the embodiment of the present invention may be implemented by the image processing apparatus 10 according to the embodiment of the present invention, wherein step 01 may be implemented by the first acquisition module 11, step 02 may be implemented by the second acquisition module 12, and step 03 may be implemented by the third
  • the acquisition module 13 is implemented, and step 04 may be implemented by the fourth acquisition module 14. That is to say, the first acquisition module 11 may be configured to acquire an input image, and the input image includes multiple input pixel values.
  • the second acquisition module 12 may be configured to acquire an adjustment parameter.
  • the third obtaining module 13 may be configured to obtain a correspondence between an input pixel value and an output pixel value according to the adjustment parameter.
  • the fourth obtaining module 14 may be configured to obtain an output pixel value to obtain an output image according to the corresponding relationship and the input pixel value.
  • the image processing device 10 obtains the correspondence between the input pixel value and the output pixel value according to the adjustment parameter, so that the input pixel value of the input image can be processed to obtain the output image according to the correspondence relationship.
  • the input image quickly gets the output image.
  • the image processing apparatus 10 is configured to process a video.
  • the video includes multiple frames of input images.
  • the image processing apparatus 10 further includes an update module 15.
  • Step 05 may be implemented by the update module 15, and step 041 may be implemented by the fourth acquisition module 14. That is to say, the update module 15 may be configured to update the corresponding relationship according to the changed adjustment parameter when the adjustment parameter changes.
  • the fourth obtaining module 14 may be configured to obtain an output pixel value according to the updated correspondence relationship and the input pixel value to obtain an output image.
  • Step 031 may be implemented by the third obtaining module 13. That is to say, the third obtaining module 13 may be configured to obtain an exponential curve function or an S-curve function corresponding to the curvature according to the adjustment parameter.
  • the adjustment parameter includes a brightness adjustment parameter
  • the correspondence relationship includes a brightness correspondence relationship.
  • Step 032 may be implemented by the third acquisition module 13, and step 042 may be implemented by the fourth acquisition module 14. That is, the third obtaining module 13 may be configured to obtain a brightness correspondence relationship according to a brightness adjustment parameter.
  • the fourth acquisition module 14 may be configured to acquire an output pixel value to obtain an output image according to the brightness correspondence and the input pixel value.
  • the brightness adjustment parameter when the brightness adjustment parameter is greater than zero, the brightness of the output image is greater than that of the input image, and when the brightness adjustment parameter is less than zero, the brightness of the output image is less than the brightness of the input image.
  • the adjustment parameter includes a contrast adjustment parameter
  • the correspondence relationship includes a contrast correspondence relationship.
  • Step 033 may be implemented by the third acquisition module 13, and step 043 may be implemented by the fourth acquisition module 14. That is to say, the third acquisition module 13 may be configured to acquire a contrast correspondence relationship according to a contrast adjustment parameter.
  • the fourth obtaining module 14 may be configured to obtain an output pixel value to obtain an output image according to the contrast correspondence and the input pixel value.
  • the contrast adjustment parameter when the contrast adjustment parameter is greater than zero, the contrast of the output image is greater than the contrast of the input image, and when the contrast adjustment parameter is less than zero, the contrast of the output image is less than the contrast of the input image.
  • the adjustment parameters include a brightness adjustment parameter and a contrast adjustment parameter.
  • Steps 032 and 033 may be implemented by the third acquisition module 13, and steps 044 and 045 may be implemented by the fourth acquisition module 14. That is, the third obtaining module 13 may be configured to obtain a brightness correspondence relationship according to a brightness adjustment parameter, and obtain a contrast correspondence relationship according to a contrast parameter.
  • the fourth obtaining module 14 may be configured to obtain an intermediate pixel value according to the brightness correspondence relationship and the input pixel value, and obtain an output pixel value according to the contrast correspondence relationship and the intermediate pixel value to obtain an output image.
  • the adjustment parameters include a brightness adjustment parameter and a contrast adjustment parameter.
  • Steps 032 and 033 may be implemented by the third acquisition module 13, and steps 046 and 047 may be implemented by the fourth acquisition module 14. That is, the third obtaining module 13 may be configured to obtain a brightness correspondence relationship according to a brightness adjustment parameter, and obtain a contrast correspondence relationship according to a contrast parameter.
  • the fourth obtaining module 14 may be configured to obtain an intermediate pixel value according to the contrast correspondence relationship and the input pixel value, and obtain an output pixel value according to the brightness correspondence relationship and the intermediate pixel value to obtain an output image.
  • the brightness correspondence is Among them, y is an output pixel value, x is an input pixel value, b is a brightness adjustment parameter, f (b) is a conversion function of the brightness adjustment parameter, 0.5 ⁇ f (b) ⁇ 2, and z is a number of bits.
  • the contrast correspondence is Among them, y is the output pixel value, x is the input pixel value, c is the contrast adjustment parameter, and f (c) is the conversion function of the contrast adjustment parameter, z is the number of bits.
  • the image processing apparatus 10 further includes a generating module 16.
  • Step 06 may be implemented by the generation module 16, and step 048 may be implemented by the fourth acquisition module 14. That is, the generating module 16 may be configured to generate a lookup table of the input pixel value and the output pixel value according to the corresponding relationship.
  • the fourth obtaining module 14 may be configured to obtain an output pixel value according to a lookup table and an input pixel value to obtain an output image.
  • the division of the various modules in the above-mentioned image processing apparatus 10 is only for illustration. In other embodiments, the image processing apparatus 10 may be divided into different modules as needed to complete all or part of the functions of the above-mentioned image processing apparatus 10.
  • an electronic device 100 includes a processor 20.
  • the image processing method according to the embodiment of the present invention may be implemented by the electronic device 100 according to the embodiment of the present invention, wherein step 01, step 02, step 03, and step 04 may be implemented by the processor 20. That is to say, the processor 20 may be configured to obtain an input image, where the input image includes multiple input pixel values, obtaining adjustment parameters, obtaining the correspondence between the input pixel value and the output pixel value according to the adjustment parameter, and the correspondence relationship and the input pixel value Get the output pixel value to get the output image.
  • the electronic device 100 obtains the correspondence between the input pixel value and the output pixel value according to the adjustment parameter, so that the input pixel value of the input image can be processed to obtain the output image according to the correspondence relationship, that is, the output image can be obtained according to the adjustment parameter and input
  • the image gets the output image quickly.
  • the electronic device 100 may be a camera, a mobile phone, a tablet computer, a laptop computer, a game console, a headset device, an access control system, a teller machine, etc., and is not limited herein.
  • the electronic device 100 is used to process video, and the video includes multiple frames of input images.
  • Step 05 and step 041 may be implemented by the processor 20. That is to say, the processor 20 may be configured to update the corresponding relationship according to the changed adjustment parameter when the adjustment parameter is changed, and obtain the output pixel value according to the updated corresponding relationship and the input pixel value to obtain an output image.
  • the correspondence relationship is an exponential curve function or an S curve function.
  • Step 031 may be implemented by the processor 20. That is, the processor 20 may be configured to obtain an exponential curve function or an S-curve function corresponding to the curvature according to the adjustment parameter.
  • the adjustment parameter includes a brightness adjustment parameter
  • the correspondence relationship includes a brightness correspondence relationship.
  • Steps 032 and 042 may be implemented by the processor 20. That is, the processor 20 may be configured to obtain a brightness correspondence relationship according to a brightness adjustment parameter, and obtain an output pixel value to obtain an output image according to the brightness correspondence relationship and an input pixel value.
  • the brightness adjustment parameter when the brightness adjustment parameter is greater than zero, the brightness of the output image is greater than the brightness of the input image, and when the brightness adjustment parameter is less than zero, the brightness of the output image is less than the brightness of the input image.
  • the adjustment parameter includes a contrast adjustment parameter
  • the correspondence relationship includes a contrast correspondence relationship.
  • Steps 033 and 043 may be implemented by the processor 20. That is, the processor 20 may be configured to obtain a contrast correspondence relationship according to the contrast adjustment parameter, and obtain an output pixel value to obtain an output image according to the contrast correspondence relationship and the input pixel value.
  • the contrast adjustment parameter when the contrast adjustment parameter is greater than zero, the contrast of the output image is greater than the contrast of the input image, and when the contrast adjustment parameter is less than zero, the contrast of the output image is less than the contrast of the input image.
  • the adjustment parameters include a brightness adjustment parameter and a contrast adjustment parameter.
  • Steps 032, 033, 044, and 045 may be implemented by the processor 20. That is to say, the processor 20 may be configured to obtain the brightness correspondence relationship according to the brightness adjustment parameter, obtain the contrast correspondence relationship according to the contrast parameter, obtain the intermediate pixel value according to the brightness correspondence relationship and the input pixel value, and obtain according to the contrast correspondence relationship and the intermediate pixel value. Output pixel values to get the output image.
  • the adjustment parameters include a brightness adjustment parameter and a contrast adjustment parameter.
  • Steps 032, 033, 046, and 047 may be implemented by the processor 20. That is, the processor 20 may be configured to obtain the brightness correspondence relationship according to the brightness adjustment parameter, obtain the contrast correspondence relationship according to the contrast parameter, obtain the intermediate pixel value according to the contrast correspondence relationship and the input pixel value, and obtain the brightness corresponding relationship and the intermediate pixel value. Output pixel values to get the output image.
  • the brightness correspondence is Among them, y is an output pixel value, x is an input pixel value, b is a brightness adjustment parameter, f (b) is a conversion function of the brightness adjustment parameter, 0.5 ⁇ f (b) ⁇ 2, and z is a number of bits.
  • the contrast correspondence is Among them, y is the output pixel value, x is the input pixel value, c is the contrast adjustment parameter, and f (c) is the conversion function of the contrast adjustment parameter, z is the number of bits.
  • steps 06 and 048 may be implemented by the processor 20. That is to say, the processor 20 may be configured to generate a lookup table of the input pixel value and the output pixel value according to the correspondence relationship, and obtain an output pixel value according to the lookup table and the input pixel value to obtain an output image.
  • a computer-readable storage medium 400 includes a computer program that can be executed by the processor 20 to complete the image processing method of any one of the foregoing embodiments.
  • a computer program may be executed by the processor 20 to perform the image processing method described in the following steps:
  • the input image includes multiple input pixel values.
  • the computer program may also be executed by the processor 20 to complete the image processing method described in the following steps:
  • a movable platform 1000 includes the electronic device 100 and the power device 200 according to any one of the foregoing embodiments.
  • the movable platform 1000 includes, for example, a gimbal, an aircraft, a car, a robot, a surface-end mobile device, and the like.
  • the power plant 200 includes, for example, a shaft, a propeller, a wheel, and the like.
  • Any process or method description in a flowchart or otherwise described herein can be understood as representing a module, fragment, or portion of code that includes one or more executable instructions for performing a particular logical function or step of a process
  • the scope of the preferred embodiments of the present invention includes additional implementations, in which the functions may be performed out of the order shown or discussed, including performing the functions in a substantially simultaneous manner or in the reverse order according to the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present invention pertain.
  • Logic and / or steps represented in a flowchart or otherwise described herein, for example, a ordered list of executable instructions that may be considered to perform a logical function may be embodied in any computer-readable medium, For use by, or in combination with, an instruction execution system, device, or device (such as a computer-based system, a system that includes a processor, or another system that can fetch and execute instructions from an instruction execution system, device, or device) Or equipment.
  • a "computer-readable medium” may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
  • computer-readable media include the following: electrical connections (electronic devices) with one or more wirings, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
  • a person of ordinary skill in the art can understand that performing all or part of the steps carried by the foregoing implementation method can be completed by a program instructing related hardware.
  • the program can be stored in a computer-readable storage medium, and the program is executing , Including one or a combination of the steps of the method embodiments.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist separately physically, or two or more units may be integrated into one module.
  • the above integrated modules can be executed in the form of hardware or software functional modules. When the integrated module is executed in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
  • the aforementioned storage medium may be a read-only memory, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Image Processing (AREA)

Abstract

一种图像处理方法、图像处理装置(10)、电子装置(100)和计算机可读存储介质(400)。图像处理方法包括:获取输入图像,输入图像包括多个输入像素值(01);获取调节参数(02);根据调节参数获取输入像素值和输出像素值的对应关系(03);根据对应关系和输入像素值获取输出像素值以得到输出图像(04)。

Description

图像处理方法、图像处理装置、电子装置和存储介质 技术领域
本发明涉及图像处理技术,特别涉及一种图像处理方法、图像处理装置、电子装置和计算机可读存储介质。
背景技术
在对图像进行调节时,可以是通过图像像素对图像的亮度、对比度等进行调节。其中,在对图像亮度调节时,一般是先将图像像素的RGB转换为HSL(HSV)等颜色空间,对亮度部分进行增减调整后,再转换为RGB空间,其调节过程比较复杂,导致亮度调节速度慢。
发明内容
本发明的实施方式提供一种图像处理方法、图像处理装置、电子装置和计算机可读存储介质。
本发明图像处理方法包括:获取输入图像,所述输入图像包括多个输入像素值;获取调节参数;根据所述调节参数获取所述输入像素值和输出像素值的对应关系;及根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像。
本发明实施方式的图像处理装置包括第一获取模块、第二获取模块、第三获取模块和第四获取模块。所述第一获取模块用于获取输入图像,所述输入图像包括多个输入像素值。所述第二获取模块用于获取调节参数。所述第三获取模块用于根据所述调节参数获取所述输入像素值和输出像素值的对应关系。所述第四获取模块用于根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像。
本发明实施方式的电子装置包括处理器,所述处理器用于:获取输入图像,所述输入图像包括多个输入像素值、获取调节参数、根据所述调节参数获取所述输入像素值和输出像素值的对应关系、及根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像。
本发明实施方式的计算机可读存储介质,其上存储有计算机程序,所述计算机程序可被处理器执行以完成上述图像处理方法。
本发明实施方式提供了一种图像处理方法、图像处理装置、电子装置和计算机可读存储介质。在图像处理方法中,根据调节参数获取输入像素值和输出像素值的对应关系,从而可以根据该对应关系对输入图像的输入像素值进行处理以得到输出图像,即可以根据调节参数和输入图像快速地得到输出图像。
本发明的实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实施方式的实践了解到。
附图说明
本发明的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:
图1至图3是本发明某些实施方式的图像处理方法的流程示意图;
图4和图5是本发明某些实施方式的对应关系的示意图;
图6至图10是本发明某些实施方式的图像处理方法的流程示意图;
图11和图12是本发明某些实施方式的图像处理装置的示意图;
图13是本发明某些实施方式的电子装置的示意图;
图14是本发明某些实施方式的电子装置和计算机可读存储介质的连接示意图;
图15是本发明某些实施方式的可移动平台的示意图。
主要元件符号附图说明:
可移动平台1000、电子装置100、图像处理装置10、第一获取模块11、第二获取模块12、第三获取模块13、第四获取模块14、更新模块15、生成模块16、处理器20、动力装置200、计算机可读存储介质400。
具体实施方式
下面详细描述本发明的实施方式,所述实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。
在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通信;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。
下文的公开提供了许多不同的实施方式或例子用来实现本发明的不同结构。为了简化 本发明的公开,下文中对特定例子的部件和设置进行描述。当然,它们仅仅为示例,并且目的不在于限制本发明。此外,本发明可以在不同例子中重复参考数字和/或参考字母,这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施方式和/或设置之间的关系。此外,本发明提供了的各种特定的工艺和材料的例子,但是本领域普通技术人员可以意识到其他工艺的应用和/或其他材料的使用。
下面详细描述本发明的实施方式,所述实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。
请参阅图1,本发明实施方式的图像处理方法包括:
01:获取输入图像,输入图像包括多个输入像素值;
02:获取调节参数;
03:根据调节参数获取输入像素值和输出像素值的对应关系;及
04:根据对应关系和输入像素值获取输出像素值以得到输出图像。
本发明实施方式的图像处理方法根据调节参数获取输入像素值和输出像素值的对应关系,从而可以根据该对应关系对输入图像的输入像素值进行处理以得到输出图像,即可以根据调节参数和输入图像快速地得到输出图像。
在某些实施方式中,获取输入图像,具体可以为控制图像采集器(例如摄像头)采集输入图像,其中,输入图像可以是预览图像、或由图像采集器输出后保存至存储元件中的图像。如此,可以在图像采集器采集输入图像后,根据调节参数快速地处理输入图像以得到输出图像。可以理解,在其他实施方式中,输入图像也可以通过其他方式获得。例如,获取输入图像可以是读取存储元件中存储的输入图像。又例如,获取输入图像可以是从服务器下载输入图像等,在此不做具体限定。
在某些实施方式中,输入图像的数量可以为一帧或多帧,输入图像可以为可见光图像、红外图像、X光图像等。输入图像的格式包括但不限于YUV、RGB、RAW等。
在某些实施方式中,获取调节参数,具体可以为根据用户输入确定调节参数,例如用户可通过文字输入、语音输入、触发虚拟按键等方式输入调节参数。可以理解,在其他实施方式中,调节参数也可以通过其他方式获得。例如,调节参数可以是预设参数,预设参数预先保存在存储元件中,获取调节参数时可以直接读取存储元件中的预设参数。又例如,可以先对输入图像进行预处理以获得输入图像的信息,输入图像的信息可以包括但不限于亮度、色彩等,再根据输入图像的信息确定调节参数,在此不做具体限定。
在某些实施方式中,输入图像为RGB空间的图像,输入像素值包括红色通道像素值、绿色通道像素值和蓝色通道像素值,其中,在利用调节参数处理输入图像时,红色通道像 素值、绿色通道像素值和蓝色通道像素值共用同一对应关系。如此,能够保证对输入图像的同步调节,而不会因为仅仅调节特定通道的像素值而使得输出图像相较于输入图像的色彩发生不合理变化。
在另一些实施方式中,本发明实施方式的图像处理方法也可以只对一个通道的像素值进行处理,在此不做具体限定。
请参阅图2,在某些实施方式中,图像处理方法用于处理视频,视频包括多帧输入图像,图像处理方法还包括:
05:在调节参数发生变化时,根据变化后的调节参数更新对应关系;
步骤04包括:
041:根据更新后的对应关系和输入像素值获取输出像素值以得到输出图像。
具体地,本发明实施方式的图像处理方法可以用于处理视频,其中视频包括多帧输入图像。在视频连续播放的过程中,本发明实施方式可以通过调节参数对视频进行处理,在处理过程中,若调节参数没有发生变化(例如用户没有重新输入调节参数),则按原有的调节参数处理视频,若调节参数发生变化(例如用户重新输入了调节参数),则可以根据变化后的调节参数实时更新对应关系,从而根据更新后的对应关系和输入像素值获取输出像素值以得到输出图像。需要说明的是,在视频分辨率较高时,例如1080P的高清视频,现有技术对视频的处理速度较慢,无法满足在视频播放过程中对视频进行实时处理,而本发明实时方式的图像处理方法可以直接通过对应关系处理RGB空间的输入图像,因此,其处理速度较快,从而能够满足高清视频的实时处理要求。
请参阅图3至图5,在某些实施方式中,对应关系为指数曲线函数或S曲线函数,步骤03包括:
031:根据调节参数获取对应曲率的指数曲线函数或S曲线函数。
具体地,若直接将输入像素值加上或减去某个像素值以得到输出像素值,则会导致输入图像的信息大量损失,使得输出图像变得平淡、无层次感。本发明实施方式的图像处理方法可以采用指数曲线函数或S曲线函数来对输入图像进行处理,具体地,可以根据调节函数获取对应曲率的指数曲线函数或S曲线函数,再根据指数曲线函数和输入像素值获取输出像素值、或根据S曲线函数和输入像素值获取输出像素值,通过指数曲线函数或S曲线函数可以使得输出像素值更加准确,使得输出图像的层次感更强。
请参阅图6,在某些实施方式中,调节参数包括亮度调节参数,对应关系包括亮度对应关系,步骤03包括:
032:根据亮度调节参数获取亮度对应关系;
步骤04包括:
042:根据亮度对应关系和输入像素值获取输出像素值以得到输出图像。
具体地,在某些实施方式中,为了实现对输入图像的亮度进行调节,用户可以输入亮度调节参数,本发明实施方式的图像处理方法会根据亮度调节参数获取亮度对应关系,然后根据亮度对应关系和输入像素值获取输出像素值以得到输出图像,此时的输出图像为亮度调节后的图像,如此,用户可以通过输入亮度调节参数对输入图像的亮度进行快速地调节。
在某些实施方式中,在亮度调节参数大于零时,输出图像的亮度大于输入图像的亮度,在亮度调节参数小于零时,输出图像的亮度小于输入图像的亮度,即通过输入一个大于零的参数来调高输入图像的亮度,通过输入一个小于零的参数来调低输入图像的亮度。另外,亮度调节参数越大,同一输入图像的输出图像的亮度也越大;亮度调节参数越小,同一输入图像的输出图像的亮度也越小。如此,亮度调节参数的设置比较符合用户的调节逻辑,用户可以更加方便地利用本发明实施方式的图像处理方法来控制输出图像的亮度。
当然,上述亮度调节参数、输入图像和输出图像的关系只是示例说明。在其他实施方式中,也可以是:在亮度调节参数小于零时,输出图像的亮度大于输入图像的亮度,在亮度调节参数大于零时,输出图像的亮度小于输入图像的亮度;或者是:在亮度调节参数大于预设值时,输出图像的亮度大于输入图像的亮度,在亮度调节参数小于预设值时,输出图像的亮度小于输入图像的亮度等,其中,预设值可以是不为零的任意数值。另外,亮度调节参数越大,同一输入图像的输出图像的亮度可以越小;亮度调节参数越小,同一输入图像的输出图像的亮度可以越大,在此不做具体限定。
请参阅图7,在某些实施方式中,调节参数包括对比度调节参数,对应关系包括对比度对应关系,步骤03包括:
033:根据对比度调节参数获取对比度对应关系;
步骤04包括:
043:根据对比度对应关系和输入像素值获取输出像素值以得到输出图像。
具体地,传统的对比度调整算法采用直方图均衡的办法,通过使用累积函数对灰度值进行调整,对图像进行非线性拉伸,重新分配图像像素值,使一定灰度范围内的像素数量大致相同,以实现对比度的增强,传统的对比度调整过程复杂,从而使得调整速度慢。而在本发明实施方式中,为了实现对输入图像的对比度进行调节,用户可以输入对比度调节参数,本发明实施方式的图像处理方法会根据对比度调节参数获取对比度对应关系,然后根据对比度对应关系和输入像素值获取输出像素值以得到输出图像,此时的输出图像为对比度调节后的图像。如此,用户可以通过输入对比度调节参数对输入图像的对比度进行快速地调节。
请再次参阅图5,在某些实施方式中,对比度对应关系为分段指数曲线函数,分段指数曲线函数例如包括两段指数曲线函数,两段指数曲线函数形成S曲线函数。利用S曲线函数和输入像素值获取输出像素值可以调节输出图像的对比度。
在某些实施方式中,在对比度调节参数大于零时,输出图像的对比度大于输入图像的对比度,在对比度调节参数小于零时,输出图像的对比度小于输入图像的对比度,即通过输入一个大于零的参数来调高输入图像的对比度,通过输入一个小于零的参数来调低输入图像的对比度。另外,对比度调节参数越大,同一输入图像的输出图像的对比度也越大;对比度调节参数越小,同一输入图像的输出图像的对比度也越小。如此,对比度调节参数的设置比较符合用户的调节逻辑,用户可以更加方便地利用本发明实施方式的图像处理方法来控制输出图像的对比度。
当然,上述对比度调节参数、输入图像和输出图像的关系只是示例说明。在其他实施方式中,也可以是:在对比度调节参数小于零时,输出图像的对比度大于输入图像的对比度,在对比度调节参数大于零时,输出图像的对比度小于输入图像的对比度;或者是:在对比度调节参数大于预设值时,输出图像的对比度大于输入图像的对比度,在对比度调节参数小于预设值时,输出图像的对比度小于输入图像的对比度等,其中,预设值可以是不为零的任意数值。另外,对比度调节参数越大,同一输入图像的输出图像的对比度可以越小;对比度调节参数越小,同一输入图像的输出图像的对比度可以越大,在此不做具体限定。
请参阅图8,在某些实施方式中,调节参数包括亮度调节参数和对比度调节参数,步骤03包括:
032:根据亮度调节参数获取亮度对应关系;
033:根据对比度参数获取对比度对应关系;
步骤04包括:
044:根据亮度对应关系和输入像素值获取中间像素值;
045:根据对比度对应关系和中间像素值获取输出像素值以得到输出图像。
具体地,在某些实施方式中,为了实现对输入图像的亮度和对比度同时进行调节,用户可以输入亮度调节参数和对比度调节参数,本发明实施方式的图像处理方法会根据亮度调节参数获取亮度对应关系,根据对比度调节参数获取对比度对应关系,然后根据亮度对应关系和输入像素值获取中间像素值,再根据对比度对应关系和中间像素值获取输出像素值以得到输出图像,也即是说,输入图像先进行亮度调节后再进行对比度调节以获得输出图像,如此,用户可以通过输入亮度调节参数和对比度调节参数对输入图像的亮度和对比度进行快速地调节。
请参阅图9,在某些实施方式中,调节参数包括亮度调节参数和对比度调节参数,步骤03包括:
032:根据亮度调节参数获取亮度对应关系;
033:根据对比度参数获取对比度对应关系;
步骤04包括:
046:根据对比度对应关系和输入像素值获取中间像素值;
047:根据亮度对应关系和中间像素值获取输出像素值以得到输出图像。
具体地,在某些实施方式中,为了实现对输入图像的亮度和对比度同时进行调节,用户可以输入亮度调节参数和对比度调节参数,本发明实施方式的图像处理方法会根据亮度调节参数获取亮度对应关系,根据对比度调节参数获取对比度对应关系,然后根据对比度对应关系和输入像素值获取中间像素值,再根据亮度对应关系和中间像素值获取输出像素值以得到输出图像,也即是说,输入图像先进行对比度调节后再进行亮度调节以获得输出图像,如此,用户可以通过输入亮度调节参数和对比度调节参数对输入图像的亮度和对比度进行快速地调节。
在某些实施方式中,亮度对应关系为
Figure PCTCN2018102041-appb-000001
其中,y为输出像素值,x为输入像素值,b为亮度调节参数,f(b)为亮度调节参数的转换函数,0.5≤f(b)≤2,z为比特数。具体地,比特数z≥8,z的取值越大,图像的色彩范围也越大,同时图像所需的存储空间也会增大,z的取值越小,图像的色彩范围也越小,同时图像所需的存储空间也会减小。在本发明实施方式中,z例如为8,则亮度对应关系为
Figure PCTCN2018102041-appb-000002
f(b)可以根据用户需要进行设置。在一个实施例中,f(b)=0.5 -b,b的取值范围为-1至1,在b大于或等于-1且小于0时,输出图像的亮度小于输入图像的亮度;在b为0时,输出图像的亮度等于输入图像的亮度;在b大于0且小于或等于1时,输出图像的亮度大于输入图像的亮度。在另一个实施例中,f(b)=0.5 b,b的取值范围为-1至1,在b大于或等于-1且小于0时,输出图像的亮度大于输入图像的亮度;在b为0时,输出图像的亮度等于输入图像的亮度;在b大于0且小于或等于1时,输出图像的亮度小于输入图像的亮度。在另一个实施例中,f(b)=0.5 -b/100,b的取值范围为-100至100。当然,上述实施例只是示例说明,f(b)可以根据需求进行其他设置。如此,用户可以根据不同的f(b)来输入不同范围的亮度调节参数,并且可以切换亮度调节参数对输出图像的控制逻辑,亮度调节参数对输出图像的控制逻辑例如包括:亮度调节参数越大,同一输入图像的输出图像亮 度越大;亮度调节参数越大,同一输入图像的输出图像亮度越小等。
在一个实施方式中,z=8,f(b)=0.5 -b,b=1,则亮度对应关系为
Figure PCTCN2018102041-appb-000003
Figure PCTCN2018102041-appb-000004
输入像素值例如为红色通道像素值r,则输出像素值为
Figure PCTCN2018102041-appb-000005
输入像素值为绿色通道像素值g,则输出像素值为
Figure PCTCN2018102041-appb-000006
输入像素值为蓝色通道像素值b,则输出像素值为
Figure PCTCN2018102041-appb-000007
在某些实施方式中,对比度对应关系为
Figure PCTCN2018102041-appb-000008
Figure PCTCN2018102041-appb-000009
其中,y为输出像素值,x为输入像素值,c为对比度调节参数,f(c)为对比度调节参数的转换函数,
Figure PCTCN2018102041-appb-000010
z为比特数。具体地,比特数z≥8,z的取值越大,图像的色彩范围也越大,同时图像所需的存储空间也会增大,z的取值越小,图像的色彩范围也越小,同时图像所需的存储空间也会减小。在本发明实施方式中,z例如为8,则对比度对应关系为
Figure PCTCN2018102041-appb-000011
f(c)可以根据用户需要进行设置。在一个实施例中,f(c)=1.5 c,b的取值范围为-1至1,在c大于或等于-1且小于0时,输出图像的对比度小于输入图像的对比度;在c为0时,输出图像的对比度等于输入图像的对比度;在c大于0且小于或等于1时,输出图像的对比度大于输入图像的对比度。在另一个实施例中,f(c)=1.5 -c,c的取值范围为-1至1,在c大于或等于-1且小于0时,输出图像的对比度大于输入图像的对比度;在c为0时,输出图像的对比度等于输入图像的对比度;在c大于0且小于或等于1时,输出图像的对比度小于输入图像的对比度。在另一个实施例中,f(c)=1.5 c/100,c的取值范围为-100至100。当然,上述实施例只是示例说明,f(c)可以根据需求进行其他设置。如此,用户可以根据不同的f(c)来输入不同范围的对比度调节参数,并且可以切换对比度调节参数对输出图像的控制逻辑,对比度调节参数对输出图像的控制逻辑例如包括:对比度调节参数越大,同一输入图像的输出图像对比度越大;对比度调节参数越大,同一输入图像的输出图像对比度越小等。
请参阅图10,在某些实施方式中,图像处理方法还包括:
06:根据对应关系生成输入像素值和输出像素值的查找表;
步骤04包括:
048:根据查找表和输入像素值获取输出像素值以得到输出图像。
具体地,以z=8,f(b)=0.5 -b,b=1为例,则亮度对应关系为
Figure PCTCN2018102041-appb-000012
根据该亮度对应关系生成查找表,查找表例如为:x=1时,
Figure PCTCN2018102041-appb-000013
x=2时,
Figure PCTCN2018102041-appb-000014
…; x=255时,y=255,其中,在y不为整数时,可以通过四舍五入、向上取整、向下取整的方式进行取整操作,具体地,本发明实施方式以四舍五入对y进行取整,则x=1时,y=2;x=2时,y=4;…;x=255时,y=255。如此可以通过查找表查找与输入像素值对应的输出像素值,从而减少不必要的数据处理过程,使得输出像素值的获取更加快速。
在某些实施方式中,查找表为一维查找表,一维查找表可以缺省x,此时例如默认x从1变化到2 z-1。一维查找表可以使得查找表所需的存储空间变小。
请参阅图11,本发明实施方式的图像处理装置10包括第一获取模块11、第二获取模块12、第三获取模块13和第四获取模块14。本发明实施方式的图像处理方法可以由本发明实施方式的图像处理装置10实现,其中,步骤01可以由第一获取模块11实现,步骤02可以由第二获取模块12实现,步骤03可以由第三获取模块13实现,步骤04可以由第四获取模块14实现。也即是说,第一获取模块11可用于获取输入图像,输入图像包括多个输入像素值。第二获取模块12可用于获取调节参数。第三获取模块13可用于根据调节参数获取输入像素值和输出像素值的对应关系。第四获取模块14可用于根据对应关系和输入像素值获取输出像素值以得到输出图像。
需要说明的是,上述对图像处理方法的描述,也适用于本发明实施方式的图像处理装置10,其实现原理类似,在此不再赘述。
本发明实施方式的图像处理装置10根据调节参数获取输入像素值和输出像素值的对应关系,从而可以根据该对应关系对输入图像的输入像素值进行处理以得到输出图像,即可以根据调节参数和输入图像快速地得到输出图像。
请参阅图12,在某些实施方式中,图像处理装置10用于处理视频,视频包括多帧输入图像,图像处理装置10还包括更新模块15。步骤05可以由更新模块15实现,步骤041可以由第四获取模块14实现。也即是说,更新模块15可用于在调节参数发生变化时,根据变化后的调节参数更新对应关系。第四获取模块14可用于根据更新后的对应关系和输入像素值获取输出像素值以得到输出图像。
请再次参阅图11,在某些实施方式中,对应关系为指数曲线函数或S曲线函数。步骤031可以由第三获取模块13实现。也即是说,第三获取模块13可用于根据调节参数获取对应曲率的指数曲线函数或S曲线函数。
在某些实施方式中,调节参数包括亮度调节参数,对应关系包括亮度对应关系。步骤032可以由第三获取模块13实现,步骤042可以由第四获取模块14实现。也即是说,第三获取模块13可用于根据亮度调节参数获取亮度对应关系。第四获取模块14可用于根据亮度对应关系和输入像素值获取输出像素值以得到输出图像。
在某些实施方式中,在亮度调节参数大于零时,输出图像的亮度大于输入图像的亮度, 在亮度调节参数小于零时,输出图像的亮度小于输入图像的亮度。
在某些实施方式中,调节参数包括对比度调节参数,对应关系包括对比度对应关系。步骤033可以由第三获取模块13实现,步骤043可以由第四获取模块14实现。也即是说,第三获取模块13可用于根据对比度调节参数获取对比度对应关系。第四获取模块14可用于根据对比度对应关系和输入像素值获取输出像素值以得到输出图像。
在某些实施方式中,在对比度调节参数大于零时,输出图像的对比度大于输入图像的对比度,在对比度调节参数小于零时,输出图像的对比度小于输入图像的对比度。
在某些实施方式中,调节参数包括亮度调节参数和对比度调节参数。步骤032和步骤033可以由第三获取模块13实现,步骤044和步骤045可以由第四获取模块14实现。也即是说,第三获取模块13可用于根据亮度调节参数获取亮度对应关系、及根据对比度参数获取对比度对应关系。第四获取模块14可用于根据亮度对应关系和输入像素值获取中间像素值、及根据对比度对应关系和中间像素值获取输出像素值以得到输出图像。
在某些实施方式中,调节参数包括亮度调节参数和对比度调节参数。步骤032和步骤033可以由第三获取模块13实现,步骤046和步骤047可以由第四获取模块14实现。也即是说,第三获取模块13可用于根据亮度调节参数获取亮度对应关系、及根据对比度参数获取对比度对应关系。第四获取模块14可用于根据对比度对应关系和输入像素值获取中间像素值、及根据亮度对应关系和中间像素值获取输出像素值以得到输出图像。
在某些实施方式中,亮度对应关系为
Figure PCTCN2018102041-appb-000015
其中,y为输出像素值,x为输入像素值,b为亮度调节参数,f(b)为亮度调节参数的转换函数,0.5≤f(b)≤2,z为比特数。
在某些实施方式中,对比度对应关系为
Figure PCTCN2018102041-appb-000016
Figure PCTCN2018102041-appb-000017
其中,y为输出像素值,x为输入像素值,c为对比度调节参数,f(c)为对比度调节参数的转换函数,
Figure PCTCN2018102041-appb-000018
z为比特数。
请再次参阅图12,在某些实施方式中,图像处理装置10还包括生成模块16。步骤06可以由生成模块16实现,步骤048可以由第四获取模块14实现。也即是说,生成模块16可用于根据对应关系生成输入像素值和输出像素值的查找表。第四获取模块14可用于根据查找表和输入像素值获取输出像素值以得到输出图像。
需要说明的是,上述对图像处理方法的描述,也适用于本发明实施方式的图像处理装置10,其实现原理类似,在此不再赘述。
上述图像处理装置10中各个模块的划分仅用于举例说明,在其他实施例中,可将图像处理装置10按照需要划分为不同的模块,以完成上述图像处理装置10的全部或部分功能。
请参阅图13,本发明实施方式的电子装置100包括处理器20。本发明实施方式的图像处理方法可以由本发明实施方式的电子装置100实现,其中,步骤01、步骤02、步骤03和步骤04可以由处理器20实现。也即是说,处理器20可用于获取输入图像,输入图像包括多个输入像素值、获取调节参数、根据调节参数获取输入像素值和输出像素值的对应关系、及根据对应关系和输入像素值获取输出像素值以得到输出图像。
需要说明的是,上述对图像处理方法的描述,也适用于本发明实施方式的电子装置100,其实现原理类似,在此不再赘述。
本发明实施方式的电子装置100根据调节参数获取输入像素值和输出像素值的对应关系,从而可以根据该对应关系对输入图像的输入像素值进行处理以得到输出图像,即可以根据调节参数和输入图像快速地得到输出图像。
电子装置100可以是相机、手机、平板电脑、手提电脑、游戏机、头显设备、门禁系统、柜员机等,在此不作限制。
在某些实施方式中,电子装置100用于处理视频,视频包括多帧输入图像。步骤05和步骤041可以由处理器20实现。也即是说,处理器20可用于在调节参数发生变化时,根据变化后的调节参数更新对应关系、及根据更新后的对应关系和输入像素值获取输出像素值以得到输出图像。
在某些实施方式中,对应关系为指数曲线函数或S曲线函数。步骤031可以由处理器20实现。也即是说,处理器20可用于根据调节参数获取对应曲率的指数曲线函数或S曲线函数。
在某些实施方式中,调节参数包括亮度调节参数,对应关系包括亮度对应关系。步骤032和步骤042可以由处理器20实现。也即是说,处理器20可用于根据亮度调节参数获取亮度对应关系、及根据亮度对应关系和输入像素值获取输出像素值以得到输出图像。
在某些实施方式中,在亮度调节参数大于零时,输出图像的亮度大于输入图像的亮度,在亮度调节参数小于零时,输出图像的亮度小于输入图像的亮度。
在某些实施方式中,调节参数包括对比度调节参数,对应关系包括对比度对应关系。步骤033和步骤043可以由处理器20实现。也即是说,处理器20可用于根据对比度调节参数获取对比度对应关系、及根据对比度对应关系和输入像素值获取输出像素值以得到输出图像。
在某些实施方式中,在对比度调节参数大于零时,输出图像的对比度大于输入图像的对比度,在对比度调节参数小于零时,输出图像的对比度小于输入图像的对比度。
在某些实施方式中,调节参数包括亮度调节参数和对比度调节参数。步骤032、步骤033、步骤044和步骤045可以由处理器20实现。也即是说,处理器20可用于根据亮度调节参数获取亮度对应关系、根据对比度参数获取对比度对应关系、根据亮度对应关系和输入像素值获取中间像素值、及根据对比度对应关系和中间像素值获取输出像素值以得到输出图像。
在某些实施方式中,调节参数包括亮度调节参数和对比度调节参数。步骤032、步骤033、步骤046和步骤047可以由处理器20实现。也即是说,处理器20可用于根据亮度调节参数获取亮度对应关系、根据对比度参数获取对比度对应关系、根据对比度对应关系和输入像素值获取中间像素值、及根据亮度对应关系和中间像素值获取输出像素值以得到输出图像。
在某些实施方式中,亮度对应关系为
Figure PCTCN2018102041-appb-000019
其中,y为输出像素值,x为输入像素值,b为亮度调节参数,f(b)为亮度调节参数的转换函数,0.5≤f(b)≤2,z为比特数。
在某些实施方式中,对比度对应关系为
Figure PCTCN2018102041-appb-000020
Figure PCTCN2018102041-appb-000021
其中,y为输出像素值,x为输入像素值,c为对比度调节参数,f(c)为对比度调节参数的转换函数,
Figure PCTCN2018102041-appb-000022
z为比特数。
在某些实施方式中,步骤06和步骤048可以由处理器20实现。也即是说,处理器20可用于根据对应关系生成输入像素值和输出像素值的查找表、及根据查找表和输入像素值获取输出像素值以得到输出图像。
需要说明的是,上述对图像处理方法的描述,也适用于本发明实施方式的电子装置100,其实现原理类似,在此不再赘述。
请参阅图14,本发明实施方式的计算机可读存储介质400包括计算机程序,所述计算机程序可被处理器20执行以完成上述任意一种实施方式的图像处理方法。
例如,计算机程序可被处理器20执行以完成以下步骤所述的图像处理方法:
01:获取输入图像,输入图像包括多个输入像素值;
02:获取调节参数;
03:根据调节参数获取输入像素值和输出像素值的对应关系;及
04:根据对应关系和输入像素值获取输出像素值以得到输出图像。
再例如,计算机程序还可被处理器20执行以完成以下步骤所述的图像处理方法:
05:在调节参数发生变化时,根据变化后的调节参数更新对应关系;
041:根据更新后的对应关系和输入像素值获取输出像素值以得到输出图像。
请参阅图15,本发明实施方式的可移动平台1000包括上述任意一项实施方式的电子装置100和动力装置200。可移动平台1000例如包括云台、飞行器、汽车、机器人、水面端移动设备等。动力装置200例如包括转轴、螺旋桨、车轮等。
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”、或“一些示例”等的描述意指结合所述实施方式或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于执行特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的执行,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于执行逻辑功能的可执行指令的定序列表,可以具体执行在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来执行。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来执行。例如,如果用硬件来执行,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来执行:具有用于对数据信号执行逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场 可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解执行上述实施方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式执行,也可以采用软件功能模块的形式执行。所述集成的模块如果以软件功能模块的形式执行并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (38)

  1. 一种图像处理方法,其特征在于,所述图像处理方法包括:
    获取输入图像,所述输入图像包括多个输入像素值;
    获取调节参数;
    根据所述调节参数获取所述输入像素值和输出像素值的对应关系;及
    根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像。
  2. 根据权利要求1所述的图像处理方法,其特征在于,所述图像处理方法用于处理视频,所述视频包括多帧所述输入图像,所述图像处理方法还包括:
    在所述调节参数发生变化时,根据变化后的所述调节参数更新所述对应关系;
    所述根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像,包括:
    根据更新后的所述对应关系和所述输入像素值获取所述输出像素值以得到所述输出图像。
  3. 根据权利要求1所述的图像处理方法,其特征在于,所述对应关系为指数曲线函数或S曲线函数,所述根据所述调节参数获取所述输入像素值和输出像素值的对应关系,包括:
    根据所述调节参数获取对应曲率的所述指数曲线函数或所述S曲线函数。
  4. 根据权利要求1所述的图像处理方法,其特征在于,所述调节参数包括亮度调节参数,所述对应关系包括亮度对应关系,所述根据所述调节参数获取所述输入像素值和输出像素值的对应关系,包括:
    根据所述亮度调节参数获取所述亮度对应关系;
    所述根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像,包括:
    根据所述亮度对应关系和所述输入像素值获取所述输出像素值以得到所述输出图像。
  5. 根据权利要求4所述的图像处理方法,其特征在于,在所述亮度调节参数大于零时,所述输出图像的亮度大于所述输入图像的亮度,在所述亮度调节参数小于零时,所述输出图像的亮度小于所述输入图像的亮度。
  6. 根据权利要求1所述的图像处理方法,其特征在于,所述调节参数包括对比度调节参数,所述对应关系包括对比度对应关系,所述根据所述调节参数获取所述输入像素值和输出像素值的对应关系,包括:
    根据所述对比度调节参数获取所述对比度对应关系;
    所述根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像,包括:
    根据所述对比度对应关系和所述输入像素值获取所述输出像素值以得到所述输出图像。
  7. 根据权利要求6所述的图像处理方法,其特征在于,在所述对比度调节参数大于零 时,所述输出图像的对比度大于所述输入图像的对比度,在所述对比度调节参数小于零时,所述输出图像的对比度小于所述输入图像的对比度。
  8. 根据权利要求1所述的图像处理方法,其特征在于,所述调节参数包括亮度调节参数和所述对比度调节参数,所述根据所述调节参数获取所述输入像素值和输出像素值的对应关系,包括:
    根据所述亮度调节参数获取亮度对应关系;
    根据所述对比度参数获取对比度对应关系;
    所述根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像,包括:
    根据所述亮度对应关系和所述输入像素值获取中间像素值;
    根据所述对比度对应关系和所述中间像素值获取所述输出像素值以得到所述输出图像。
  9. 根据权利要求1所述的图像处理方法,其特征在于,所述调节参数包括亮度调节参数和所述对比度调节参数,所述根据所述调节参数获取所述输入像素值和输出像素值的对应关系,包括:
    根据所述亮度调节参数获取亮度对应关系;
    根据所述对比度参数获取对比度对应关系;
    所述根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像,包括:
    根据所述对比度对应关系和所述输入像素值获取中间像素值;
    根据所述亮度对应关系和所述中间像素值获取所述输出像素值以得到所述输出图像。
  10. 根据权利要求4、8或9所述的图像处理方法,其特征在于,所述亮度对应关系为
    Figure PCTCN2018102041-appb-100001
    其中,y为所述输出像素值,x为所述输入像素值,b为所述亮度调节参数,f(b)为所述亮度调节参数的转换函数,0.5≤f(b)≤2,z为比特数。
  11. 根据权利要求6、8或9所述的图像处理方法,其特征在于,所述对比度对应关系为
    Figure PCTCN2018102041-appb-100002
    Figure PCTCN2018102041-appb-100003
    其中,y为所述输出像素值,x为所述输入像素值,c为所述对比度调节参数,f(c)为所述对比度调节参数的转换函数,
    Figure PCTCN2018102041-appb-100004
    z为比特数。
  12. 根据权利要求1所述的图像处理方法,其特征在于,所述图像处理方法还包括:
    根据所述对应关系生成所述输入像素值和所述输出像素值的查找表;
    所述根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像,包括:
    根据所述查找表和所述输入像素值获取所述输出像素值以得到所述输出图像。
  13. 一种图像处理装置,其特征在于,所述图像处理装置包括:
    第一获取模块,所述第一获取模块用于获取输入图像,所述输入图像包括多个输入像素值;
    第二获取模块,所述第二获取模块用于获取调节参数;
    第三获取模块,所述第三获取模块用于根据所述调节参数获取所述输入像素值和输出像素值的对应关系;及
    第四获取模块,所述第四获取模块用于根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像。
  14. 根据权利要求13所述的图像处理装置,其特征在于,所述图像处理装置用于处理视频,所述视频包括多帧所述输入图像,所述图像处理装置还包括:
    更新模块,所述更新模块用于在所述调节参数发生变化时,根据变化后的所述调节参数更新所述对应关系;
    所述第四获取模块用于根据更新后的所述对应关系和所述输入像素值获取所述输出像素值以得到所述输出图像。
  15. 根据权利要求13所述的图像处理装置,其特征在于,所述对应关系为指数曲线函数或S曲线函数,所述第三获取模块用于根据所述调节参数获取对应曲率的所述指数曲线函数或所述S曲线函数。
  16. 根据权利要求13所述的图像处理装置,其特征在于,所述调节参数包括亮度调节参数,所述对应关系包括亮度对应关系,所述第三获取模块用于根据所述亮度调节参数获取所述亮度对应关系;所述第四获取模块用于根据所述亮度对应关系和所述输入像素值获取所述输出像素值以得到所述输出图像。
  17. 根据权利要求16所述的图像处理装置,其特征在于,在所述亮度调节参数大于零时,所述输出图像的亮度大于所述输入图像的亮度,在所述亮度调节参数小于零时,所述输出图像的亮度小于所述输入图像的亮度。
  18. 根据权利要求13所述的图像处理装置,其特征在于,所述调节参数包括对比度调节参数,所述对应关系包括对比度对应关系,所述第三获取模块用于根据所述对比度调节参数获取所述对比度对应关系;所述第四获取模块用于根据所述对比度对应关系和所述输入像素值获取所述输出像素值以得到所述输出图像。
  19. 根据权利要求18所述的图像处理装置,其特征在于,在所述对比度调节参数大于零时,所述输出图像的对比度大于所述输入图像的对比度,在所述对比度调节参数小于零时,所述输出图像的对比度小于所述输入图像的对比度。
  20. 根据权利要求13所述的图像处理装置,其特征在于,所述调节参数包括亮度调节参数和所述对比度调节参数,所述第三获取模块用于根据所述亮度调节参数获取亮度对应关系、及根据所述对比度参数获取对比度对应关系;所述第四获取模块用于根据所述亮度对应关系和所述输入像素值获取中间像素值、及根据所述对比度对应关系和所述中间像素值获取所述输出像素值以得到所述输出图像。
  21. 根据权利要求13所述的图像处理装置,其特征在于,所述调节参数包括亮度调节参数和所述对比度调节参数,所述第三获取模块用于根据所述亮度调节参数获取亮度对应关系、及根据所述对比度参数获取对比度对应关系;所述第四获取模块用于根据所述对比度对应关系和所述输入像素值获取中间像素值、及根据所述亮度对应关系和所述中间像素值获取所述输出像素值以得到所述输出图像。
  22. 根据权利要求16、20或21所述的图像处理装置,其特征在于,所述亮度对应关系为
    Figure PCTCN2018102041-appb-100005
    其中,y为所述输出像素值,x为所述输入像素值,b为所述亮度调节参数,f(b)为所述亮度调节参数的转换函数,0.5≤f(b)≤2,z为比特数。
  23. 根据权利要求18、20或21所述的图像处理装置,其特征在于,所述对比度对应关系为
    Figure PCTCN2018102041-appb-100006
    Figure PCTCN2018102041-appb-100007
    其中,y为所述输出像素值,x为所述输入像素值,c为所述对比度调节参数,f(c)为所述对比度调节参数的转换函数,
    Figure PCTCN2018102041-appb-100008
    z为比特数。
  24. 根据权利要求13所述的图像处理装置,其特征在于,所述图像处理装置还包括:
    生成模块,所述生成模块用于根据所述对应关系生成所述输入像素值和所述输出像素值的查找表;
    所述第四获取模块用于根据所述查找表和所述输入像素值获取所述输出像素值以得到所述输出图像。
  25. 一种电子装置,其特征在于,所述电子装置包括处理器,所述处理器用于:
    获取输入图像,所述输入图像包括多个输入像素值;
    获取调节参数;
    根据所述调节参数获取所述输入像素值和输出像素值的对应关系;及
    根据所述对应关系和所述输入像素值获取所述输出像素值以得到输出图像。
  26. 根据权利要求25所述的电子装置,其特征在于,所述电子装置用于处理视频,所述视频包括多帧所述输入图像,所述处理器用于:
    在所述调节参数发生变化时,根据变化后的所述调节参数更新所述对应关系;
    根据更新后的所述对应关系和所述输入像素值获取所述输出像素值以得到所述输出图像。
  27. 根据权利要求25所述的电子装置,其特征在于,所述对应关系为指数曲线函数或S曲线函数,所述处理器用于根据所述调节参数获取对应曲率的所述指数曲线函数或所述S曲线函数。
  28. 根据权利要求25所述的电子装置,其特征在于,所述调节参数包括亮度调节参数,所述对应关系包括亮度对应关系,所述处理器用于:
    根据所述亮度调节参数获取所述亮度对应关系;
    根据所述亮度对应关系和所述输入像素值获取所述输出像素值以得到所述输出图像。
  29. 根据权利要求25所述的电子装置,其特征在于,在所述亮度调节参数大于零时,所述输出图像的亮度大于所述输入图像的亮度,在所述亮度调节参数小于零时,所述输出图像的亮度小于所述输入图像的亮度。
  30. 根据权利要求25所述的电子装置,其特征在于,所述调节参数包括对比度调节参数,对应关系包括对比度对应关系,所述处理器用于:
    根据所述对比度调节参数获取所述对比度对应关系;
    根据所述对比度对应关系和所述输入像素值获取所述输出像素值以得到所述输出图像。
  31. 根据权利要求30所述的电子装置,其特征在于,在所述对比度调节参数大于零时,所述输出图像的对比度大于所述输入图像的对比度,在所述对比度调节参数小于零时,所述输出图像的对比度小于所述输入图像的对比度。
  32. 根据权利要求25所述的电子装置,其特征在于,所述调节参数包括亮度调节参数和所述对比度调节参数,所述处理器用于:
    根据所述亮度调节参数获取亮度对应关系;
    根据所述对比度参数获取对比度对应关系;
    根据所述亮度对应关系和所述输入像素值获取中间像素值;
    根据所述对比度对应关系和所述中间像素值获取所述输出像素值以得到所述输出图像。
  33. 根据权利要求25所述的电子装置,其特征在于,所述调节参数包括亮度调节参数和所述对比度调节参数,所述处理器用于:
    根据所述亮度调节参数获取亮度对应关系;
    根据所述对比度参数获取对比度对应关系;
    根据所述对比度对应关系和所述输入像素值获取中间像素值;
    根据所述亮度对应关系和所述中间像素值获取所述输出像素值以得到所述输出图像。
  34. 根据权利要求28、32或33所述的电子装置,其特征在于,所述亮度对应关系为
    Figure PCTCN2018102041-appb-100009
    其中,y为所述输出像素值,x为所述输入像素值,b为所述亮度调节参数,f(b)为所述亮度调节参数的转换函数,0.5≤f(b)≤2,z为比特数。
  35. 根据权利要求30、32或33所述的电子装置,其特征在于,所述对比度对应关系为
    Figure PCTCN2018102041-appb-100010
    Figure PCTCN2018102041-appb-100011
    其中,y为所述输出像素值,x为所述输入像素值,c为所述对比度调节参数,f(c)为所述对比度调节参数的转换函数,
    Figure PCTCN2018102041-appb-100012
    z为比特数。
  36. 根据权利要求25所述的电子装置,其特征在于,所述处理器用于:
    根据所述对应关系生成所述输入像素值和所述输出像素值的查找表;
    根据所述查找表和所述输入像素值获取所述输出像素值以得到所述输出图像。
  37. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序可被处理器执行以完成权利要求1至12中任意一项所述的图像处理方法。
  38. 一种可移动平台,其特征在于,所述可移动平台包括动力装置和权利要求25至36任意一项所述的电子装置。
PCT/CN2018/102041 2018-08-23 2018-08-23 图像处理方法、图像处理装置、电子装置和存储介质 WO2020037630A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/102041 WO2020037630A1 (zh) 2018-08-23 2018-08-23 图像处理方法、图像处理装置、电子装置和存储介质
CN201880038443.6A CN110800309B (zh) 2018-08-23 2018-08-23 图像处理方法、图像处理装置、电子装置和存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/102041 WO2020037630A1 (zh) 2018-08-23 2018-08-23 图像处理方法、图像处理装置、电子装置和存储介质

Publications (1)

Publication Number Publication Date
WO2020037630A1 true WO2020037630A1 (zh) 2020-02-27

Family

ID=69426066

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/102041 WO2020037630A1 (zh) 2018-08-23 2018-08-23 图像处理方法、图像处理装置、电子装置和存储介质

Country Status (2)

Country Link
CN (1) CN110800309B (zh)
WO (1) WO2020037630A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113256776A (zh) * 2021-06-21 2021-08-13 炫我信息技术(北京)有限公司 图像处理的方法、装置、电子设备和计算机可读存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021217445A1 (zh) * 2020-04-28 2021-11-04 深圳市大疆创新科技有限公司 图像处理方法、装置、系统和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141653A (zh) * 2006-09-05 2008-03-12 帆宣系统科技股份有限公司 图像调整装置
WO2008044177A1 (en) * 2006-10-12 2008-04-17 Koninklijke Philips Electronics N.V. A color mapping method
CN102867497A (zh) * 2011-10-17 2013-01-09 矽创电子股份有限公司 色彩调整装置与色彩调整方法
CN104299574A (zh) * 2014-11-13 2015-01-21 中颖电子股份有限公司 用于oled显示驱动装置的自动限流方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1307598C (zh) * 2004-04-12 2007-03-28 光宝科技股份有限公司 图像对比度的调整方法
US7386186B2 (en) * 2004-08-27 2008-06-10 Micron Technology, Inc. Apparatus and method for processing images
US7512268B2 (en) * 2005-02-22 2009-03-31 Texas Instruments Incorporated System and method for local value adjustment
CN102752605A (zh) * 2011-09-30 2012-10-24 新奥特(北京)视频技术有限公司 一种调整图像/视频色彩饱和度的方法和系统
CN102377913B (zh) * 2011-11-15 2013-10-09 四川九洲电器集团有限责任公司 一种视频图像对比度实时调节的方法
CN103137098B (zh) * 2011-12-02 2015-06-17 联咏科技股份有限公司 色调对应方法
CN103973941B (zh) * 2014-05-14 2017-05-10 深圳市大疆创新科技有限公司 数码影像的动态对比度调整方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141653A (zh) * 2006-09-05 2008-03-12 帆宣系统科技股份有限公司 图像调整装置
WO2008044177A1 (en) * 2006-10-12 2008-04-17 Koninklijke Philips Electronics N.V. A color mapping method
CN102867497A (zh) * 2011-10-17 2013-01-09 矽创电子股份有限公司 色彩调整装置与色彩调整方法
CN104299574A (zh) * 2014-11-13 2015-01-21 中颖电子股份有限公司 用于oled显示驱动装置的自动限流方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113256776A (zh) * 2021-06-21 2021-08-13 炫我信息技术(北京)有限公司 图像处理的方法、装置、电子设备和计算机可读存储介质

Also Published As

Publication number Publication date
CN110800309A (zh) 2020-02-14
CN110800309B (zh) 2021-08-27

Similar Documents

Publication Publication Date Title
US20210058595A1 (en) Method, Device, and Storage Medium for Converting Image
JP2013125270A (ja) 電子ディスプレイ設定を自動的に調整するためのシステム及び方法
JP6700880B2 (ja) 情報処理装置および情報処理方法
US20180089812A1 (en) Method and system for image enhancement
WO2020037630A1 (zh) 图像处理方法、图像处理装置、电子装置和存储介质
CN116113976A (zh) 图像处理方法及装置、计算机可读介质和电子设备
JP6376767B2 (ja) 画像処理装置及び画像処理方法
JP6021356B2 (ja) 画像表示装置及びその制御方法
US11022839B2 (en) Display apparatus configured to display input image and graphic image and method for controlling same
US20230164451A1 (en) Information processing apparatus, method, medium, and system for color correction
JP2017126914A (ja) 画像処理システム
US10542207B2 (en) Image processing apparatus and image processing method
US11176720B2 (en) Computer program, image processing method, and image processing apparatus
US9609207B2 (en) Color processing apparatus and method therefor
US10277826B2 (en) Image processing apparatus and image processing method
US20140327695A1 (en) Image processing apparatus and control method therefor
CN106791350A (zh) 显示调整方法及电子装置
JP6537401B2 (ja) 映像信号の画面輝度を調整する表示装置及び調整回路
US11775157B2 (en) Image processing apparatus, image processing system, and control method for processing a second image with adjusting level of a first image
US20080226165A1 (en) Apparatus and Method of Creating Composite Lookup Table
US12101566B2 (en) Information processing apparatus, information processing terminal, method, and model
WO2024138792A1 (zh) 图像校正方法、装置、计算机设备及存储介质
JP2019092132A (ja) 表示制御装置及び表示制御システム
US20230326164A1 (en) Image capturing apparatus capable of recognizing recognition target with high accuracy, method of controlling same, and storage medium
US20230385986A1 (en) Method of correcting image by using neural network model, and computing device for executing neural network model for image correction

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18931177

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18931177

Country of ref document: EP

Kind code of ref document: A1