Image processing device, electronic device having the same, and operating method thereof
An image processing device includes a memory device that stores a color conversion module, and one or more processors that access the memory device and execute the color conversion module to calculate a color gamut of an input image and perform color conversion of the input image by applying different color conversion matrices according to the color gamut.
1 . An image processing device comprising:
a memory device; and
at least one processor configured to access the memory device and execute a color conversion module to calculate a color gamut to which a color of each pixel of an input image belongs and perform color conversion of the each pixel by applying different color conversion matrices according to the color gamut.
2 . The image processing device of claim 1 , wherein the at least one processor further executes the color conversion module to determine one of a plurality of color gamuts according to a hue value of the each pixel, and perform the color conversion of the each pixel using a color conversion matrix corresponding to the one of the plurality of color gamuts.
3 . The image processing device of claim 2 , wherein the color conversion matrix is a 3×3 matrix, and
a number of the plurality of color gamuts is 9.
4 . The image processing device of claim 1 , wherein the at least one processor further executes the color conversion module to change a color conversion matrix according to segmentation information indicating a pixel location within the input image.
5 . The image processing device of claim 4 , wherein the segmentation information is received from an external device.
6 . The image processing device of claim 4 , wherein the at least one processor further executes the color conversion module to apply the different color conversion matrices according to a shooting target.
7 . The image processing device of claim 4 , wherein the segmentation information includes an index value of a segmentation and a confidence value for the segmentation.
8 . The image processing device of claim 7 , wherein the at least one processor further executes the color conversion module to blend a base matrix and a segmentation matrix in a weighted average manner using the confidence value as a blending weight.
9 . The image processing device of claim 1 , wherein the at least one processor further executes the color conversion module to blend a low saturation matrix when a saturation value of an input pixel is lower than a threshold value.
10 . The image processing device of claim 1 , wherein the at least one processor further executes the color conversion module to, when an input pixel is located near a border of a plurality of color gamuts, interpolate color conversion matrices corresponding to the plurality of color gamuts to generate a final color conversion matrix, and perform the color conversion on the input image using the final color conversion matrix.
11 . A method of operating an image processing device, the method comprising:
calculating a hue value of each pixel of an input image;
calculating a color gamut to which the hue value belongs;
calculating a color conversion matrix according to the color gamut; and
performing color conversion of the each pixel using the color conversion matrix.
12 . The method of claim 11 , wherein according to the hue value, nine color gamuts are uniformly distinguished.
13 . The method of claim 11 , further comprising:
calculating a saturation value of the input image; and
calculating a low saturation matrix when the saturation value is lower than a threshold value.
14 . The method of claim 13 , further comprising:
calculating a base matrix corresponding to the hue value;
calculating a segmentation matrix according to the color gamut and a segmentation index; and
blending the base matrix and the segmentation matrix using segmentation information to generate a blended segmentation matrix.
15 . The method of claim 14 , further comprising:
blending the blended segmentation matrix and the low saturation matrix in a weighted average manner by using the saturation value as a blending weight to generate a blended low saturation matrix; and
calculating the color conversion matrix using the blended low saturation matrix.
16 . An electronic device comprising:
an image sensor configured to acquire an image of a target; and
an application processor configured to perform conversion of a Hue, Saturation, Value (HSV) domain on the image, determine a color gamut to which each pixel belongs according to a value of a phase of the HSV domain, and perform different color conversion operations for the color gamut on each pixel of the image depending on the color to which the each pixel belongs.
17 . The electronic device of claim 16 , wherein the application processor distinguishes color gamuts according to hue values in the HSV domain, and performs color conversion on the image by applying a color conversion matrix corresponding to the distinguished color gamuts.
18 . The electronic device of claim 16 , wherein the application processor performs the color conversion on the image by applying different segmentation matrices according to segmentation information indicating a pixel location within the image.
19 . The electronic device of claim 16 , wherein the application processor calculates a saturation value of the image and performs the color conversion on the image by applying a low saturation matrix according to the saturation value.
20 . The electronic device of claim 17 , wherein color gamuts of phases of the HSV domain are settable by a user, and
wherein the electronic device further comprises a display device that displays an output image on which the color conversion has been performed.