How to Create a tool so that with a click of a button the Image gets segmented

I am trying to segment an image based on watershed algorithm. I have developed a code. I want to develop this as an tool so that it can be used to segment any image. Anyone to help.

Antworten (1)

Create a GUI with the GUIDE tool
help guide
will tell you more. Once you create a simple GUI with a button or whatever you want, link your function to the button callback function.

2 Kommentare

But i have script, how should i convert that into function.?
You might want to read this part of the MATLAB help:
Make sure you declare all variables inside the function or give them as input, a function can't use the workspace by default.

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 16 Mai 2013

Community Treasure Hunt

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

Start Hunting!

Translated by