A method, system and medium for segmenting a circular contour image

By constructing a lightweight convolutional neural network model of pyramid convolution encoder, fusion module and decoder, the problem of difficulty in balancing accuracy and complexity in image segmentation with existing technology is solved, and efficient circular contour images are achieved. segmentation, surpassing the performance of existing algorithms.

CN118229717BActive Publication Date: 2024-09-17CHANGSHU INSTITUTE OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410660040.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-17
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

Existing deep learning algorithms are difficult to achieve a balance between high segmentation accuracy and low computational complexity when processing irregular-shaped contours and unclear contours of target images, especially in image segmentation.

Method used

A circular contour image segmentation method is adopted. By constructing a lightweight convolutional neural network model of a pyramid convolution encoder, a fusion module and a decoder, the pyramid convolution is used to extract multi-scale features, and the fusion module fuses the underlying information of the network, and Features of different scales are extracted through the decoder, and image segmentation is finally achieved.

Benefits of technology

It is possible to improve the accuracy of image segmentation while reducing the amount of model parameters, surpassing the performance level of existing similar algorithms, and achieving higher segmentation accuracy with a smaller amount of model parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118229717B
    Figure CN118229717B
Patent Text Reader

Abstract

The present application discloses a method, system and medium for segmenting a circular contour image, wherein the method comprises the following steps: obtaining target image data and preprocessing; annotating the obtained data set and dividing it into a training set and a verification set; constructing a circular contour image segmentation model, wherein the circular contour image segmentation model comprises an encoder, a fusion module and a decoder; training the circular contour image segmentation model using training set samples, evaluating the model using verification set samples and adjusting the model parameters to obtain a trained model; inputting the image data to be tested into the trained model to obtain an output result. The present application has the advantage of being able to achieve a high segmentation accuracy with a small amount of model parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to a method, system and medium for segmenting a circular contour image. Background Art

[0002] In recent years, with the emergence of deep learning, such as CNNs and transformers, and the combination of the two to produce ViT, it has been widely used in image analysis and processing, demonstrating its remarkable ability to capture complex patterns and subtle differences in images.

[0003] Currently, in the field of image segmentation, the demand for accuracy and efficiency of segmentation is getting higher and higher. The irregular shape contours or unclear contours of the target image pose new challenges to various deep learning algorithms, especially in terms of the trade-off between segmentation accuracy and computational complexity, which makes it difficult to achieve ideal results. Summary of the invention

[0004] The present application provides a method, system and medium for segmenting a circular contour image, which has the advantage of being able to achieve a higher segmentation accuracy with a smaller amount of model parameters.

[0005] The technical solution of this application is as follows:

[0006] On the one hand, the present application provides a method for segmenting a circular contour image, characterized in that it includes the following steps:

[0007] S1: Acquire target image data and preprocess;

[0008] S2: Label the acquired data set and divide it into training set and validation set with a ratio of 7:3;

[0009] S3: Constructing a circular contour image segmentation model, wherein the circular contour image segmentation model includes:

[0010] An encoder, wherein the encoder uses pyramid convolution as an underlying structure to obtain multi-scale features in an image and uses 1×1 convolution to fuse channel features;

[0011] A fusion module, the fusion module is used to fuse the output results from the encoder and output a feature map;

[0012] and a decoder, the decoder being used to extract features from the feature map output by the fusion module;

[0013] The circular contour image segmentation model is trained using the training set samples, and the model is evaluated using the validation set samples and the model parameters are adjusted to obtain the trained model;

[0014] S4: Input the image data to be tested into the trained model to obtain the output result.

[0015] Furthermore, the number of encoders and decoders is 5 respectively, and the number of channels is 8, 16, 24, 32, and 40 respectively.

[0016] Furthermore, the encoder structure can be expressed as:

[0017]

[0018] in x is the input feature map, F is the encoder output, PConv () is the pyramid convolution, Conv1 () is a 1 × 1 convolution, GN () is group normalization, GELU () is the GELU activation function;

