Electronic device for projecting image and operating method of the same
An electronic device configured to project an image includes: an image projection unit comprising a projector configured to project the image onto a projection area, memory storing at least one instruction, and at least one processor, comprising processing circuitry, individually and/or collectively, configured to execute the at least one instruction stored in the memory and to: determine a reference line including information about a point in the projection area, the point being farthest from the image projection unit, generate a distance correction coefficient for correcting an input grayscale of an input image, based on the reference line, and control the image projection unit to display a corrected image including a corrected grayscale generated by multiplying the input grayscale by the distance correction coefficient.
1 . An electronic device configured to project an image, the electronic device comprising:
an image projection unit comprising a projector comprising a plurality of pixels and configured to project the image onto a projection area comprising a plurality of pixel areas respectively corresponding to the plurality of pixels;
memory storing at least one instruction; and
at least one processor, comprising processing circuitry, individually and/or collectively, configured to execute the at least one instruction stored in the memory, and to:
determine a reference line comprising information about a point in the projection area, the point being farthest from the image projection unit,
generate a distance correction coefficient for correcting an input grayscale of an input image, based on the reference line, wherein the distance correction coefficient is generated to increase a size of the distance correction coefficient based on distances between the reference line and the plurality of pixel areas decreasing, based on the reference line, and
control the image projection unit to display a corrected image comprising a corrected grayscale generated by multiplying the input grayscale by the distance correction coefficient.
2 . The electronic device of claim 1 , wherein
the at least one processor, individually and/or collectively, is configured to:
generate a grayscale correction coefficient for correcting the input grayscale to increase the input grayscale of the input image,
generate a final correction coefficient by multiplying the grayscale correction coefficient by the distance correction coefficient, and
generate the corrected image comprising the corrected grayscale by multiplying the input grayscale by the final correction coefficient.
3 . The electronic device of claim 1 , wherein
the input image comprises a plurality of pixel images respectively corresponding to the plurality of pixels,
the distance correction coefficient comprises a plurality of sub-distance correction coefficients for respectively correcting a plurality of pixel grayscales of the plurality of pixel images, and
the at least one processor, individually and/or collectively, is configured to:
obtain a plurality of pieces of pixel distance information about the distances between each of the plurality of pixel areas and the reference line, based on the reference line,
generate the plurality of sub-distance correction coefficients, based on the obtained plurality of pieces of pixel distance information, and
generate the corrected image to comprise a plurality of sub-corrected grayscales generated by multiplying each of the plurality of pixel grayscales by the plurality of sub-distance correction coefficients.
4 . The electronic device of claim 3 , wherein the at least one processor, individually and/or collectively, is configured to: generate the plurality of sub-distance correction coefficients to increase respective sizes of the plurality of sub-distance correction coefficients based on the distances between each of the plurality of pixel areas and the reference line decreasing.
5 . The electronic device of claim 4 , wherein:
the plurality of pixel areas comprise a first pixel area and a second pixel area, the plurality of sub-distance correction coefficients comprise a first sub-distance correction coefficient corresponding to the first pixel area, and a second sub-distance correction coefficient corresponding to the second pixel area, and
the at least one processor, individually and/or collectively, is configured to: based on a second distance between the second pixel area and the reference line being less than a first distance between the first pixel area and the reference line, generate the first sub-distance correction coefficient and the second sub-distance correction coefficient so that a size of the second sub-distance correction coefficient is greater than a size of the first sub-distance correction coefficient.
6 . An electronic device configured to project an image, the electronic device comprising:
an image projection unit comprising a projector configured to project the image onto a projection area;
memory storing at least one instruction; and
at least one processor, comprising processing circuitry, individually and/or collectively, is configured to execute the at least one instruction stored in the memory, and to:
determine a reference line comprising information about a point in the projection area, the point being farthest from the image projection unit,
generate a distance correction coefficient for correcting an input grayscale of an input image, based on the reference line,
generate a grayscale correction coefficient for correcting the input grayscale to increase the input grayscale of the input image,
generate a final correction coefficient by multiplying the grayscale correction coefficient by the distance correction coefficient,
generate a corrected image comprising the corrected grayscale by multiplying the input grayscale by the final correction coefficient, and
control the image projection unit to display the corrected image.
7 . The electronic device of claim 6 , wherein the at least one processor, individually and/or collectively is configured to generate the grayscale correction coefficient to increase a size of the grayscale correction coefficient based on the input grayscale of the input image decreasing.
8 . The electronic device of claim 6 , wherein
the image projection unit comprises a plurality of pixels,
the input image comprises a plurality of pixel images respectively corresponding to the plurality of pixels,
the grayscale correction coefficient comprises a plurality of sub-grayscale correction coefficients for respectively correcting a plurality of pixel grayscales of the plurality of pixel images, and
the at least one processor, individually and/or collectively, is configured to: based on a first pixel grayscale of a first pixel image among the plurality of pixel images being less than a second pixel grayscale of a second pixel image, generate a first sub-grayscale correction coefficient and a second sub-grayscale correction coefficient so that a size of the first sub-grayscale correction coefficient corresponding to the first pixel image and being among the plurality of sub-grayscale correction coefficients is greater than a size of the second sub-grayscale correction coefficient corresponding to the second pixel image.
9 . The electronic device of claim 1 , wherein the at least one processor, individually and/or collectively, is configured to:
determine the reference line, based on a captured image obtained by capturing the image projected onto the projection area,
based on the projection area included in the captured image comprising at least two surfaces, determine an edge between the at least two surface as the reference line, and
based on the projection area included in the captured image comprising one surface, determine a line comprising a point with a lowest brightness in the image as the reference line.
10 . The electronic device of claim 9 , further comprising: a distance sensor, wherein the at least one processor, individually and/or collectively, is configured to:
obtain, via the distance sensor, distance information about a distance between the image projection unit and the projection area, and
determine the reference line, based on the obtained distance information.
11 . A method of operating an electronic device projecting an image, the method comprising:
determining a reference line comprising information about a point in a projection area onto which the image is projected, the point being farthest from an image projection unit, the image projection unit comprising a projector;
generating a distance correction coefficient for correcting an input grayscale of an input image, based on the reference line; and
displaying, as the image, a corrected image comprising a corrected grayscale generated by multiplying the input grayscale by the distance correction coefficient, via the image projection unit,
wherein the image projection unit comprises a plurality of pixels, the projection area comprises a plurality of pixel areas respectively corresponding to the plurality of pixels, and the generating of the distance correction coefficient comprises generating the distance correction coefficient to increase a size of the distance correction coefficient based on distances between the reference line and the plurality of pixel areas decreasing, based on the reference line.
12 . The method of claim 11 , wherein
the image projection unit comprises a plurality of pixels,
the projection area comprises a plurality of pixel areas respectively corresponding to the plurality of pixels, and
the generating of the distance correction coefficient comprises generating the distance correction coefficient to increase a size of the distance correction coefficient based on distances between the reference line and the plurality of pixel areas decreasing, based on the reference line.
13 . The method of claim 11 , wherein
the input image comprises a plurality of pixel images respectively corresponding to the plurality of pixels,
the distance correction coefficient comprises a plurality of sub-distance correction coefficients for respectively correcting a plurality of pixel grayscales of the plurality of pixel images,
the generating of the distance correction coefficient comprises:
obtaining a plurality of pieces of pixel distance information about the distances between each of the plurality of pixel areas and the reference line, based on the reference line; and
generating the plurality of sub-distance correction coefficients, based on the plurality of pieces of pixel distance information, and
the displaying of, as the image, the corrected image comprises generating the corrected image to comprise a plurality of sub-corrected grayscales generated by multiplying each of the plurality of pixel grayscales by the plurality of sub-distance correction coefficients.
14 . The method of claim 13 , wherein the generating of the plurality of sub-distance correction coefficients comprises generating the plurality of sub-distance correction coefficients to increase respective sizes of the plurality of sub-distance correction coefficients based on the distances between each of the plurality of pixel areas and the reference line decreasing.
15 . The method of claim 14 , wherein
the plurality of pixel areas comprise a first pixel area and a second pixel area,
the plurality of sub-distance correction coefficients comprise a first sub-distance correction coefficient corresponding to the first pixel area, and a second sub-distance correction coefficient corresponding to the second pixel area, and
the generating of the plurality of sub-distance correction coefficients comprises, based on a second distance between the second pixel area and the reference line being less than a first distance between the first pixel area and the reference line, generating the first sub-distance correction coefficient and the second sub-distance correction coefficient so that a size of the second sub-distance correction coefficient is greater than a size of the first sub-distance correction coefficient.
16 . The method of claim 11 , further comprising:
generating a grayscale correction coefficient for correcting the input grayscale to increase the input grayscale of the input image; and
generating a final correction coefficient by multiplying the grayscale correction coefficient by the distance correction coefficient,
wherein the displaying of, as the image, the corrected image comprises generating the corrected image comprising the corrected grayscale generated by multiplying the input grayscale by the final correction coefficient, and
the generating of the grayscale correction coefficient comprises generating the grayscale correction coefficient to increase a size of the grayscale correction coefficient based on the input grayscale decreasing.
17 . The method of claim 16 , wherein
the image projection unit comprises the plurality of pixels,
the input image comprises a plurality of pixel images respectively corresponding to the plurality of pixels,
the grayscale correction coefficient comprises a plurality of sub-grayscale correction coefficients for respectively correcting a plurality of pixel grayscales of the plurality of pixel images, and
the generating of the grayscale correction coefficient comprises, based on a first pixel grayscale of a first pixel image among the plurality of pixel images being less than a second pixel grayscale of a second pixel image, generating a first sub-grayscale correction coefficient and a second sub-grayscale correction coefficient so that a size of the first sub-grayscale correction coefficient corresponding to the first pixel image and being among the plurality of sub-grayscale correction coefficients is greater than a size of the second sub-grayscale correction coefficient corresponding to the second pixel image.
18 . The method of claim 11 , wherein the determining of the reference line comprises:
determining the reference line, based on a captured image obtained by capturing the image projected onto the projection area;
based on the projection area included in the captured image comprising at least two surfaces, determining an edge between the at least two surface as the reference line; and
based on the projection area included in the captured image comprising one surface, determining a line comprising a point with a lowest brightness in the image as the reference line.
19 . The method of claim 18 , further comprising: obtaining, via a distance sensor, distance information about a distance between the image projection unit and the projection area,
wherein the determining of the reference line comprises determining the reference line, based on the obtained distance information.