Image processing method and apparatus, and electronic device including a simulation true-color image
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorYi Wei
Life of this patent
Estimating the term…
Abstract
An image processing method is provided. The image sensor is controlled to output the combination image. The brightness of the combination image is obtained and it is determined whether the brightness is less than or equal to a preset threshold. When the brightness is less than or equal to the preset threshold, the combination image is converted into the combination true-color image. When the brightness is greater than the preset threshold, the image sensor is controlled to output the color-block image. The color-block image is converted into the simulation image. The simulation image is converted into the simulation true-color image. An image processing apparatus and an electronic device are provided.
Claims20
An image processing method, applied in an electronic device, wherein the electronic device comprises an imaging apparatus comprising an image sensor, the image sensor comprises an array of photosensitive pixel units and an array of filter units arranged on the array of photosensitive pixel units, each filter unit corresponds to one photosensitive pixel unit, and each photosensitive pixel unit comprises a plurality of photosensitive pixels, the image processing method comprises:
- outputting a merged image by the image sensor, wherein, the merged image comprises an array of merged pixels, and the photosensitive pixels in a same photosensitive pixel unit are collectively output as one merged pixel;
- acquiring a brightness of the merged image;
- determining whether the brightness is less than or equal to a preset threshold;
- when the brightness is less than or equal to the preset threshold, converting the merged image into a merged true-color image;
- and
- when the brightness is greater than the preset threshold, outputting a color-block image by the image sensor, wherein, the color-block image comprises image pixel units arranged in a preset array, each image pixel unit comprises a plurality of original pixels, each photosensitive pixel unit corresponds to one image pixel unit, and each photosensitive pixel corresponds to one original pixel;
- converting the color-block image into a simulation image using a first interpolation algorithm, wherein, the simulation image comprises simulation pixels arranged in an array, and each photosensitive pixel corresponds to one simulation pixel;
- and
- converting the simulation image into a simulation true-color image.
An image processing apparatus, applied in an electronic device, wherein the electronic device comprises an imaging apparatus comprising an image sensor, the image sensor comprises an array of photosensitive pixel units and an array of filter units arranged on the array of photosensitive pixel units, each filter unit corresponds to one photosensitive pixel unit, and each photosensitive pixel unit comprises a plurality of photosensitive pixels;
- the image processing apparatus comprises a non-transitory computer-readable medium comprising computer-executable instructions stored thereon, and an instruction execution system which is configured by the instructions to implement at least one of:
- a first control module, configured to output a merged image by the image sensor, wherein, the merged image comprises an array of merged pixels, the photosensitive pixels in a same photosensitive pixel unit are collectively output as one merged pixel;
- an acquiring module, configured to acquire a brightness of the merged image;
- a determining module, configured to determine whether the brightness is less than or equal to a preset threshold;
- a first converting module, configured to convert the merged image into a merged true-color image when the brightness is less than or equal to the preset threshold;
- a second control module, configured to output a color-block image by the image sensor when the brightness is greater than the preset threshold, wherein, the color-block image comprises image pixel units arranged in a preset array, each image pixel unit comprises a plurality of original pixels, each photosensitive pixel unit corresponds to one image pixel unit, and each photosensitive pixel corresponds to one original pixel;
- a second converting module, configured to convert the color-block image into a simulation image using a first interpolation algorithm, wherein, the simulation image comprises simulation pixels arranged in an array and each photosensitive pixel corresponds to one simulation pixel;
- and
- a third converting module, configured to convert the simulation image into a simulation true-color image.
An electronic device, comprising a housing, a processor, a memory, a circuit board, a power supply circuit, and an imaging apparatus, wherein,
- the circuit board is enclosed by the housing;
- the processor and the memory are positioned on the circuit board;
- the power supply circuit is configured to provide power for respective circuits or components of the electronic device;
- the imaging apparatus comprises an image sensor, wherein the image sensor comprises an array of photosensitive pixel units and an array of filter units arranged on the array of photosensitive pixel units, each filter unit corresponds to one photosensitive pixel unit, and each photosensitive pixel unit comprises a plurality of photosensitive pixels;
- the memory is configured to store executable program codes;
- and
- the processor is configured to run a program corresponding to the executable program codes by reading the executable program codes stored in the memory, to perform following operations:
- outputting a merged image by the image sensor, wherein, the merged image comprises an array of merged pixels, and the photosensitive pixels in a same photosensitive pixel unit are collectively output as one merged pixel;
- acquiring a brightness of the merged image;
- determining whether the brightness is less than or equal to a preset threshold;
- when the brightness is less than or equal to the preset threshold, converting the merged image into a merged true-color image;
- when the brightness is greater than the preset threshold, outputting a color-block image by the image sensor, wherein, the color-block image comprises image pixel units arranged in a preset array, each image pixel unit comprises a plurality of original pixels, each photosensitive pixel unit corresponds to one image pixel unit, and each photosensitive pixel corresponds to one original pixel;
- converting the color-block image into a simulation image using a first interpolation algorithm, wherein, the simulation image comprises simulation pixels arranged in an array, and each photosensitive pixel corresponds to one simulation pixel;
- and
- converting the simulation image into a simulation true-color image.
Dependencies are inferred from the claim text.