[0019] The encoder first normalizes the feature map by group, then divides it into four parts on average in the channel dimension, and then uses 1 × 1, 3 × 3, 5 × 5, and 7 × 7 depth-separable convolutions respectively. Finally, concat is used to concatenate and add the feature map before convolution to obtain the feature map after feature extraction. The structure can be expressed as:

[0020]

[0021] in F 1, F 2 is the output of the intermediate stage, F is the final output of this part, x1, x2, x3, x4 are feature maps that are evenly divided into four parts in the channel dimension, The depth-wise separable convolutions are 1 × 1, 3 × 3, 5 × 5, and 7 × 7 respectively. It is the concatenation of feature maps in the channel dimension.

[0022] Furthermore, the structure of the fusion module can be expressed as:

[0023]

[0024] in E In the encoding stage, after downsampling, the output is X Feature maps of the same resolution, X is the bottom-up feature map in the fusion stage, maxpool () is the maximum pooling layer, ConvGNGELU () is 1×1 convolution + group normalization + GELU Activation function;

[0025] The fusion module first uses 1×1 convolution to aggregate the fused channel features, then uses maximum pooling and addition operations to retain the information of important feature maps and original feature maps, and finally uses 1×1 convolution to perform feature conversion.

[0026] Furthermore, the decoder uses different strip convolutions and two 1×1 convolutions to extract features from the input feature map, and its structure can be expressed as:

[0027]

[0028] Among them, Conv3×1GN(), Conv1×3GN(), Conv5×1GN(), Conv1×5GN(), Conv7×1GN(), Conv1×7GN() are 3×1, 1×3, 5×1, 1×5, 7×1, 1×7 strip convolution + group normalization respectively, GroupConv1GNGELU() is 1×1 group convolution + group normalization + GELU activation function, which is the output of the fusion stage;

[0029] The strip convolution is a depth-wise separable convolution. First, a 1×1 convolution is used to change the number of channels, and then different strip convolutions are input respectively. Finally, concat splicing and two point convolutions are used. Group normalization and activation function are used between the two point convolutions to ensure the nonlinear changes of the network. Addition operations are used in different strip convolution paths to achieve feature extraction across multiple scales.

[0030] Furthermore, the training method of the model includes: during model training, setting a parameter Epochs of a training round, stopping training after reaching the training round, recording the loss function value of each round during the training process, and after the training is completed, retaining the model weight corresponding to the minimum loss value, that is, the specific parameter configuration of the required segmentation model;

[0031] During the model training phase, the model needs to determine the required model hyperparameters, and the method for determining the model hyperparameters is not limited to one or more of grid search, random search, and Bayesian optimization methods.

[0032] Furthermore, the training method of the model includes the following steps:

[0033] S310: Randomly initialize the weight parameters of the model;

[0034] S320: Input the image data training set samples into the model for training. The optimizer used in the training is AdamW, the learning rate adjustment method is the cosine annealing algorithm, the loss function of the training process is the cross entropy loss and the Dice loss, and the training round is set to Epochs, and the Epochs range is 100~200;

[0035] S330: After each training round, the image segmentation model is evaluated using samples of the image data validation set to adjust the parameters of the model weights, and finally the image segmentation model is obtained.

[0036] On the other hand, the present application provides an image processing device, on which the circular contour image segmentation model as described above is deployed, and an acceleration library is used to accelerate the detection of the model, and the acceleration library includes TensorRT or onnxruntime.

[0037] On the other hand, the present application provides a circular contour image segmentation system, characterized in that it includes a memory and a processor; wherein the memory stores a computer program, and when the program is executed by the processor, it can implement the circular contour image segmentation method described above.

[0038] On the other hand, the present application provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for segmenting an image with a circular contour as described above is implemented.

