Image processing apparatus and image processing program
First Claim
1. An image processing apparatus which inputs an image obtained by sensing an optical image by an imaging system, compensates for an omitted color component, and outputs a color image, the apparatus comprising:
- a weight setting unit which sets a weight Wk in each direction Sk (k is an integer from 1 to n) of a plurality of directions S1, S 2, . . . , Sn (n is an integer of not less than
1) starting from a pixel of interest in a predetermined neighborhood of the pixel of interest;
an average value calculation unit which calculates a weighted average of pixel values Vk of pixels having a specific color component and located on each direction Sk (k is an integer from 1 to n) in the predetermined neighborhood by using the weights W1 to Wn of the pixel values V1 to Vn; and
a restoration unit which causes the average calculation unit to calculate weighted averages of a plurality of types of color components, and which restores a value of the omitted color component of the pixel of interest on the basis of a weighted average result and a pixel value of the pixel of interest.
1 Assignment
0 Petitions
Accused Products
Abstract
An image processing apparatus inputs an image obtained by sensing an optical image by an image sensing system, compensates an omitted color component, and outputs a color image. A weight setting unit sets a weight Wk in each direction Sk (k is an integer from 1 to n) of a plurality of directions S1, S2, . . . , Sn (n is an integer of not less than 1) starting from a pixel of interest in a predetermined neighborhood of the pixel of interest. An average value calculation unit calculates a weighted average of pixel values Vk of pixels having a specific color component and located on each direction Sk (k is an integer from 1 to n) in the predetermined neighborhood by using weights W1 to Wn of the pixel values V1 to Vn. An restoration unit causes the average calculation unit to calculate weighted averages of a plurality of types of color components and restores a value of an omitted color component of the pixel of interest on the basis of the weighted average result and the pixel value of the pixel of interest.
43 Citations
25 Claims
-
1. An image processing apparatus which inputs an image obtained by sensing an optical image by an imaging system, compensates for an omitted color component, and outputs a color image, the apparatus comprising:
-
a weight setting unit which sets a weight Wk in each direction Sk (k is an integer from 1 to n) of a plurality of directions S1, S 2, . . . , Sn (n is an integer of not less than
1) starting from a pixel of interest in a predetermined neighborhood of the pixel of interest;an average value calculation unit which calculates a weighted average of pixel values Vk of pixels having a specific color component and located on each direction Sk (k is an integer from 1 to n) in the predetermined neighborhood by using the weights W1 to Wn of the pixel values V1 to Vn; and a restoration unit which causes the average calculation unit to calculate weighted averages of a plurality of types of color components, and which restores a value of the omitted color component of the pixel of interest on the basis of a weighted average result and a pixel value of the pixel of interest. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A computer readable medium storing a computer program which causes a computer to input an image obtained by sensing an optical image by an image sensing system, compensate for an omitted color component, and output a color image, the program being executable by the computer to cause the computer to perform functions comprising:
-
a weight setting function which sets a weight Wk in each direction Sk (k is an integer from 1 to n) of a plurality of directions S1, S 2, . . . , Sn (n is an integer of not less than
1) starting from a pixel of interest in a predetermined neighborhood of the pixel of interest;an averaging function which calculates a weighted average of pixel values Vk of pixels having a specific color component and located on each direction Sk (k is an integer from 1 to n) in the predetermined neighborhood by using the weights W1 to Wn of the pixel values V1 to Vn; and a restoration unit function which causes the averaging function to calculate weighted averages of a plurality of types of color components, and which restores a value of the omitted color component of the pixel of interest on the basis of a weighted average result and a pixel value of the pixel of interest. - View Dependent Claims (22, 23, 24, 25)
-
Specification