Error in code when using apps in the image processing toolbox

Good morning,
I used the image segmenter app in the image processing toolbox in Matlab and then exported the code for what i did. However when i tried to rerun the code, the errors in the attached picture popped up. How do i solve them?
Thank you

 採用された回答

Walter Roberson
Walter Roberson 2019 年 3 月 7 日

0 投票

that code is not designed to prompt you for image information . you need to read in an rgb image and pass the image array to the function through the command line .

5 件のコメント

Zo
Zo 2019 年 3 月 7 日
sorry but i’m new to matlab, what do you mean by pass the image array to the function through the command line?
Walter Roberson
Walter Roberson 2019 年 3 月 7 日
filename = 'MR.png';
img = imread(filename);
[BW, masked_img] = Masked_Img_of_Reg_Area_P1(img);
Zo
Zo 2019 年 3 月 8 日
yes it worked! thank you!
so what would be the code if i wanted to create a freehand region of interest for the red portion of the attached image?
Walter Roberson
Walter Roberson 2019 年 3 月 8 日
Zo
Zo 2019 年 3 月 9 日
thank you very much for your help!

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

Zo
2019 年 3 月 7 日

コメント済み:

Zo
2019 年 3 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by