Image processing method, recording medium with recorded image processing program and image processing apparatus
An image processing method for carrying out predetermined correction processing with respect to one or more items regarding the quality of color images and the image processing method comprises a judgment step for judging the necessity/nonnecessity of correction with respect to each of the above-mentioned items and a correction processing step for carrying out the predetermined correction processing with respect to the item judged as required to be corrected at the above-mentioned judgment step.
1. A judging method of sunset scene, comprising:
converting, by an apparatus, color components R, G and B of an image data into hue data, lightness data and saturation data;
calculating, by an apparatus, first products of the hue data and the saturation data of the pixel of red and yellow in the image data;
calculating, by an apparatus, second products of the hue data and the lightness data of the pixel of red and yellow in the image data; and
judging, by an apparatus, whether the image data is the sunset scene based on first and second products.
2. A judging method of sunset scene according to claim 1 , further comprising:
calculating, by an apparatus, a histogram of the products of the hue data and the saturation data;
calculating, by an apparatus, a histogram of the products of the hue data and the lightness data;
calculating, by an apparatus, a variance of the two histograms; and
wherein judging, by an apparatus, whether the image data is the sunset scene based on the variance.
3. An image processing apparatus, comprising:
a memory which stores an image data of a color image;
a judge section which judges whether correction of the color image based on a quality of sunset scene,
wherein the judge section comprises;
a unit for calculating first products of the hue data and the saturation data of the pixel of red and yellow in the image data;
a unit for calculating second products of the hue data and the lightness data of the pixel of red and yellow in the image data; and
a unit for judging whether the image data is the sunset scene based on first and second products.
4. An image processing apparatus according to claim 3 , further comprising:
a unit for calculating a histogram of the products of the hue data and the saturation data;
a unit for calculating a histogram of the products of the hue data and the lightness data;
a unit for calculating a variance of the two histograms; and
wherein the unit for judging whether the image data is the sunset scene based on the variance.
5. A non-transitory computer readable medium with a recorded program, the program, upon being executed, performing:
converting color components R, G and B of an image data into hue data, lightness data and saturation data;
calculating first products of the hue data and the saturation data of the pixel of red and yellow in the image data;
calculating second products of the hue data and the lightness data of the pixel of red and yellow in the image data; and
judging whether the image data is the sunset scene based on first and second products.
6. A non-transitory computer readable medium with a recorded program according to claim 5 , the program further, upon being executed, performing:
calculating a histogram of the products of the hue data and the saturation data;
calculating a histogram of the products of the hue data and the lightness data;
calculating a variance of the two histograms; and
wherein judging whether the image data is the sunset scene based on the variance.