Method and device for image correction and storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorZhijun CHEN
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to a method and device for image correction and a storage medium. The method can include a correction offset for each unit to be corrected in an image is determined, at least one target region in the image is determined, an image weight coefficient for each unit to be corrected in the image is determined according to the at least one target region, a final offset for each unit to be corrected in the image is determined according to the image weight coefficient and the correction offset, and each unit to be corrected in the image is corrected according to the final offset.
Claims20
A method for image correction, comprising:
- determining a correction offset for each unit to be corrected in an image;
- determining at least one target region in the image;
- determining, according to the at least one target region, an image weight coefficient for each unit to be corrected in the image;
- determining, according to the image weight coefficient and the correction offset, a final offset for each unit to be corrected in the image;
- and
- correcting, according to the final offset, each unit to be corrected in the image.
An image correction device, comprising:
- a processor;
- and
- a memory configured to store instructions executable by the processor,
- wherein the processor is configured to run the instructions to:
- determine a correction offset for each unit to be corrected in an image;
- determine at least one target region in the image;
- determine, according to the at least one target region, an image weight coefficient for each unit to be corrected in the image;
- determine, according to the image weight coefficient and the correction offset, a final offset for each unit to be corrected in the image;
- and
- correct, according to the final offset, each unit to be corrected in the image.
A non-transitory computer-readable storage medium having a computer-executable instruction stored thereon, the computer-executable instruction being executed by a processor to perform a method including the steps of:
- determining a correction offset for each unit to be corrected in an image;
- determining at least one target region in the image;
- determining, according to the at least one target region, an image weight coefficient for each unit to be corrected in the image;
- determining, according to the image weight coefficient and the correction offset, a final offset for each unit to be corrected in the image;
- and
- correcting, according to the final offset, each unit to be corrected in the image.
Dependencies are inferred from the claim text.