U-net for image segmentation

241 views (last 30 days)
Joseph Stember
Joseph Stember on 22 Aug 2017
Answered: Birju Patel on 9 Jun 2022
I was wondering if it is possible to download U-net (https://lmb.informatik.uni-freiburg.de/people/ronneber/u-net/) for use as a pretrained convolutional neural network for Matlab for medical image segmentation.
  2 Comments
HARADHAN CHEL
HARADHAN CHEL on 6 Mar 2020
In matlab documentation, it is clearly written how to build and train a U-net network when the input image and corresponding labelled images are stored into two different folders. But Surprisingly it is not described how to test an image for segmentation on the trained network. For testing images, which command we need to use? is it semanticseg? . Unfortunately this method is not working and not producing any result.

Sign in to comment.

Answers (3)

Moucheng Xu
Moucheng Xu on 16 Aug 2018
I think you can look at this one: https://www.mathworks.com/matlabcentral/answers/uploaded_files/107430/createUnet.m
This is a function I found online by mathworks for a modified version U net, I reproduced my own implementation of U net referring to this function so I could make other versions.
  3 Comments
mohd akmal masud
mohd akmal masud on 12 Aug 2021
Edited: mohd akmal masud on 12 Aug 2021
Hi Moucheng Xu,
https://lmb.informatik.uni-freiburg.de/people/ronneber/u-net/
Is it this code can run in Matlab?

Sign in to comment.


Kris Fedorenko
Kris Fedorenko on 25 Aug 2017
Hi Joseph,
According to the documentation of u-net, you can download the ready trained network, the source code, the matlab binaries of the modified caffe network, all essential third party libraries and the matlab-interface for overlap-tile segmentation. Best bet would be to use the same setup as recommended by u-net, i.e. Ubuntu Linux 14.04 and Matlab 2014b (x64).
You might also find of interest the image segmentation functionality in the Image Processing Toolbox:
Hope this helps!
Kris
  2 Comments
Ahmed
Ahmed on 7 Oct 2020
Hi Chris,
I want to apply UNet to segment weed plants, how can I label the images?
Regards

Sign in to comment.


Birju Patel
Birju Patel on 9 Jun 2022
The network you pointed to was trained in Caffe. You can use importCaffeNetwork to import this pretrained U-Net network:
https://www.mathworks.com/help/deeplearning/ref/importcaffenetwork.html

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!