摘要 |
PROBLEM TO BE SOLVED: To provide an image processing apparatus, an image processing method, and an image processing program capable of accurately classifying pixels into foreground pixels and background pixels with a small amount of processing.SOLUTION: The image processing apparatus includes a reduction part, a first segmentation part, a second segmentation part, and a smoothing part. The second segmentation part classifies each of pixels in an input image into either a foreground pixel or a background pixel. In other words, the second segmentation part performs segmentation processing on each of a plurality of pixels in the input image corresponding to boundary pixels between foreground pixels and background pixels in a reduced image to classify the pixel into either the foreground pixel or the background pixel, and classifies each of a plurality of pixels in the input image corresponding to non-boundary pixels not being the boundary pixels in the reduced image into the same category as the corresponding non-boundary pixel. |