[0039] In summary, the beneficial effects of the present application are as follows: the model, method and system for segmenting circular contour images of a lightweight convolutional neural network proposed in the present application achieves the improvement of the accuracy of image segmentation while reducing the number of model parameters and thus reducing the computational complexity, and surpasses the performance level of existing similar algorithms. Its main features are: First, the improved pyramid convolution uses convolution kernels of different sizes, which can more effectively extract the features of circular contour images and the multi-scale semantic features of encoded images, so that the encoder can fully extract the features of complex circular contour images of different sizes and colors. Second, the maximum pooling layer is used for downsampling to extract the significant features of circular contour images without increasing the number of model parameters; third, the fusion module fuses the underlying network information and the encoder information, so that the image features are fully interactive; fourth, the decoder can extract features of different scales and can establish long-distance feature relationships, and finally outputs a segmented image with the same resolution as the original input image through the decoder in the decoding stage. Finally, a higher segmentation accuracy can be achieved with a smaller number of model parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is a flow chart of the method of the present invention;

[0041] Figure 2 is a schematic diagram of the encoder structure;

[0042] Figure 3 It is a schematic diagram of the fusion module;

[0043] Figure 4 It is a schematic diagram of the decoder structure;

[0044] Figure 5Design the overall structure of the network for the present invention;

[0045] Figure 6 A comparison diagram of the segmentation results when the method of the present invention and the existing method are applied to skin lesion images;

[0046] Figure 7 This is a specific data comparison chart of the network model of the present invention and other advanced models on the ISIC2017 dataset. DETAILED DESCRIPTION

[0047] The specific implementation of the present application is described in detail below with reference to the accompanying drawings.

[0048] A specific embodiment of the present application provides a method for segmenting a circular contour image. Figure 2-5 , including the following steps:

[0049] S1: Acquire target image data and preprocess;

[0050] S2: Label the acquired data set and divide it into training set and validation set with a ratio of 7:3;

[0051] S3: Constructing a circular contour image segmentation model, wherein the circular contour image segmentation model includes:

[0052] An encoder, wherein the encoder uses pyramid convolution as the underlying structure to obtain multi-scale features in the image and uses 1×1 convolution to fuse channel features;

[0053] A fusion module, the fusion module is used to fuse the output results from the encoder and output a feature map;

[0054] and a decoder, the decoder being used to extract features from the feature map output by the fusion module;

[0055] The circular contour image segmentation model is trained using the training set samples, and the model is evaluated using the validation set samples and the model parameters are adjusted to obtain the trained model;

[0056] S4: Input the image data to be tested into the trained model to obtain the output result.

[0057] The encoder, fusion module and decoder represent the encoding stage, fusion stage and decoding stage respectively. There are 5 encoders and decoders respectively, and the number of channels is 8, 16, 24, 32 and 40 respectively. The downsampling in the encoding stage uses the maximum pooling layer. The fusion stage contains a depthwise separable convolution and point convolution and four fusion modules.

[0058] The encoder is an improved pyramid convolution structure, that is, pyramid convolution is used as the underlying structure to obtain multi-scale features in the image, and 1 × 1 convolution is used to fuse channel features. The encoder structure can be expressed as:

[0059]

[0060] in x is the input feature map, F is the encoder output, PConv () is the pyramid convolution, Conv1 () is a 1 × 1 convolution, GN () is group normalization, GELU () is the GELU activation function;

[0061] The encoder first normalizes the feature map by group, then divides it into four parts on average in the channel dimension, and then uses 1 × 1, 3 × 3, 5 × 5, and 7 × 7 depth-separable convolutions respectively. Finally, concat is used to concatenate and add the feature map before convolution to obtain the feature map after feature extraction. The structure can be expressed as:

[0062]

[0063] in F 1, F 2 is the output of the intermediate stage, F is the final output of this part, x1, x2, x3, x4 are feature maps that are evenly divided into four parts in the channel dimension, The depth-wise separable convolutions are 1 × 1, 3 × 3, 5 × 5, and 7 × 7 respectively. It is the concatenation of feature maps in the channel dimension.

[0064] The structure of the fusion module can be expressed as:

[0065]

[0066] in E In the encoding stage, after downsampling, the output is X Feature maps of the same resolution, X is the bottom-up feature map in the fusion stage, maxpool () is the maximum pooling layer, ConvGNGELU () is 1×1 convolution + group normalization + GELU Activation function;

