Image processing device, image processing method, and program

The image processing device enhances region-of-interest extraction by integrating a classifier with graph cut segmentation, addressing the labor-intensive issue of creating correct images and improving boundary precision.

JP7551866B2Active Publication Date: 2024-09-17CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023130562
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-08-10
Publication Date
2024-09-17
Estimated Expiration
2039-04-04

AI Technical Summary

Technical Problem

The accuracy of machine learning-based image segmentation methods is hindered by the labor-intensive process of creating large numbers of correct images, making it difficult to effectively extract regions of interest with high precision, particularly near the boundaries.

Method used

An image processing device that combines a classifier for initial region extraction with a graph cut segmentation method, utilizing foreground and background seeds to refine the extraction results, thereby generating accurate region-of-interest images.

Benefits of technology

The device reduces labor in creating correct images while achieving high-accuracy extraction of regions of interest, including those near boundaries, by leveraging a classifier and graph cut segmentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007551866000008
    Figure 0007551866000008
  • Figure 0007551866000007
    Figure 0007551866000007
  • Figure 0007551866000004
    Figure 0007551866000004
Patent Text Reader

Abstract

To provide an image processing device capable of efficiently generating teaching data used for training a classifier.SOLUTION: An image processing device of the present invention comprises: a learning unit 130 configured to train a classifier using teaching data; a first extraction unit 140 configured to extract a first area of interest from an image using the classifier trained by the learning unit 130; a setting unit 150 configured to set area information used for the graph-cut segmentation method based on a first extraction result including the first area of interest; a second extraction unit 160 configured to extract a second area of interest by the graph-cut segmentation method based on the set area information; and a generation unit 170 configured to generate a correct image corresponding to the image using a second extraction result including the second area of interest.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing device, an image processing method, and a program for creating a ground truth image indicating a region of interest depicted in an image captured by an imaging device. [Background technology]

