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.

Answers (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 Comments

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.

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Asked:

on 16 May 2013

Community Treasure Hunt

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

Start Hunting!