Hey Tidia,
I understand that you want to use an image as the input to your network and get an output which is an image. What you need is written in this article, scroll down to the section titled "Test Network on One Image": https://www.mathworks.com/help/vision/examples/semantic-segmentation-using-deep-learning.html
'imshow()' function might be what you are looking for.