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.

답변 (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

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.

댓글을 달려면 로그인하십시오.

질문:

2013년 5월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by