主权项 |
1. An image processing device comprising:
a computer coupled to a processing unit and a corresponding pixel computation unit programmed to, with respect to image data containing an image data area and an ignored area, execute a process of replacing a pixel in the ignored area having influence on a spatial analysis process with a pixel having no influence on the spatial analysis process, thereby converting the image data into an intermediate image, wherein the corresponding pixel computation unit includes: a shortest-distance edge pixel extraction unit programmed to extract an edge pixel at a shortest distance from the ignored pixel; an another-endpoint pixel computation unit programmed to compute, with respect to a line segment having the edge pixel as a midpoint and having the ignored pixel as an endpoint, a pixel at another endpoint; an ignored pixel determination unit programmed to determine if the pixel at the other endpoint is an ignored pixel; and a pixel value overwriting unit programmed to, if the pixel at the other endpoint is not an ignored pixel, write a pixel value of the pixel at the other endpoint over the pixel value of the ignored pixel, wherein the process includes execution by each of the shortest-distance edge pixel extraction unit, the another-endpoint pixel computation unit, the ignored pixel determination unit, and the pixel value overwriting unit at least twice, and wherein the processing unit is programmed to perform a process of reflecting the ignored area in the image, which contains the ignored area, into an intermediate image processing result for which the ignored area is not taken into consideration. |