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
imageSegmenter(I)
%Use the imageSegmenter tool and create/export a mask called BW
images(BW)
end
0 件のコメント
回答 (1 件)
Corey Silva
2017 年 10 月 5 日
You should be able to do whatever the app does programmatically. The functions are listed here: https://www.mathworks.com/help/images/image-segmentation.html
To use the app within a function, you can use the "waitfor" command after calling the imageSegmenter App. https://www.mathworks.com/help/matlab/ref/waitfor.html
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.
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!