Method for partitioning area, and inspection device
First Claim
1. An area partitioning method for partitioning an image into a foreground and a background, the method comprising:
- a foreground designation step comprising causing a user to designate a part of pixels in an area in the image as a foreground designating pixel;
an estimation step comprising estimating a foreground color distribution and a background color distribution based on a color of the foreground designating pixel designated by the user; and
an area partition step comprising partitioning the image into a foreground area and a background area with the estimated foreground color distribution and the estimated background color distribution as a condition,wherein the estimation step comprises;
dividing the color distribution of the image into a plurality of clusters;
selecting at least one cluster having a large relationship with the foreground designating pixel designated by the user in the plurality of clusters as the foreground color distribution; and
selecting at least one cluster having a small relationship with the foreground designating pixel as the background color distribution, andwherein, in the area partition step, an optimum solution of the foreground area is obtained from a plurality of candidate areas that are of candidate solutions of the foreground area by evaluating identity of the foreground of a color of each pixel inside any of the plurality of candidate areas for the foreground color distribution and identity of the background of a color of each pixel outside the candidate area for the background color distribution with respect to the plurality of candidate areas.
1 Assignment
0 Petitions
Accused Products
Abstract
An area partitioning method for partitioning an image into a foreground and a background includes a foreground designation step of causing a user to designate a part of pixels in an area that should be the foreground in the image as a foreground designating pixel, an estimation step of estimating a foreground color distribution and a background color distribution based on a color of the foreground designating pixel designated by the user, and an area partition step of partitioning the image into a foreground area and a background area with the estimated foreground color distribution and the estimated background color distribution as a condition. The estimation step includes dividing the color distribution of the image into a plurality of clusters, and selecting at least one cluster having a large relationship with the foreground designating pixel designated by the user in the plurality of clusters as the foreground color distribution.
7 Citations
26 Claims
-
1. An area partitioning method for partitioning an image into a foreground and a background, the method comprising:
-
a foreground designation step comprising causing a user to designate a part of pixels in an area in the image as a foreground designating pixel; an estimation step comprising estimating a foreground color distribution and a background color distribution based on a color of the foreground designating pixel designated by the user; and an area partition step comprising partitioning the image into a foreground area and a background area with the estimated foreground color distribution and the estimated background color distribution as a condition, wherein the estimation step comprises; dividing the color distribution of the image into a plurality of clusters; selecting at least one cluster having a large relationship with the foreground designating pixel designated by the user in the plurality of clusters as the foreground color distribution; and selecting at least one cluster having a small relationship with the foreground designating pixel as the background color distribution, and wherein, in the area partition step, an optimum solution of the foreground area is obtained from a plurality of candidate areas that are of candidate solutions of the foreground area by evaluating identity of the foreground of a color of each pixel inside any of the plurality of candidate areas for the foreground color distribution and identity of the background of a color of each pixel outside the candidate area for the background color distribution with respect to the plurality of candidate areas. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A program stored on a non-transitory computer-readable medium that causes a computer to perform an area partitioning method for partitioning an image into a foreground and a background, comprising:
-
a foreground designation step comprising causing a user to designate a part of pixels in an area in the image as a foreground designating pixel; an estimation step comprising estimating a foreground color distribution and a background color distribution based on a color of the foreground designating pixel designated by the user; and an area partition step comprising partitioning the image into a foreground area and a background area with the estimated foreground color distribution and the estimated background color distribution as a condition, wherein the estimation step comprises; dividing the color distribution of the image into a plurality of clusters; selecting at least one cluster having a large relationship with the foreground designating pixel designated by the user in the plurality of clusters as the foreground color distribution, and selecting at least one cluster having a small relationship with the foreground designating pixel as the background color distribution, wherein in the area partition step, an optimum solution of the foreground area is obtained from a plurality of candidate areas that are of candidate solutions of the foreground area by evaluating identity of the foreground of a color of each pixel inside any of the plurality of candidate areas for the foreground color distribution and identity of the background of a color of each pixel outside the candidate area for the background color distribution with respect to the plurality of candidate areas. - View Dependent Claims (22, 23, 24, 25, 26)
-
Specification