[0067] The fusion module first uses 1×1 convolution to aggregate the fused channel features, then uses maximum pooling and addition operations to retain the information of important feature maps and original feature maps, and finally uses 1×1 convolution for feature conversion. The pooling kernel of the pooling layer in the fusion module uses a size of 3×3 for the upper two layers and a size of 7×7 for the lower two layers in the entire network structure, because the resolution of the feature map gradually decreases throughout the network and the receptive field gradually increases, which allows the network to capture global information on feature maps with small resolution and local information on feature maps with large resolution.

[0068] The decoder uses different strip convolutions and two 1×1 convolutions to extract features from the input feature map. The decoder uses different strip convolutions to capture feature information of different scales and long-distance relationships. The 1×1 convolution is used to mix features of different scales to achieve feature interaction. Its structure can be expressed as:

[0069]

[0070] Among them, Conv3×1GN(), Conv1×3GN(), Conv5×1GN(), Conv1×5GN(), Conv7×1GN(), Conv1×7GN() are 3×1, 1×3, 5×1, 1×5, 7×1, 1×7 strip convolution + group normalization respectively, GroupConv1GNGELU() is 1×1 group convolution + group normalization + GELU activation function, which is the output of the fusion stage; the strip convolution is a depth-separable convolution, first using 1×1 convolution to change the number of channels and then inputting different strip convolutions respectively, and finally using concat splicing and two point convolutions, and group normalization and activation function are used between the two point convolutions to ensure the nonlinear change of the network. In the decoder, addition operations are used in different strip convolution paths to achieve feature extraction across multiple scales.

[0071] The strip convolution is a depth-wise separable convolution. First, a 1×1 convolution is used to change the number of channels, and then different strip convolutions are input respectively. Finally, concat splicing and two point convolutions are used. Group normalization and activation function are used between the two point convolutions to ensure the nonlinear changes of the network. Addition operations are used in different strip convolution paths to achieve feature extraction across multiple scales.

[0072] The training method of the model includes: during model training, setting a parameter Epochs of a training round, stopping training after reaching the training round, recording the loss function value of each round during the training process, and retaining the model weight corresponding to the minimum loss value after the training is completed, that is, the specific parameter configuration of the required segmentation model;

[0073] During the model training phase, the model needs to determine the required model hyperparameters, and the method for determining the model hyperparameters is not limited to one or more of grid search, random search, and Bayesian optimization methods.

[0074] The training method of the model comprises the following steps:

[0075] S310: Randomly initialize the weight parameters of the model;

[0076] S320: Input the image data training set samples into the model for training. The optimizer used in the training is AdamW, the learning rate adjustment method is the cosine annealing algorithm, the loss function of the training process is the cross entropy loss and the Dice loss, and the training round is set to Epochs, and the Epochs range is 100~200;

[0077] S330: After each training round, the image segmentation model is evaluated using samples of the image data validation set to adjust the parameters of the model weights, and finally the image segmentation model is obtained.

[0078] Taking the application of this method to skin disease lesion detection as an example, refer to Figure 1-7 , specifically including the following steps:

[0079] Step S100: Sampling stage: acquiring lesion cell image data;

[0080] The obtained circular contour image data is not limited to the ISIC2017 data set, and can also be other image data. The lesion cell image data set is annotated and divided into a training set and a validation set, with a division ratio of 7:3.

[0081] Step S200: Data preprocessing stage: preprocessing the training image data required by the model;

[0082] The training image data is preprocessed, wherein the preprocessing operation is random image flipping, and the random flipping is flipping the image at a random angle.

[0083] Step S300: training phase: using the preprocessed data set to pass into the segmentation model and perform multiple rounds of training on the model parameters to obtain an image segmentation model;

[0084] The structure diagram of the segmentation model is as follows Figure 6As shown. The preprocessed lesion cell image is input from the encoding part, and the segmented image is output from the decoding part. The segmented image includes a background class (Background) and a skin lesion cell class (skin); in the five stages, the number of channels is 8, 16, 24, 32, and 40, respectively, and the downsampling uses maximum pooling to retain the important features of the feature map and reduce the number of parameters. The encoding part, fusion part, and decoding part are respectively provided with an encoder, a fusion module, and a decoder. In the fusion stage, concat is used to splice the feature maps from the encoding stage to ensure the diversity of the feature maps. At the same time, in the process of inputting from the fusion stage to the decoding stage, an addition operation is used to ensure the fusion of feature information;

