| CPC G06T 5/70 (2024.01) [G06T 5/50 (2013.01); G06T 5/92 (2024.01); G06T 7/11 (2017.01); G06T 2207/10068 (2013.01); G06T 2207/20192 (2013.01); G06T 2207/20221 (2013.01)] | 12 Claims |

|
1. An image processing apparatus comprising:
a memory storing instructions; and
at least one processor configured to execute the instructions to:
specify a region having a luminance value higher than a specific value as a mask region, from a target image to be processed, the image to be processed being an inside of a human body;
generate a mask image by setting the luminance value of a region other than the mask region to zero in the image to be processed;
extract an edge from the target image to be processed as a whole;
specify a portion of a region around the mask region that overlaps with the edge, such that the specified portion is defined as that which satisfies a condition for luminance in the mask image;
expand the mask region to the peripheral region excluding the specified portion by a set number of pixels along an outer edge of the mask region;
smooth the luminance value of an entirety of the target image to be processed to generate a luminance value smoothed image;
specify a region matching the expanded mask region in the luminance value smoothed image;
set the luminance value of a region other than the specified region matching the expanded mask region in the luminance value smoothed image to zero to generate a corrected image; and
synthesize the corrected image with the target image to be processed to generate a new image.
|