Abstract:
An image processing method and apparatus, where the method includes determining a maximum value in nonlinear primary color values of all components of each pixel of a first to-be-processed image, determining dynamic parameters of a first transfer function, converting the maximum value of each pixel into a transfer value based on the first transfer function for which the dynamic parameters are determined, calculating a ratio between the transfer value and the maximum value of each pixel, and adjusting a dynamic range for the nonlinear primary color values of all the components of each pixel based on the ratio to obtain nonlinear primary color values of all components of each corresponding pixel of a first target image.
Abstract:
An image processing method and apparatus are disclosed, to improve quality of an image on which color processing is performed. The method includes: determining color values of N color components of each pixel of a to-be-processed image, where N is a natural number greater than 1; determining N ratios of a luminance value of each pixel to the color values of the N color components; determining N first color adjustment coefficients based on the N ratios; and performing color processing on each pixel based on the N first color adjustment coefficients and the color values of the N color components to obtain a target image.
Abstract:
Embodiments of the present disclosure provide an image encoding method, an image decoding method, an encoding device, and a decoding device. The method includes: determining a conversion function parameter of a current image block; determining a conversion function parameter of a neighboring image block corresponding to the current image block; determining, according to a correlation between the conversion function parameter of the current image block and the conversion function parameter of the neighboring image block, whether to perform merge encoding on the conversion function parameter of the current image block and the conversion function parameter of the neighboring image block, and determining a first indicator, where the first indicator is used to indicate whether to perform merge encoding on the conversion function parameter of the current image block and the conversion function parameter of the neighboring image block; and encoding the first indicator.
Abstract:
A method and an apparatus for processing a high dynamic range (HDR) image, and a terminal device to improve quantization quality, where the method includes obtaining brightness information of an image, processing the brightness information to obtain processed image information, quantizing the processed image information to obtain quantized image information, and encoding the quantized image information to obtain encoded image information.
Abstract:
Determining of still/movement may be performed with reference to quantization noise of a first section to which a first pixel belongs, and for different results of determining of whether the first pixel is in a movement area or a still area, different frame difference thresholds applicable to the movement area and the still area are separately set, and different frame difference calculation manners are used, different blending coefficients applicable to the movement area and the still area are selected according to the different frame difference thresholds applicable to the movement area and the still area and the frame difference calculation manners, and a noise reduction blending manner is selected according to the different blending coefficients applicable to the movement area and the still area, the frame difference calculation manners, and a pixel value of the first pixel in a current frame.
Abstract:
An image processing method and apparatus are provided. The image processing method includes collecting at least two exposure frames with different brightness in a same scene during different exposure time; combining, for each exposure frame, a raw data unit arranged repeatedly in the exposure frame to obtain first brightness data after the combining; acquiring a correction parameter of all exposure frames according to all first brightness data and performing weighting processing on all the exposure frames by using the correction parameter to obtain a high dynamic range (HDR) image of corrected raw data. The foregoing method can resolve a problem in the prior art that colors, brightness, and contrast of an image obtained from Raw data are severely distorted.
Abstract:
A method and an apparatus for correcting a multi-exposure motion image are disclosed, where the method includes determining a luminance mapping function, where the luminance mapping function is a luminance mapping relationship between a reference frame and multiple extended frames; mapping a luminance of an extended frame by using the luminance mapping relationship to obtain a virtual frame; calculating a global motion vector between the virtual frame and the reference frame; correcting a pixel of the extended frame according to the global motion vector to obtain a first extended frame after correction; detecting a pixel of the first extended frame according to the reference frame to obtain a local error pixel of the first extended frame; and correcting a luminance of the local error pixel of the first extended frame to obtain a second extended frame after correction.
Abstract:
A super-resolution method and apparatus for a video image are disclosed. The method includes performing super-resolution processing based on fuzzy motion estimation by integral multiple times on an original low-resolution video image, to obtain an intermediate high-resolution video image. When resolution of the intermediate high-resolution video image is different from resolution of a target high-resolution video image, a non-integral multiple between the resolution of the target high-resolution video image and the resolution of the intermediate high-resolution video image is calculated. Super-resolution processing based on interpolation by the non-integral is performed multiple times on the intermediate high-resolution video image, to obtain the target high-resolution video image.
Abstract:
A video coding mechanism is disclosed. The mechanism includes at least one pre-encoder configured to pre-encode a received input video signal, and output a pre-encoded video signal. The mechanism also includes an encoder configured to obtain the pre-encoded video signal from the pre-encoder, and encode the pre-encoded video signal as a bitstream for transmitting the bitstream to decoder for decoding.
Abstract:
A matrix processing method performed by a graphics processing unit (GPU) includes: determining a plurality of non-zero elements in a to-be-processed matrix at a processor in the GPU; generating a distribution matrix of the to-be-processed matrix at the processor, where the distribution matrix comprises identities for indicating positions of the plurality of non-zero elements in the to-be-processed matrix; obtaining a target matrix from another matrix by using the distribution matrix at a logic circuit in the processor, where the target matrix comprises a plurality of target elements from the another matrix; and performing matrix processing on the plurality of non-zero elements and the target matrix to obtain an operation result at the processor.