[0085] During the training phase, the image segmentation model needs to determine the required model hyperparameters, and the method for determining the model hyperparameters is not limited to one or more of grid search, random search, Bayesian optimization and the like.

[0086] Specifically, in this embodiment, in step S300, training the image segmentation model includes the following steps:

[0087] Step S310, randomly initializing the weight parameters of the image segmentation model;

[0088] Step S320, passing the preprocessed training set samples into the image segmentation model of S310 for training. The optimizer used in training is AdamW, the learning rate adjustment method is the cosine annealing algorithm, the loss function of the training process is the cross entropy loss and the Dice loss, the training round is set to Epochs, and the Epochs range is 100~200;

[0089] Step S330, after each training round, the image segmentation model is evaluated using the validation set described in S100 to adjust the parameters of the model weights, and finally obtain the image segmentation model.

[0090] Step S400, prediction stage: input the acquired image data to be tested into the image segmentation model to obtain an output result;

[0091] In this embodiment, in order to verify the experimental effect of the lightweight convolutional neural network designed by the present invention, this embodiment conducted different comparative experiments on the ISIC2017 dataset. The ISIC2017 dataset is a public dataset for skin disease diagnosis, which contains skin disease images from different disease categories. Figure 6The figure shows the comparison of the segmentation results of the skin lesion image segmentation method of this embodiment and the existing segmentation method. Image is the image of the original lesion cells, GT is the real label, UNet, UNet++, UNeXt-S, UTNet are the network effect diagrams to be compared in this embodiment, and Ours is the lightweight convolutional neural network effect diagram designed by the present invention; Figure 7 The figure shows the specific data comparison of the network model of the present invention and other advanced models on the ISIC2017 dataset. Params is the model parameter quantity (unit: million (M), thousand (K)), GFLOPs is the computational complexity (unit: billion (G), million (M)), mIoU is the intersection over union ratio of the segmentation result of the real label and the segmentation result predicted by the network, which is used to measure the overlap between the predicted result and the real label. Dice is the Dice coefficient, which is used to measure the similarity between the predicted result and the real label.

[0092] In the comparison results, except for the different network structures, other experimental conditions are the same. The experimental results show that the lightweight convolutional neural network of the present invention can achieve better performance with extremely low parameter amount and computational complexity.

[0093] In order to further reduce computing resources, another specific embodiment of the present application provides an image processing device, on which the circular contour image segmentation model as described above is deployed, and the model is accelerated by an acceleration library, wherein the acceleration library includes TensorRT or onnxruntime. The acceleration library is used to increase the detection speed, and the acceleration library accelerates the detection of the model by using a high-performance inference engine to accelerate the execution of the image segmentation model on a variety of hardware platforms.

[0094] Another specific embodiment of the present application provides a circular contour image segmentation system, including a memory and a processor; wherein the memory stores a computer program, and when the program is executed by the processor, it can implement the circular contour image segmentation method described above.

[0095] Another specific embodiment of the present application provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for segmenting a circular contour image as described above is implemented.

[0096] The parts not involved in the present invention are the same as the prior art or are implemented by using the prior art.

[0097] The above contents are further detailed descriptions of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

[0098] The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Those skilled in the art can make various equivalent changes and improvements based on the above embodiments, and all equivalent changes and modifications made within the scope of the claims should fall within the protection scope of the present invention.

Claims

