Is it possible to use the imageSegmenter app inside a function and save the resulting images inside the function workspace?

조회 수: 2(최근 30일)
function Using_imageSegmenter_inside_a_function
load Image.mat
%Use the imageSegmenter tool and create/export a mask called BW


Corey Silva
Corey Silva 2017년 10월 5일
You should be able to do whatever the app does programmatically. The functions are listed here:
To use the app within a function, you can use the "waitfor" command after calling the imageSegmenter App.
The imageSegmenter puts the variables (e.g. BW) into the base workspace, however. You could do something like evalin('base', 'BW') after using the imageSegmenter, within the function.

Community Treasure Hunt

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

Start Hunting!

Translated by