Image Processing Method and Electronic Device
AssigneeLenovo (Beijing) Limited
InventorKaname Ogawa
Life of this patent
Estimating the term…
Abstract
An image processing method and an electronic device are disclosed. The image processing method includes obtaining distance information of at least one portion of pixels in an image acquired by the image acquiring unit, the distance information indicating a distance from the image acquiring unit to a shot object to which each pixel among the at least one portion of pixels corresponds; determining magnifications of the at least one portion of pixels based on the distance information and optical characteristics of the image acquiring unit; and adjusting the image based on the magnifications of the at least one portion of pixels.
Claims19
An image processing method applied to an electronic device with an image acquiring unit, the method comprising:
- obtaining, by at least one sensing unit, distance information of at least one portion of pixels in an image acquired by the image acquiring unit, the distance information indicating a distance from the image acquiring unit to a shot object to which each pixel among the at least one portion of pixels corresponds;
- determining magnifications of the at least one portion of pixels based on the distance information and optical characteristics of the image acquiring unit;
- and
- adjusting the image based on the magnifications of the at least one portion of pixels.
The image processing method according to claim 3, wherein adjusting positions of the pixels in the image based on the magnifications of the at least one portion of pixels comprises adjusting, for each pixel among the at least one portion of pixels, a distance from the pixel to a point corresponding to an optical center of the image acquiring unit in the image based on a magnification of the pixel, so that the larger the magnification of the pixel is, the shorter the distance from the pixel to the point corresponding to the optical center of the image acquiring unit in the image is.
The image processing method according to claim 4, wherein adjusting the distance from the pixel to the point corresponding to the optical center of the image acquiring unit comprises adjusting the distance from each pixel to the point corresponding to the optical center of the image acquiring unit by multiplying the distance with a reciprocal of the amplification.
An image processing method applied to an electronic device with an image acquiring unit, the method comprising:
- configuring a plurality of control points in a predetermined region of an image acquired by the image acquiring unit;
- determining respective magnifications of the plurality of control points based on respective distance information of the plurality of control points and optical characteristics of the image acquiring unit, the distance information indicating a distance from the image acquiring unit to a shot object to which a control point corresponds;
- calculating respective positions of the plurality of control points in the image based on the magnifications;
- dividing the predetermined region into a plurality of adjustment regions with the plurality of control points as vertices;
- and
- adjusting, for each adjustment region, a position of each pixel point in the image within the adjustment region based on positions of the vertices in the image before and after adjustment.
The image processing method according to claim 6, wherein determining respective magnifications of the plurality of control points based on respective distance information of the plurality of control points and optical characteristics of the image acquiring unit comprises determining respective magnifications of the plurality of control points based on the respective distance information of the plurality of control points and a characteristic curve corresponding to a focal length of the image acquiring unit, the characteristic curve indicating a relationship between a magnification and the distance from the image acquiring unit to the shot object.
The image processing method according to claim 9, wherein respective positions of the plurality of control points in the image are positions of the control points in the image obtained by adjusting control points within the first region based on the magnifications without adjusting control points within the second region.
An electronic device, comprising:
- an image acquiring unit;
- at least one sensing unit configured to obtain distance information of at least one portion of pixels in an image acquired by the image acquiring unit, the distance information indicating a distance from the image acquiring unit to a shot object to which each pixel among the at least one portion of pixels corresponds;
- a magnification determining module configured to determine magnifications of the at least one portion of pixels based on the distance information and optical characteristics of the image acquiring unit;
- and
- an image adjusting module configured to adjust the image based on the magnifications of the at least one portion of pixels.
The electronic device according to claim 11, wherein the magnification determining module is configured to determine magnifications of the at least one portion of pixels based on the distance information and a characteristic curve corresponding to a focal length of the image acquiring unit, the characteristic curve indicating a relationship between a magnification and the distance from the image acquiring unit to the shot object.
The electronic device according to claim 13, wherein the image adjusting module is configured to adjust, for each pixel among the at least one portion of pixels, a distance from the pixel to a point corresponding to an optical center of the image acquiring unit in the image based on a magnification of the pixel, so that the larger the magnification of the pixel is, the shorter the distance from the pixel to the point corresponding to the optical center of the image acquiring unit in the image is.
The electronic device according to claim 14, wherein the image adjusting module is configured to adjust, for each pixel among the at least one portion of pixels, the distance from the pixel to the point corresponding to the optical center of the image acquiring unit in the image by multiplying the distance with a reciprocal of the amplification.
The electronic device according to claim 16, wherein the magnification determining module is configured to determine respective magnifications of the plurality of control points based on the respective distance information of the plurality of control points and a characteristic curve corresponding to a focal length of the image acquiring unit, the characteristic curve indicating a relationship between a magnification and the distance from the image acquiring unit to the shot object.
The electronic device according to claim 19, wherein respective positions of the plurality of control points in the image are positions of the control points in the image obtained by adjusting control points within the first region based on the magnifications without adjusting control points within the second region.
Dependencies are inferred from the claim text.