1. A method for segmenting images with circular contours. It is characterized in that The steps include: S1: Acquire target image data and preprocess; S2: Label the acquired data set and divide it into training set and validation set with a ratio of 7:3; S3: constructing a circular contour image segmentation model, wherein the circular contour image segmentation model comprises: An encoder, wherein the encoder uses pyramid convolution as the underlying structure to obtain multi-scale features in the image and uses 1×1 convolution to fuse channel features; A fusion module, the fusion module is used to fuse the output results from the encoder and output a feature map; and a decoder, the decoder being used to extract features from the feature map output by the fusion module; The encoder structure can be expressed as: ; in x is the input feature map, F is the encoder output, PConv () is the pyramid convolution, Conv1 () is a 1 × 1 convolution, GN () is group normalization, GELU () is the GELU activation function; The encoder first normalizes the feature map by group, then divides it into four parts on average in the channel dimension, and then uses 1 × 1, 3 × 3, 5 × 5, and 7 × 7 depth-separable convolutions respectively. Finally, concat is used to concatenate and add the feature map before convolution to obtain the feature map after feature extraction. The structure can be expressed as: ; in F 1, F 2 is the output of the intermediate stage, F is the final output of this part, x1, x2, x3, x4 are feature maps that are evenly divided into four parts in the channel dimension, The depth-wise separable convolutions are 1 × 1, 3 × 3, 5 × 5, and 7 × 7 respectively. It is the concatenation of feature maps in the channel dimension; The structure of the fusion module can be expressed as: ; in E In the encoding stage, after downsampling, the output is X Feature maps of the same resolution, X is the bottom-up feature map in the fusion stage, maxpool () is the maximum pooling layer, ConvGNGELU () is 1×1 convolution + group normalization + GELU Activation function; The fusion module first uses 1×1 convolution to aggregate the fused channel features, then uses maximum pooling and addition operations to retain the information of important feature maps and original feature maps, and finally uses 1×1 convolution to perform feature conversion; The decoder uses different strip convolutions and two 1×1 convolutions to extract features from the input feature map, and its structure can be expressed as: ; Among them, Conv3×1GN(), Conv1×3GN(), Conv5×1GN(), Conv1×5GN(), Conv7×1GN(), Conv1×7GN() are 3×1, 1×3, 5×1, 1×5, 7×1, 1×7 strip convolution + group normalization respectively, GroupConv1GNGELU() is 1×1 group convolution + group normalization + GELU activation function, which is the output of the fusion stage; The strip convolution is a depth-separable convolution. First, 1×1 convolution is used to change the number of channels, and then different strip convolutions are input respectively. Finally, concat splicing and two point convolutions are used. Group normalization and activation function are used between the two point convolutions to ensure the nonlinear change of the network. Addition operation is used in different strip convolution paths to realize feature extraction across multiple scales. The circular contour image segmentation model is trained using the training set samples, and the model is evaluated using the validation set samples and the model parameters are adjusted to obtain the trained model; S4: Input the image data to be tested into the trained model to obtain the output result.

2. The method for segmenting a circular contour image according to claim 1, It is characterized in that The number of encoders and decoders is 5 respectively, and the number of channels is 8, 16, 24, 32, and 40 respectively.

3. The method for segmenting a circular contour image according to claim 1, It is characterized in that The training method of the model includes: during model training, setting a parameter Epochs of a training round, stopping training after reaching the training round, recording the loss function value of each round during the training process, and after the training is completed, retaining the model weight corresponding to the minimum loss value, which is the specific parameter configuration of the required segmentation model.

4. The method for segmenting a circular contour image according to claim 1, It is characterized in that During the model training phase, the model needs to determine the required model hyperparameters, and the method for determining the model hyperparameters is not limited to one or more of grid search, random search, and Bayesian optimization methods.

5. The method for segmenting a circular contour image according to claim 1, It is characterized in that The training method of the model comprises the following steps: S310: Randomly initialize the weight parameters of the model; S320: Input the image data training set samples into the model for training. The optimizer used in the training is AdamW, the learning rate adjustment method is the cosine annealing algorithm, the loss function of the training process is the cross entropy loss and the Dice loss, and the training round is set to Epochs, and the Epochs range is 100~200; S330: After each training round, the image segmentation model is evaluated using samples of the image data validation set to adjust the parameters of the model weights, and finally the image segmentation model is obtained.

6. A circular contour image segmentation system, It is characterized in that It comprises a memory and a processor; wherein the memory stores a computer program, and when the program is executed by the processor, it can implement the circular contour image segmentation method as described in any one of claims 1-5.

7. A computer readable medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the method for segmenting a circular contour image as described in any one of claims 1 to 5 is implemented.