| CPC G06T 3/4038 (2013.01) [G06T 3/4015 (2013.01); G06T 3/4046 (2013.01); G06T 5/50 (2013.01); G06T 2207/20212 (2013.01)] | 11 Claims |

|
1. An image processing apparatus comprising one or more processors and one or more memories storing one or more programs which cause the one or more processors to:
acquire a mosaic image;
generate a first demosaic image by subjecting the mosaic image to a first demosaicing process in which a neural network is used;
generate a second demosaic image by subjecting the mosaic image to a second demosaicing process that is different from the first demosaicing process;
generate a test demosaic image by subjecting a test mosaic image to the first demosaicing process;
detect a region having a specific pattern from the test demosaic image;
record hue information of the detected region as information indicating a specific hue;
detect a region having the specific hue from the first demosaic image as a detected region; and
generate a composite image in which the first demosaic image and the second demosaic image are combined, by combining, with the detected region in the first demosaic image, a corresponding portion of the second demosaic image.
|