While using createMask() function the following error is occuring ? what may be the reason for this? how can I solve this?

3 ビュー (過去 30 日間)
Hridya PI
Hridya PI 2018 年 4 月 6 日
回答済み: BhaTTa 2025 年 7 月 18 日
While using createMask() function the following error is occuring.
"Undefined function or variable 'createMask'."
Error in smoothening (line 26) BW = createMask(l_i);

回答 (1 件)

BhaTTa
BhaTTa 2025 年 7 月 18 日
Hey @Hridya PI, i assume that error you are facing might be because of the below reason:
Toolbox Missing/Not Installed: createMask is part of the Image Processing Toolbox. If you don't have this toolbox installed, or your MATLAB license doesn't include it, you'll get this error.
Incorrect Usage: createMask is usually a method of an ROI (Region of Interest) object (e.g., imrect, imellipse, drawrectangle, drawcircle). You don't call it directly with an image, I assume that l_i is an image and not a ROI object.

カテゴリ

Help Center および File ExchangePHY Components についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by