you should be using a semantic segmentation network for image segmentation, which is a convolutional neural network with fully convolutional layers towards the end (such as UNet or FCN)
Thank you very much for your kind help. In the mentioned link, used pretrained data. In this regard, how can i trained for my image data. Kindly do the needful. Thanks in advance