[0002] One of the important techniques in image processing is segmentation. Segmentation is a process of distinguishing between an area of ​​interest and an area other than the area of ​​interest in an image, and is also called area extraction, area division, or image division. Many segmentation methods have been proposed so far, but in recent years, methods based on machine learning such as those disclosed in Non-Patent Document 1 have attracted attention. [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Olaf Ronneberger,et al.“U-Net:Convolutional Networks for Biomedical Image Segmenttion”,MICCAI,2015 Summary of the Invention [Problem to be solved by the invention]

[0004] However, the accuracy of machine learning depends on the teaching data consisting of a set of training images and correct images. Creating correct images is a labor-intensive task, so there is a problem that it is difficult to create a large number of correct images. The present invention aims to provide an image processing device that can create correct images while reducing the labor. [Means for solving the problem]

[0005] The image processing device according to the present invention has the following configuration: a learning unit that learns a classifier based on teaching data, a first extraction unit that extracts a first region of interest from an image using the classifier learned by the learning unit, a setting unit that sets region information used in a graph cut segmentation method based on the first extraction result including the first region of interest, a second extraction unit that extracts a second region of interest using the graph cut segmentation method based on the set region information, and a generation unit that generates a correct image corresponding to the image based on the second extraction result including the second extracted region. Effect of the Invention

[0006] According to the present invention, a correct image can be created while reducing the labor. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 is a block diagram showing the arrangement of an image processing apparatus according to a first embodiment. [Diagram 2] 4 is a flowchart showing a processing procedure of the image processing apparatus according to the first embodiment. [Diagram 3] FIG. 4 is a view showing an example of teaching data of the image processing apparatus according to the first embodiment; [Figure 4] FIG. 1 is a diagram for explaining a method for setting a foreground seed and a background seed. [Diagram 5] FIG. 13 is a diagram showing the arrangement of an image processing apparatus according to a second embodiment. [Figure 6] 10 is a flowchart showing a processing procedure of an image processing apparatus according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The same or equivalent components, members, and processes shown in each drawing will be given the same reference numerals, and duplicated descriptions will be omitted as appropriate. Also, some of the components, members, and processes will be omitted in each drawing.

[0009] In the following, the present invention will be described by taking as an example the liver depicted in an abdominal CT image taken by an X-ray computed tomography (X-ray CT) device. In the present invention, the liver present in the abdomen of a human body is the object of interest, and the abdominal CT image taken of the abdomen is the learning image. The liver depicted in the abdominal X-ray CT image is the region of interest. Here, the correct image corresponds to the learning image and refers to an image showing the position information of the object of interest relative to the learning image.

[0010] The present invention is applicable not only to other organs but also to all structures of the human body such as bones and muscles. The present invention is also applicable to tomographic images taken by a magnetic resonance imaging (MRI) device, a positron emission tomography (PET) device, and an ultrasonic imaging device, and to normal images taken by a camera. The present invention is also applicable to two-dimensional images and three-dimensional images. Furthermore, the present invention is also applicable to actual images taken of general objects. The embodiments of the present invention are not limited to the following embodiments. EXAMPLES

[0011] <First embodiment> The configuration of an image processing device according to an embodiment will be described below with reference to Fig. 1. An image processing device 100 according to the present invention first extracts an area of ​​interest depicted in an image using a classifier 101. Next, a graph cut segmentation unit 102 extracts an area of ​​interest in the image again using a known graph cut segmentation method. At this time, the image processing device constructs a graph to be used by the graph cut segmentation unit 102 based on the extraction result of the area of ​​interest by the classifier. Finally, the image processing device 100 corrects the extraction result of the area of ​​interest by the graph cut segmentation unit 102 to generate a correct image for the image.

[0012] In general, even when extracting a region of interest using a classifier trained with a small number of training images and a small number of correct images, the region near the center of the region of interest is extracted with relatively high accuracy. However, if the training data for the classifier is insufficient, the region near the boundary of the region of interest may not be correctly extracted as the region of interest. This may result in, for example, insufficient extraction of the region of interest or in erroneous extraction of a region outside the region of interest as the region of interest.

[0013] On the other hand, in the known graph cut segmentation method, if the graph is constructed appropriately by the setting unit, both the regions near the center and the regions near the boundary of the region of interest can be extracted with very high accuracy. Here, in order for the setting unit to construct the graph appropriately, it is necessary to set region information. The region information is composed of two types of information, a foreground seed and a background seed. The foreground seed is information that indicates at least a part of the regions in the image that are regions of interest. On the other hand, the background seed is information that indicates at least a part of the regions that are not regions of interest. When the setting unit constructs a graph based on these two types of information, the region of interest can be extracted by the graph cut segmentation method.

[0014] In consideration of the above points, the image processing device 100 according to the present invention first extracts a region of interest using the classifier 101. Next, the setting unit 150 deletes the region near the boundary from the region extracted by the classifier. The setting unit 150 further sets foreground and background seeds of a graph based on the region that remains undeleted from the extracted region. Then, using the set foreground and background seeds, the setting unit 150 constructs a graph. Finally, the graph cut segmentation method is executed based on the constructed graph. By this method, the region of interest in the image is extracted with high accuracy. The extracted region is then regarded as the correct region. The correct region is the position information of the object of interest in the correct image.

[0015] The image processing device 100 has a first acquisition unit 110 that acquires teaching data, which is a set of a training image and a correct answer image, a second acquisition unit 120 that acquires an image, and a learning unit 130 that trains the classifier 101. It also has a first extraction unit 140 that extracts an area of ​​interest using the trained classifier 101, a setting unit 150 that sets area information from the extraction result of the first extraction unit, a second extraction unit 160 that extracts an area of ​​interest based on the set area information, and a generation unit 170 that generates a correct answer image from the extraction result. It is composed of an output unit 180 that outputs the result. Furthermore, there is a data server 200 for storing data that is input to the image processing device 100 and data that is output by the image processing device 100. The data server 200 is an example of a computer storage medium, and is a large-capacity information storage device represented by a hard disk drive (HDD) or a solid state drive (SSD). The data server 200 may be held in the image processing device 100, or may be separately provided outside the image processing device 100 and configured to be able to communicate via a network. Here, the learning unit 130 and the first extraction unit 140 include a classifier 101, and the second extraction unit 160 includes a graph cut segmentation unit 102, and they correspond to each other.

[0016] The first acquisition unit 110 acquires the teaching data from the data server 200. Then, the first acquisition unit 110 transmits the acquired teaching data to the learning unit .

[0017] Here, the teaching data will be described with reference to FIG. 3. FIG. 3 shows an example of teaching data in the image processing device 100 according to the first embodiment. In the image processing device according to the present embodiment, the teaching data includes at least one learning image and a correct answer image. The learning images 310, 330, and 350 in FIG. 3 are examples of learning images. The learning images 310, 330, and 350 are each a cross section (transverse section) of a three-dimensional abdominal CT image obtained by photographing the abdomens of a plurality of different patients. In the learning image 310, a region 311 is a liver. Similarly, the regions 331 and 332 in the learning image 330 are also livers. In addition, the region 351 in the learning image 350 is also a liver. Therefore, in FIG. 3, the regions 311, 331, 332, and 351 are regions of interest.

[0018] Next, the correct answer image will be described. At least one correct answer image exists corresponding to each learning image. In the example of the teaching data shown in FIG. 3, the correct answer image 320 is the correct answer image corresponding to the learning image 310. Similarly, the correct answer image 340 is the correct answer image corresponding to the learning image 330, and the correct answer image 360 ​​is the correct answer image corresponding to the learning image 350. At least one pixel of the corresponding correct answer image corresponds to each pixel of the learning image. In the example of the pair of the learning image 310 and the correct answer image 320, each pixel of the learning image 310 and each pixel of the correct answer image 320 have a one-to-one relationship. The same is true for the pair of the learning image 330 and the correct answer image 340, and the pair of the learning image 350 and the correct answer image 360. The pixel value of each pixel of the correct answer image indicates whether the corresponding pixel of the learning image belongs to the attention area or not. In the example of the correct answer image 320, if the corresponding pixel belongs to the attention area, it is shown in white, and if the corresponding pixel does not belong to the attention area, it is shown in black. The region 321 of the correct answer image 320, the regions 341 and 342 of the correct answer image 340, and the region 361 of the correct answer image 360 ​​are referred to as correct regions.

[0019] The pixel value assigned to each pixel of the correct answer image by the generation unit 170 is binary or multi-valued depending on the classifier 101 (described later) used in the learning unit 130 and the first extraction unit 140. The correct answer images 320, 340, and 360 are examples of binary images.

[0020] As long as the pixels representing the region of the target object and the other pixels can be distinguished in the learning image, the pixel value of the corresponding correct answer image may be any value. For example, the pixel value of the correct answer image generated by the generating unit 170 may be either 1 or 2. In addition, the pixel value of the correct answer image generated by the generating unit 170 may be any one of a plurality of different values ​​given to the pixels representing the region of the target object and the other pixels. In this embodiment, the process by the classifier that distinguishes the liver as the target object and two other classes has been described, but the number of classes, such as liver, kidney, and others, does not matter. In addition, even if there are multiple classes, the pixel value assigned to each pixel of the correct answer image generated by the generating unit 170 may be binary or multi-valued.

[0021] 3 shows an example of a training image in which a region of interest is depicted. However, the training data handled by the image processing device 100 according to the first embodiment may include a training image in which a target object is not depicted. In this case, the corresponding correct image does not have a correct region.

[0022] The functional configuration of the image processing device according to this embodiment will be described again with reference to Fig. 1. The second acquisition unit 120 acquires an image from the data server 200. Hereinafter, the image acquired by the second acquisition unit 120 from the data server 200 will be referred to as a target image. The second acquisition unit 120 transmits the acquired target image to the first extraction unit 140, the setting unit 150, the second extraction unit 160, and the generation unit 170.

[0023] The target image acquired by the second acquisition unit 120 may be an image for which a corresponding correct answer image exists, or may be an image for which a corresponding correct answer image does not exist. Also, it may be an image included in the teaching data as a learning image. Furthermore, it may be an image in which an attention area is depicted in the target image, or may be an image in which an attention area is not depicted.

[0024] The learning unit 130 receives training data from the first acquisition unit 110. Then, the received training data is used to train the classifier 101. The learning unit 130 acquires the results of training (classifier parameters) by training the classifier 101. The learning unit 130 transmits the parameters of the classifier 101 to the first extraction unit 140. Note that the learning unit does not need to be provided within the image processing device 100. For example, the classifier 101 may be provided on a cloud and training may be performed on the cloud, or parameters obtained by the classifier 101 trained by a different image processing device may be transmitted to the first extraction unit 140.

[0025] Here, the classifier 101 used in the learning unit 130 and the first extraction unit 140 will be described. In the image processing device 100 according to the first embodiment, the classifier outputs, for each of a plurality of pixels in an image, whether or not the pixel belongs to a region of interest. In other words, it means an image processing means that performs segmentation. One example of such a classifier 101 is an image processing means based on machine learning. The image processing means based on machine learning include, for example, Support Vector Machine, AdaBoost, and Neural Network.

[0026] In addition, there are also methods that are not based on machine learning, such as threshold processing, region expansion, and level set methods, as different types of image processing means. In the image processing device 100 according to the first embodiment, both the image processing means based on machine learning and the image processing means not based on machine learning can be used. The image processing means may be a combination of multiple image processing means. The image processing means may be a method based on machine learning, a method not based on machine learning, or a method combining both. The learning unit 130 and the first extraction unit 140 use the same classifier 101 whether the image processing means is based on machine learning or is not based on machine learning.

[0027] Next, the parameters of the classifier 101 acquired by the learning unit 130 through learning will be described. The parameters of the classifier 101 differ depending on the classifier 101 used in the learning unit 130 and the first extraction unit 140. For example, when a Support Vector Machine is used as the classifier 101, the parameters of the classifier 101 are the value of a weight vector of a classification function, and when a kernel trick is used, the parameters of the kernel function. When AdaBoost is used as the classifier 101, the parameters of the classifier 101 are a weak classifier selected by the learning algorithm of AdaBoost, the parameters of the weak classifier, and the weights assigned to the weak classifier. When a Neural Network is used as the classifier 101, the weights of the network are the parameters of the classifier.

[0028] When the classifier 101 is an image processing means not based on machine learning, the parameters of the classifier 101 are parameters that define the operation of the classifier 101. For example, when threshold processing is used as the classifier 101, the parameters of the classifier 101 are thresholds. In addition, in the case of region growing processing, the parameters of the classifier 101 are parameters used in the growing conditions and the termination conditions. In the case of the Level Set method, the parameters are parameters of a speed function.

[0029] The functional configuration of the image processing device according to this embodiment will be described again with reference to Fig. 1. The first extraction unit 140 acquires a target image from the second acquisition unit 120. The first extraction unit 140 also acquires parameters of the classifier 101 from the learning unit 130. Next, the first extraction unit 140 applies a predetermined classifier 101 to the target image, and extracts an area of ​​interest in the target image. Finally, the first extraction unit 140 transmits the extracted area (first extraction result) to the setting unit 150.

[0030] Here, the first extraction result will be described. Depending on the type of classifier used in the learning unit 130 and the first extraction unit 140, the pixel value assigned to each of the multiple pixels by the classifier 101 may be binary or multi-valued. When the first extraction result is a binary image composed of binary pixel values, a first pixel value is set to pixels in the target image that the classifier has determined to belong to the region of interest. A pixel value different from the first pixel value is set to pixels that the classifier has determined to not belong to the region of interest.

[0031] When the first extraction result is a multi-value image composed of multi-value pixels, the pixel value of the first extraction result represents the likelihood, which is the probability that the pixel belongs to the region of interest. For example, when the pixel value representing the likelihood has a high value, it means that the pixel is highly likely to belong to the region of interest. On the other hand, when the pixel value representing the likelihood has a low value, it means that the pixel is unlikely to belong to the region of interest. In the following, a set of pixels determined to belong to the region of interest, or a set of pixels that are even slightly likely to belong to the region of interest, is referred to as a first extraction region.

[0032] The setting unit 150 acquires a target image from the second acquisition unit 120. The setting unit 150 also acquires an extraction result of the region of interest (first extraction result) from the first extraction unit 140. Next, the setting unit 150 refers to the target image and the extraction result of the region of interest, and sets information (region information) necessary for constructing a graph to be used in the known graph cut segmentation unit 102. This information includes at least foreground seed and background seed information. In addition to the foreground seed and background seed information, the region information may also include an energy value to be assigned to an edge (t-link). Hereinafter, the information set by the setting unit 150 will be referred to as graph information. The setting unit 150 transmits the graph information to the second extraction unit 160.

[0033] The second extraction unit 160 acquires the target image from the second acquisition unit 120. The second extraction unit 160 also acquires graph information from the setting unit 150. Next, the second extraction unit 160 applies a known graph cut segmentation method to the image to extract an attention area in the target image. The second extraction unit 160 transmits the extracted area (second extraction result) to the generation unit 170.

[0034] The generation unit 170 acquires a target image from the second acquisition unit 120. The generation unit 170 also acquires a second extraction result from the second extraction unit 160. Next, the generation unit 170 generates a correct image corresponding to the target image based on the second extraction result. Finally, the generation unit 170 transmits the generated correct image to the output unit 180. Hereinafter, the correct image generated by the generation unit 170 will be described as a correct image corresponding to the target image.

[0035] The output unit 180 acquires a correct answer image corresponding to the target image from the generation unit 170. Then, the output unit 180 stores the correct answer image corresponding to the target image in the data server 200. Note that the output unit 180 may store the correct answer image corresponding to the target image in the data server 200 in association with the target image. In this case, the output unit 180 acquires the target image from the second acquisition unit 120. Then, the output unit 180 stores the correct answer image corresponding to the target image and the target image as one pair in the data server 200.

[0036] The output unit 180 may output a correct answer image corresponding to the target image to a display unit not shown in FIG. 1. An example of a display device included in the display unit is a display. The display unit may display only the correct answer image corresponding to the target image. The display unit may also display the correct answer image corresponding to the target image and the target image at the same time.

[0037] Next, a processing procedure of the image processing device 100 according to the first embodiment will be described with reference to FIG.

[0038] (S1010) In step S1010, the first acquisition unit 110 acquires the teaching data from the data server 200. Then, the first acquisition unit 110 transmits the acquired teaching data to the learning unit .

[0039] (S1020) In step S1020, the learning unit 130 acquires the training data from the first acquisition unit 110. Then, the learning unit 130 performs learning of a predetermined classifier 101.

[0040] When the classifier 101 is an image processing means based on machine learning, the learning unit 130 learns the classifier 101 using a known learning algorithm. For each classifier, there is a known learning algorithm suitable for that classifier. Therefore, the learning unit 130 learns the classifier 101 using a known learning algorithm according to the classifier 101 selected by the learning unit 130 and the first extraction unit 140. Note that the learning by the learning unit 130 may not be performed in the image processing device 100, but may be performed on the cloud or in a different image processing device.

[0041] On the other hand, when the classifier 101 is an image processing means not based on machine learning, the learning unit 130 optimizes parameters that define the operation of the classifier 101. For example, when threshold processing is used as the classifier 101, learning refers to processing that determines a threshold value. In addition, in the case of region growing processing, learning refers to processing that determines parameters used in the growing condition and the termination condition.

[0042] Finally, in step S1020, the learning unit 130 transmits the parameters of the classifier 101 obtained by the above-mentioned learning to the first extraction unit 140.

[0043] (S1030) In step S1030, the second acquisition unit 120 acquires the target image from the data server 200. Then, the second acquisition unit 120 transmits the acquired target image to the first extraction unit 140, the setting unit 150, the second extraction unit 160, and the generation unit 170.

[0044] (S1040) In step S1040, the first extraction unit 140 acquires a target image from the second acquisition unit 120. Next, the first extraction unit 140 acquires classifier parameters from the learning unit 130. Then, the first extraction unit 140 uses a predetermined classifier 101 to extract a region of interest from the target image.

[0045] The process performed in step S1040 differs depending on the image processing means selected as the classifier 101. When the classifier 101 is a Support Vector Machine, which is one method of machine learning, the first extraction unit 140 constructs a classifier function using a weight vector of the classifier function and a kernel function parameter stored in the classifier parameter. Next, the first extraction unit 140 sequentially inputs each of the multiple pixels of the target image to the constructed classifier function and executes calculation of the classifier function. Then, the calculation result of the classifier function is stored in the first extraction result.

[0046] When the classifier 101 is AdaBoost, the first extraction unit 140 constructs a strong classifier using the type of weak classifier and the parameters of the weak classifier stored in the parameters of the classifier 101. Next, the first extraction unit 140 sequentially inputs each of the multiple pixels of the target image to the constructed strong classifier and executes calculation of the strong classifier. Then, the calculation result of the strong classifier is stored in the first extraction result.

[0047] When the classifier 101 is a Neural Network, the first extraction unit 140 constructs a network using the network weights stored in the parameters of the classifier. Next, the first extraction unit 140 sets the values ​​of each of the multiple pixels of the target image in the input layer of the network. After that, the first extraction unit 140 performs calculations on the weight layer of the network, and finally performs calculations on the output layer. Finally, the calculation results of the output layer are stored in the first extraction result.

[0048] The same applies when the classifier is an image processing means not based on machine learning. For example, when the classifier is a threshold processing, the first extraction unit 140 applies threshold processing to the target image using a threshold stored in the parameters of the classifier. When the classifier is a region expansion, the first extraction unit 140 applies region expansion processing to the target image using parameters of the expansion condition and the termination condition stored in the parameters of the classifier. When the classifier is a Level Set method, the first extraction unit 140 applies region expansion processing to the target image using parameters of the speed function stored in the parameters of the classifier. After executing these image processing means, the first extraction unit 140 stores the calculation results in the first extraction result.

[0049] After completing the above processes, the first extraction unit 140 transmits the first extraction result to the setting unit 150.

[0050] (S1050) In step S1050, the setting unit 150 acquires a target image from the second acquisition unit 120. Next, the setting unit 150 acquires a first extraction result from the first extraction unit 140. Then, the setting unit 150 sets foreground seeds and background seeds used in a known graph cut segmentation method.

[0051] A method for setting foreground seeds and background seeds will be described with reference to Fig. 4. In step S1050, setting unit 150 performs different processing depending on whether the first extraction result acquired in step S1040 is binary or multi-valued. First, processing when the first extraction result is a binary image will be described.

[0052] An image 410 in FIG. 4 is a target image acquired by the second acquisition unit 120 in step S1030. Regions 411 and 412 in the target image 410 are the liver, which is a region of interest. An image 420 in FIG. 4 is a first extraction result output by the first extraction unit 140 in step S1040. Regions 420 and 421 in the first extraction result 420 are regions (first extracted regions) identified as regions of interest by the classifier 101. As can be seen by comparing the region of interest 411 and the first extracted region 421, the classifier 101 generally correctly extracts the center part of the region of interest 411, but there are some parts near the boundary of the region of interest 411 that cannot be correctly identified. The same is true for the region of interest 412 and the first extracted region 422.

[0053] Focusing on the relationship between the attention region and the first extraction region described above, the setting unit 150 sets, as region information, foreground seeds and background seeds so as to three-dimensionally sandwich the contours of the attention region 411 and the attention region 412. In other words, the setting unit 150 sets foreground seeds inside the first extraction region. In addition, the setting unit 150 sets background seeds in a region other than the first extraction region (outside the first extraction region).

[0054] The specific process is as follows. In order to set the foreground seed, the setting unit 150 applies a reduction process, which is one of the morphological operations, to the first extracted region 421 and the first extracted region 422 in the first extraction result 420. The region obtained by this reduction process is set as the foreground seed. The region 431 and the region 432 in the image 430 are examples of the foreground seed. The image 430 is a result of applying the reduction process to the first extraction result 420. The reduction process is a process of reducing the first extracted region 421 and the first extracted region 422 three-dimensionally. Therefore, even if the first extracted region 421 and the first extracted region 422 do not exactly match the attention region 411 and the attention region 412, the region (region 431 and region 432) obtained by reducing the first extracted region 421 and the first extracted region 422 is expected to remain inside the attention region 411 and the attention region 412. Therefore, the region 431 and the region 432 are set as the foreground seed.

[0055] Next, in order to set a background seed, the setting unit 150 applies a reduction process, which is one of morphological operations, to a region 423 other than the first extraction region 421 and the first extraction region 422 of the first extraction result 420. The region obtained by this reduction process is set as a background seed. A region 441 in an image 440 is an example of a background seed. The image 440 is a result of applying a reduction process to the region 423 in the first extraction result 420. As a result of the reduction process, it is highly likely that the region 441 covers regions other than the attention region 411 and the attention region 412. Therefore, the region 441 is set as a background seed.

[0056] The setting unit 150 sets the images 430 and 440 obtained by the above processing as the foreground seed and background seed when the first extraction result is a binary image.

[0057] Next, a process in which the setting unit 150 sets a foreground seed and a background seed, which are region information, when the first extraction result is a multi-value image will be described. Now, assume that the first extraction unit 140 processes the target image 410 in step S1040. An image 450 in FIG. 4 is the first extraction result output by the first extraction unit 140. The first extraction result 450 is a multi-value image, and regions 451 and 452 are regions (first extraction regions) that have been determined by a classifier to possibly belong to the regions of interest 411 and 412. Moreover, a region 453 is a region that has been determined not to be a region of interest.

[0058] As can be seen from the first extraction result 450, in the region 452 corresponding to the center of the region of interest 411 and the region of interest 412, the pixel values ​​indicating the likelihood to the region of interest are high. On the other hand, in the region 451 corresponding to the periphery of the region of interest 411 and the region of interest 412, the pixel values ​​indicating the likelihood to the region of interest are low. In general, the first extracted region has a high value in the center of the region of interest. Conversely, the first extracted region has a low value in the periphery of the region of interest.

[0059] Focusing on the relationship between the attention region and the first extraction region described above, the setting unit 150 sets the foreground seed and the background seed so as to three-dimensionally sandwich the contours of the attention region 411 and the attention region 412. In other words, the setting unit 150 sets the foreground seed inside the first extraction region. In addition, the setting unit 150 sets the background seed in a region other than the first extraction region (outside the first extraction region).

[0060] The specific process is as follows: To set the foreground seeds, the setting unit 150 applies threshold processing to the first extraction result 450. Regions 461 and 462 in the image 460 are regions obtained by the threshold processing. There is a high possibility that the regions 461 and 462 are included in the regions of interest 411 and 412. Therefore, the regions 461 and 462 are set as foreground seeds.

[0061] Next, in order to set a background seed, the setting unit 150 applies a reduction process to the region 463, other than the foreground seed 461 and the foreground seed 462 in the image 460. Then, the region obtained by this reduction process is set as the background seed. The region 471 in the image 470 is a region obtained by applying a reduction process to the region 463 in the image 460. There is a high possibility that the region 471 covers a region other than the region of interest 411 and the region of interest 412. Therefore, the region 471 is set as the background seed.

[0062] The setting unit 150 sets the images 460 and 470 obtained by the above processing as the foreground seed and background seed when the first extraction result is a multi-valued image.

[0063] This completes the explanation of the process in which the setting unit 150 sets the foreground seed and the background seed. The essence of the above process is to set the foreground seed inside the first extraction region, and to set the background seed outside the first extraction region. To achieve such setting, the setting unit 150 places the foreground seed a predetermined distance inside from the boundary of the first extraction result. Also, the setting unit 150 places the background seed a predetermined distance outside from the boundary of the first extraction result.

[0064] In the above example, the setting unit 150 sets the foreground seed and the background seed using threshold processing and shrinking processing, but similar settings can be realized by using distance transformation processing. For example, the setting unit 150 applies distance transformation to the image 420 to obtain a distance image. The pixel values ​​of this distance image are Euclidean distance values ​​to the boundary between the region 421 and the region 422. Therefore, by performing threshold processing on the distance image with a predetermined distance value, it is possible to obtain foreground seeds and background seeds similar to the foreground seeds 431, 432, and 441. The setting unit 150 may also apply distance transformation to the image 460. At this time, the distance value of the obtained distance image is the distance value from the boundary between the foreground seeds 462 and 463. Therefore, by performing threshold processing on this distance image with a predetermined distance value, it is possible to obtain a background seed similar to the background seed 471. Furthermore, by applying distance transformation and threshold processing to the image 450, it is possible to obtain foreground seeds similar to the foreground seeds 461 and 462. The setting unit 150 then performs the process of step S1060.

[0065] (S1060) In step S1060, the setting unit 150 calculates energy to be assigned to an edge (t-link) used in a known graph cut segmentation method for each of a plurality of pixels other than the pixels set as the foreground seed or background seed. The energy is calculated based on the region (first extraction result) extracted using a classifier.

[0066] First, for each of a plurality of pixels other than the pixels set as the foreground seed and the background seed, the setting unit 150 calculates the distance from the boundary of the foreground seed. Then, the setting unit 150 calculates an energy value according to the distance from the boundary of the foreground seed. An example of the calculation is as follows. Let the energy value given to the pixel closest to the boundary of the foreground seed be L1. Also, let the energy value given to the pixel farthest from the boundary of the foreground seed, that is, the pixel adjacent to the boundary of the background seed, be L2. However, assume L2 < 0 < L1. And let the distance value from the foreground seed to the background seed be D2. Then, for each pixel other than the foreground seed and the background seed, the energy value L is calculated and given by the formula shown in (Equation 1).

[0067] [Number]

[0068] Here, d in (Equation 1) is the distance from the boundary of the foreground seed of the pixel. L1 and L2 may be any values as long as L2 < 0 < L1 is satisfied. A preferred example is to set L1 = 1 and L2 = -1.

[0069] So far, an example of the calculation method of the energy value L given to the edge (t-link) has been described, but the calculation method of the energy value is not limited to the above example. For example, a constant value may be given as the energy value. A preferred example is to set L = 0.

[0070] The description of the calculation method of the energy value L given to the edge (t-link) ends here.

[0071] Finally, the setting unit 150 transmits the foreground seed and the background seed obtained in step S1050 and the energy given to the edge (t-link) obtained in step S1060 as graph information to the second extraction unit 160.

[0072] (S1070) In step S1070, the second extraction unit 160 extracts an interest region in the target image using a known graph cut segmentation method, for example, see patent document US6973212 for details of the graph cut segmentation method.

[0073] In the graph cut segmentation method, we first create a graph corresponding to the target image. The method of creating the graph is the same as that of the well-known graph cut segmentation method.

[0074] Hereafter, a node that corresponds one-to-one to each pixel in the target image is called a pixel node. A node that represents the region of interest (liver) is called terminal node F, and a node that represents a region other than the region of interest is called terminal node B. An edge that connects adjacent pixel nodes is called an edge (n-link), and an edge that connects each pixel node to two terminal nodes is called an edge (t-link).

[0075] Next, in steps S1050 and S1060, energy is assigned to edges (t-links) connecting each pixel node with two terminal nodes based on the graph information generated by the setting unit 150. The process of assigning energy to edges (t-links) can be divided into the following three methods:

[0076] (1) If the pixel corresponding to the pixel node is included in the foreground seed The energy of the edge (t-link) between the pixel node and terminal node F is set to infinity. On the other hand, the energy of the edge (t-link) between the pixel node and terminal node B is set to zero.

[0077] (2) If the pixel corresponding to the pixel node is included in the background seed The energy of the edge (t-link) between the pixel node and terminal node B is set to infinity. On the other hand, the energy of the edge (t-link) between the pixel node and terminal node F is set to zero.

[0078] (3) If the pixel corresponding to the pixel node is not included in either the foreground seed or the background seed If the energy value L of the pixel calculated by setting unit 150 in step S1060 is L>0, the energy of the edge (t-link) between the pixel node and terminal node F is set to L. On the other hand, the energy of the edge (t-link) between the pixel node and terminal node B is set to zero. If L<0, the energy of the edge (t-link) between the pixel node and terminal node B is set to -L. On the other hand, the energy of the edge (t-link) between the pixel node and terminal node F is set to zero. If L=0, the energy of both edges (t-links) is set to zero.

[0079] After that, the same processing steps as those of the well-known graph cut segmentation method are performed. That is, a value (e.g., the inverse of the difference in pixel values) representing the similarity of pixel values ​​between all adjacent pixels in the target image is calculated. Then, the calculated value is assigned to the edges (n-links) connecting the pixel nodes corresponding to those adjacent pixels. Finally, the graph is divided into two subgraphs using a graph partitioning algorithm (e.g., the Ford-Fulkerson method). Here, the partitioning is performed so that one of the subgraphs contains at least terminal node F, and the other contains terminal node B. At this time, the subgraph containing terminal node F (subgraph GF) contains a pixel node corresponding to "pixels that are likely to belong to the region of interest (liver)". And the subgraph containing terminal node B (subgraph GB) contains a pixel node corresponding to "pixels that are likely to belong outside the region of interest". Therefore, the pixels corresponding to the pixel nodes contained in subgraph GF are regarded as pixels that belong to the region of interest (liver). The result obtained by this calculation is regarded as the second extraction result.

[0080] Finally, the second extraction unit 160 transmits the second extraction result to the generation unit 170 .

[0081] (S1080) In step S1080, the generation unit 170 obtains the second extraction result from the second extraction unit 160. Then, based on the second extraction result, a correct image corresponding to the target image is generated.

[0082] The simplest method for generating a correct image is to use the second extraction result as the correct image without making any changes to the second extraction result.

[0083] The generating unit 170 can also apply a predetermined image processing to the second extraction result based on knowledge previously obtained regarding the extraction accuracy of the second extraction result. For example, no matter what image processing device 100 processes what target image, if the region of interest is not sufficiently extracted, the generating unit 170 applies an expansion process, which is one of the morphological operations, to the second extraction result. This enlarges the second extraction result. Conversely, if a region other than the region of interest is erroneously extracted, the generating unit 170 applies a reduction process, which is one of the morphological operations, to the second extraction result. This reduces the second extraction result. The generating unit 170 regards the second extraction result corrected by these image processes as the correct image.

[0084] The generating unit 170 may apply a smoothing filter such as a uniform weight smoothing filter or a Gaussian filter to the second extraction result, and the resulting image may be regarded as a correct answer image. For example, among the second extraction results output by the second extracting unit 160, the pixel value of a pixel determined to belong to the region of interest (liver) is set to 1, and the pixel value of the other pixels is set to 0. When a smoothing filter is applied to the second extraction result having such pixel values, the pixel value of a pixel near the boundary between a region having a pixel value of 0 and a region having a pixel value of 1 changes continuously from 0 to 1. Therefore, this pixel value is regarded as a likelihood indicating the likelihood that the pixel belongs to the region of interest. Based on this idea, the generating unit 170 applies a smoothing filter to the second extraction result, and the resulting image is regarded as a correct answer image.

[0085] The generating unit 170 may correct the second extraction result based on image processing input by the operator of the image processing device 100. In this case, the operator uses an operation unit not shown in FIG. 1 to specify an area that has not been sufficiently extracted as a region of interest or an area that has been erroneously extracted as a region of interest with a pointing device. The generating unit 170 receives instructions from the operator from the operation unit not shown, and applies expansion processing or reduction processing to the second extraction result based on the instructions. Then, the generating unit 170 regards the second extraction result corrected by these image processes as a correct image.

[0086] Finally, the generation unit 170 transmits the ground truth image corresponding to the target image to the output unit 180.

[0087] (S1090) In step S1090, the output unit 180 acquires the correct image corresponding to the target image from the generation unit 180. Then, the output unit 190 stores in the data server 200 the correct image corresponding to the target image.

[0088] According to the above procedure, the image processing apparatus 100 according to the first embodiment generates a correct image corresponding to the target image.

[0089] The image processing device 100 according to the first embodiment can extract an attention area in a target image with high accuracy by the above-mentioned processing. Then, by using the extraction result as a correct image, it is possible to generate a correct image corresponding to the target image with high accuracy and easily.

[0090] Second Embodiment An image processing device 500 according to the second embodiment will be described with reference to Fig. 5. The image processing device 500 includes a first acquisition unit 510, a second acquisition unit 520, a learning unit 530, a first extraction unit 140, a setting unit 150, a second extraction unit 160, a generation unit 570, an update unit 580, and an output unit 590. Note that, similarly to Fig. 1, the learning unit 530 and the first extraction unit include a classifier 101, and the second extraction unit 160 includes a graph cut segmentation unit 102.

[0091] The first extraction unit 140, the setting unit 150, and the second extraction unit 160 perform the same processing as the processing units given the same reference numerals in the image processing device 100 according to the first embodiment, except for acquiring the target image from the second acquisition unit 520. Therefore, the description of these processing units will be omitted.

[0092] The first acquisition unit 510 acquires the teaching data from the data server 200. Then, the first acquisition unit 510 transmits the acquired teaching data to the learning unit 530 and the update unit 580.

[0093] The second acquisition unit 520 acquires an image from the data server 200. Then, the second acquisition unit 520 transmits the acquired target image to the first extraction unit 140, the setting unit 150, the second extraction unit 160, the generation unit 570, and the update unit 580. The type of target image acquired by the second acquisition unit 520 is the same as the type of target image acquired by the second acquisition unit 120 of the image processing device 100 according to the first embodiment.

[0094] The learning unit 530 receives the training data from the first acquisition unit 510. Then, the received training data is used to train the classifier 101. The method of training the classifier 101 is as described in the description of the learning unit 130 of the image processing device 100 according to the first embodiment. The learning unit 530 acquires the results of training (classifier parameters) by training the classifier 101. The learning unit 530 transmits the parameters of the classifier 101 to the first extraction unit 140 and the output unit 590.

[0095] The generating unit 570 obtains the target image from the second obtaining unit 520. The generating unit 570 also obtains the second extraction result from the second extracting unit 160. Next, the generating unit 570 generates a correct image corresponding to the target image based on the second extraction result. Finally, the generating unit 170 transmits the generated correct image to the updating unit 580 and the output unit 590.

[0096] The update unit 580 acquires the teaching data from the first acquisition unit 510. The update unit 580 also acquires the target image from the second acquisition unit 520. Furthermore, the update unit 580 acquires a correct answer image corresponding to the target image from the generation unit 170. Then, the update unit 580 updates the acquired teaching data. The updating method will be described later. The update unit 580 transmits the updated teaching data to the output unit 590.

[0097] The output unit 590 acquires the parameters of the classifier 101 from the learning unit 530. In addition, the output unit 590 acquires the updated teaching data from the update unit 580. Then, the output unit 590 stores the parameters of the classifier 101 and the updated teaching data in the data server 200. Details of the process performed by the output unit 590 will be described later.

[0098] Next, the processing procedure of the image processing device of this embodiment will be described with reference to FIG.

[0099] (S6010) In step S6010, the first acquisition unit 510 acquires the teaching data from the data server 200. Then, the first acquisition unit 510 transmits the acquired teaching data to the learning unit 530 and the update unit 580.

[0100] (S6020) In step S6020, the learning unit 530 acquires training data from the first acquisition unit 510. Then, learning is performed on a predetermined classifier 101. The learning method is the same as the process performed in step S1030 by the learning unit 130 of the image processing device 100 according to the first embodiment.

[0101] Finally, in step S6020, the learning unit 530 transmits the parameters of the classifier 101 obtained by learning to the first extraction unit 140 and the output unit 590.

[0102] (S6030) In step S6030, the second acquisition unit 520 acquires the target image from the data server 200. Then, the second acquisition unit 520 transmits the acquired target image to the first extraction unit 140, the setting unit 150, the second extraction unit 160, the generation unit 570, and the update unit 580.

[0103] After executing the process of step S6030, the image processing device 500 according to the second embodiment performs the processes of steps S1040, S1050, S1060, and S1070 executed by the image processing device 100 according to the first embodiment, and then executes the process of step S6080 described below.

[0104] (S6080) In step S6080, the generation unit 570 obtains the second extraction result from the second extraction unit 160. Then, based on the second extraction result, a correct image corresponding to the target image is generated. The correct image generation process is the same as the process executed by the generation unit 170 of the image processing device 100 according to the first embodiment in step S1080. Finally, the generation unit 570 transmits the correct image corresponding to the target image to the update unit 580 and the output unit 590.

[0105] (S6090) In step S6090, the update unit 580 acquires the teaching data from the first acquisition unit 510. The update unit 580 also acquires the target image from the second acquisition unit 520. Furthermore, the update unit 580 acquires the correct image corresponding to the target image from the generation unit 170. Then, the update unit 580 updates the acquired teaching data.

[0106] There are two methods for updating the teaching data. If the target image is not included in the teaching data, the target image and the correct answer image corresponding to the target image are added to the teaching data as a pair. This is the first updating method. If the target image is already included in the teaching data, the correct answer image corresponding to the target image is replaced with the correct answer image generated by the generation unit 170. This is the second updating method. Note that even if the target image is already included in the teaching data, the acquired target image and the correct answer image corresponding to the target image may be added to the teaching data as a pair.

[0107] Finally, the update unit 580 transmits the updated teaching data to the output unit 590 .

[0108] (S6093) In step S6093, the output unit 590 acquires a correct image corresponding to the target image from the generation unit 570. Then, the output unit 590 stores the correct image corresponding to the target image in the data server 200. The output unit 590 may store the target image acquired by the second acquisition unit 520 and the correct image corresponding to the target image generated by the generation unit 570 in association with each other in the data server 200. In this case, although not shown in FIG. 5, the output unit 180 acquires the target image from the second acquisition unit 520.

[0109] In step S6093, the output unit 590 may output a correct answer image corresponding to the target image to a display unit not shown in Fig. 5. An example of a display device included in the display unit is a display. The display unit may display only the correct answer image corresponding to the target image. Furthermore, the display unit may simultaneously display the correct answer image corresponding to the target image and the target image.

[0110] Furthermore, in step S6093, the output unit 590 may store the parameters of the classifier 101 and the updated teaching data in the data server 200. In this case, the output unit 590 acquires the parameters of the classifier 101 from the learning unit 530. In addition, the output unit 590 acquires the updated teaching data from the update unit 580.

[0111] (S6095) In step S6095, the control unit (not shown in FIG. 5) of the image processing device 500 according to the second embodiment judges whether or not a target image to be processed exists in the data server 200. If a target image to be processed exists, the process returns to step S6010 and executes the subsequent processes again. If the target image does not exist, the image processing device 500 according to the second embodiment ends the process. Even if a target image to be processed exists, it is not necessary to update the teaching data every time a correct answer image is generated. For example, when there are multiple target images, the correct answer images for the multiple target images are created using the parameters of the same learning device. Specifically, in step S6080, a correct answer image corresponding to the target image is created. At that point, the process may return to step S6030 for acquiring an unprocessed target image and execute the subsequent processes (not shown in FIG. 6). In that case, the process is repeated until the target image does not exist.

[0112] According to the above procedure, the image processing device 500 according to the second embodiment generates a correct image corresponding to the target image.

[0113] The image processing device 500 according to the second embodiment uses initial training data to train a classifier. Then, a correct answer image is created for the first target image using the trained classifier, graph cut segmentation, and known image processing (dilation and erosion processing, including manual correction). Next, the training data is updated using the created correct answer image. Thereafter, the same processing as the first is performed using the updated training data to create a correct answer image for the next target image. By repeatedly performing such processing, the extraction accuracy of the attention area depicted in the target image gradually increases. As a result, a correct answer image corresponding to the target image can be generated easily and with high accuracy.

[0114] (Determining the termination condition) As the second embodiment, a method of creating a correct answer image and updating the training data has been described. If a correct answer image corresponding to the target image does not exist, a correct answer image is created for the learning image. Alternatively, if a correct answer image corresponding to the target image exists, the correct answer image is replaced, or the target image and the correct answer image are added to the training data as a pair. Then, by learning a classifier using the created or updated training data and further creating a correct answer image, it is expected that the accuracy of extracting the region of interest will gradually improve.

[0115] Here, we will explain the termination conditions when learning multiple times and creating a correct image. When using a classifier based on machine learning, there is a problem of overlearning when learning multiple times images created by data expansion based on the same image or by padding images using a Generative Adversarial Network (GAN). Overlearning is a problem in which, while a high discrimination ability is demonstrated for the learned data, the accuracy is poor for images that are different from the learning data. For this reason, in learning based on the same image, it is necessary to maintain a balance between accuracy and the number of times of learning.

[0116] In general, the accuracy of a classifier is determined by comparing a high-quality correct image such as one created manually with an extraction result extracted by the classifier, and if the difference between the two images is small, the accuracy of the classifier is deemed high, and this is set as the end condition for learning. In the present invention, the end condition may also be determined by comparing a high-quality image such as one created manually with the classification result by the classifier.

[0117] However, in the case of medical images, where the creation of a correct image is performed by a person with knowledge such as a doctor, creating a high-quality correct image is time-consuming. In the case where a high-quality correct image does not exist, it is difficult to terminate the process according to the above-mentioned termination condition.

[0118] Therefore, when there is no high-quality manually generated correct image, the extraction result by the classifier trained with the teaching data may be compared with the extraction result by the classifier trained with the teaching data before the last time (before the teaching data was updated) as the termination condition. In the following, the former is referred to as the extraction result by the latest classifier, and the latter is referred to as the extraction result by the classifier before the last time.

[0119] The comparison between the extraction result by the latest classifier and the extraction result by the previous or previous classifier differs depending on whether the extraction result is composed of a binary image or a multi-value image. If the extraction result by the classifier 101 is a binary image, the previous or previous extraction result is compared with the latest extraction result, and the pixels that make up the region of interest are compared. Since the accuracy of learning by machine learning improves with each learning iteration, the variation in the pixels that make up the region of interest becomes smaller. The termination condition is that the variation in the extraction result by the classifier 101 becomes equal to or less than a predetermined value.

[0120] When the extraction result by the classifier 101 is a multi-valued image composed of likelihoods, it is expected that the number of pixels having a likelihood equal to or greater than a predetermined value will increase with each iteration of learning by machine learning. The extraction result before the previous time is compared with the latest extraction result, and the pixel values ​​of the multiple pixels constituting the extraction result are compared, and the termination condition is that the variance in the likelihoods is equal to or less than a predetermined value. Alternatively, pixels having a likelihood equal to or greater than a predetermined value may be compared, and the termination condition may be that the variance in the pixels is equal to or less than a predetermined value. Note that this embodiment may be implemented on an image after graph cut segmentation based on the extraction result by the classifier 101.

[0121] Furthermore, as a termination condition, the extraction result of the region of interest by the classifier 101 may be compared with the extraction result by graph cut segmentation. Specifically, the pixels constituting the region of interest extracted by the classifier 101 are compared with the pixels constituting the region of interest extracted by graph cut segmentation, and the termination condition is set when the difference between the pixels of the two becomes a predetermined value or less. Since the extraction result of the graph cut segmentation is a binary image, if the extraction result by the classifier 101 is a multi-value image, the likelihood may be subjected to threshold processing and converted to binary. The termination condition may be determined by any of the above, or may be determined from a plurality of the above. In addition, the termination condition may simply be the number of times defined by the user. The target to be compared as the termination condition may be not only the extraction result by the classifier (first extraction result) and the classification result by graph cut segmentation (second extraction result), but also the generated correct image.

[0122] When determining whether the above-mentioned termination condition is satisfied, the image processing device 500 may have a separate determination unit that determines whether the termination condition is satisfied. Specifically, when the above-mentioned termination condition is satisfied, the determination unit terminates this process, and when the termination condition is not satisfied, the determination unit executes the flow for generating the correct image again.

[0123] (Parameter Change) When multiple learning rounds are performed and correct images are created, the accuracy of extracting the region of interest is expected to improve. Since the classifier depends on the number and quality of training data, it will show more reliable results each time the flow is repeated. For example, in multi-value images, the likelihood of indicating the region of interest or other than the region of interest is calculated to be high, and in binary images, the overlapping area with the actual region of interest in the image becomes large.

[0124] Therefore, when the processing shown in Fig. 4 (threshold processing, morphology processing) is performed without changing the parameters, over-extraction or under-extraction of the region of interest may occur. For example, the overlapping part with the actual region of interest may be set outside the foreground seed due to the reduction processing, or the part not overlapping with the actual region of interest may be set as the foreground seed due to the expansion processing or threshold processing.

[0125] Therefore, when repeating learning and creating a correct image, the threshold value for setting the foreground seed is set higher than the threshold value used for learning and creating the correct image in the previous or previous times. Alternatively, the ratio of shrinking and expanding processes in the morphological processing is set to a small value, which makes it possible to extract the region of interest as the accuracy of the classifier improves.

[0126] A classifier based on machine learning sets parameters used for classification based on training data. Among machine learning methods, classifiers based on Neural Networks in particular have high classification ability, but when searching for parameters from scratch, more training data and time are required. When there is not enough training data, there are a method of increasing the training data by padding images using data expansion or GAN (Generative Adversarial Network), and a method of using parameters of a classifier trained with other training data for classification, called transfer learning. When performing transfer learning, it is desirable to recognize a certain relationship between the other training data and the current training data. In the present invention, for example, when learning and creating a correct answer image are performed multiple times, parameters of a classifier trained previously may be used as initial values ​​of parameters of the latest classifier. The teaching data used previously and the latest teaching data are highly correlated, and it is expected that the cost of fine tuning will be reduced. In addition, when parameters of a classifier trained previously are used, the quality of the parameters is higher than that of a classifier trained with an image with low homology. Therefore, when a classifier trained based on the latest teaching data is based on parameters of a classifier trained using teaching data from the previous or previous times, the higher the homology, the smaller the learning rate during training is made. By reducing the learning rate of the correct image, the parameter update range can be limited, which has the effect of creating a classifier with more accurate parameters. When parameters of a classifier trained from the previous or previous time are used as the initial values ​​of the parameters of the latest classifier, the classifier may be trained using all the teaching data stored in the data server 200. Also, the classifier may be trained using only the teaching data used in the most recent few learnings.

[0127] (Other Examples) The present invention can also be realized by executing the following process: That is, software (programs) that realize the functions of the above-described embodiments are supplied to a system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads and executes the programs.

Claims

1. A learning unit that learns a classifier based on teaching data; a first extraction unit that extracts a region of interest depicted in an image using the classifier trained by the learning unit, and obtains a first extraction result including a first extraction region extracted as the region of interest; a setting unit that sets a foreground seed in the graph cut segmentation method inside the first extraction region and sets a background seed in the graph cut segmentation method outside the first extraction region based on the first extraction result, as graph information used in the graph cut segmentation method; a second extraction unit that obtains a second extraction result by extracting pixels that are likely to belong to the region of interest by the graph cut segmentation method based on the graph information including the set foreground seed and the set background seed; a generation unit that generates a correct image corresponding to the image based on the second extraction result.

2. The image processing device according to claim 1, characterized in that the setting unit further has a processing unit that performs at least one of morphological processing, threshold processing, and distance transformation processing on the first extraction result, and sets the graph information based on the processing result by the processing unit.

3. 3. The image processing apparatus according to claim 1, wherein the graph information set by the setting unit further includes energy.

4. The energy in the setting unit is [0010] 4. The image processing apparatus according to claim 3, wherein the setting is made by:

5. 3. The image processing apparatus according to claim 1, further comprising: an update unit that updates the teaching data based on the correct image generated by the generation unit.

6. The image processing apparatus according to claim 5 , wherein the update unit replaces the correct image of the teaching data with the correct image generated by the generation unit.

7. 7. The image processing apparatus according to claim 5, wherein the learning section learns a classifier based on the teaching data updated by the update section.

8. 8. The image processing device according to claim 1, further comprising a determination unit that determines the end of generation of the correct image based on either the first extraction result or the second extraction result, or the generated correct image.

9. 9. The image processing device according to claim 8, wherein the determination unit determines that generation of the correct image is completed when a variation in pixels constituting the first extraction result and the second extraction result becomes equal to or smaller than a predetermined value.

10. 9. The image processing device according to claim 8, wherein the determination unit determines that generation of the correct image is completed when a variation in pixels constituting the first extraction result by a classifier trained with the teaching data and an extraction result by a classifier trained with teaching data prior to being updated to the teaching data becomes equal to or less than a predetermined value.

11. 11. The image processing apparatus according to claim 10, wherein the extraction result by the classifier is a likelihood.

12. 12. The image processing apparatus according to claim 11, wherein the determination unit determines that generation of the correct image is completed based on the difference in likelihood.

13. The image processing device according to claim 7 , wherein the setting unit changes a parameter of a process to be applied to the first extraction result in order to set the graph information, depending on the number of times the learning unit has learned.

14. 14. The image processing device according to claim 13, wherein a threshold value for the first extraction result by the classifier trained with the teaching data is greater than a threshold value for the extraction result by the classifier trained with the teaching data before being updated to the teaching data.

15. than the ratio of morphological processing to the first extraction result by the classifier trained by the teaching data, 14. The image processing apparatus according to claim 13, wherein a ratio of morphological processing to extraction results by a classifier trained with teaching data before being updated to the teaching data is high.

16. 8. The image processing apparatus according to claim 7, wherein a learning rate of the classifier that learns based on the teaching data is smaller than a learning rate of a classifier that learns based on the teaching data before being updated to the teaching data.

17. the setting unit constructs a graph in which a larger value is set for t-links corresponding to the foreground seeds and the background seeds compared to other t-links based on the graph information; 17. The image processing device according to claim 1, wherein the second extraction unit extracts pixels that are likely to belong to the region of interest by applying the graph cut segmentation method to the graph.

18. A step of training a classifier based on training data; a first extraction step of extracting a region of interest depicted in an image by the trained classifier, thereby obtaining a first extraction result including a first extracted region extracted as the region of interest; Based on the first extraction result, a foreground seed in the graph cut segmentation method is set inside the first extraction region as graph information of the graph cut segmentation method, and a background seed in the graph cut segmentation method is set outside the first extraction region; a second extraction step of extracting pixels that are likely to belong to the region of interest based on the set region information by a graph cut segmentation method to obtain a second extraction result; generating a correct image corresponding to the image based on the second extraction result.

19. A program for causing a computer to execute the image processing method according to claim 18.

20. A learning unit that learns a classifier based on teaching data; a first extraction unit that extracts a region of interest depicted in an image using the classifier trained by the learning unit, and obtains a first extraction result including a first extraction region extracted as the region of interest; A setting unit that sets region information for graph cut segmentation based on the first extraction result, the setting unit setting the region information by applying a predetermined process to the first extraction result; a second extraction unit that obtains a second extraction result by extracting pixels that are likely to belong to the region of interest by the graph cut segmentation method based on the set region information; A generating unit that generates a correct image corresponding to the image based on the second extraction result, The image processing device according to claim 1, wherein the setting unit changes parameters relating to the predetermined process depending on the number of times the learning unit has performed learning.

21. 21. The image processing apparatus according to claim 20, wherein the predetermined processing is at least one of morphological processing, threshold processing, and distance conversion processing for the first extraction result.

22. 22. The image processing device according to claim 20, wherein the setting unit sets a foreground seed inside the area obtained by the predetermined processing, and sets a background seed outside the area obtained by the predetermined processing.

23. The image processing device according to claim 21, characterized in that a threshold value for the first extraction result by a classifier trained using the teaching data is larger than a threshold value for the extraction result by a classifier trained using teaching data before being updated to the teaching data, or a ratio of morphological processing for the extraction result by a classifier trained using teaching data before being updated to the teaching data is larger than a ratio of morphological processing for the extraction result by a classifier trained using teaching data before being updated to the teaching data.

Citation Information

Patent Citations

  • Learning data generation support apparatus, method of operating learning data generation support apparatus, and learning data generation support program

    JP2019010411A