Firstly, thanks your reply.
But the segmentation result is already owned. I just want to obtain the feature vectors of the interest of regions, which means that I want to obtain the feature vectors for the yellow wand green regions to do other tasks.
And My current idea is that the original image can be operated through the convolutional neural network to obtain feature maps, and then the feature vectors can be obtained through the position one-to-one correspondence of the segmentation result map. What do you think of this idea?