how to detect areas within a binary image with vision.BlobAnalysis ?

4 ビュー (過去 30 日間)
Marco Pillon
Marco Pillon 2021 年 5 月 18 日
回答済み: Image Analyst 2021 年 5 月 25 日
Hello,
someone could tell me why the following code written as a script gives me, in the Command windows, the error "Unable to resolve the name vision.BlobAnalysis.".
% BW = im2bw(I,level) is a binary image
hBlobAnalysis = vision.BlobAnalysis('MinimumBlobArea',2, 'MaximumBlobArea',50);
[objArea,objCentroid,bboxOut] = step(hBlobAnalysis,BW);
and what to modify / correct to detect more areas within a binary image.
Thanks
Marco

回答 (2 件)

Tarunbir Gambhir
Tarunbir Gambhir 2021 年 5 月 25 日
Can you check if you have the Computer Vision Toolbox installed with your MATLAB software. You can execute the following command to do so
ver vision
Alternatively you can also check whether your account has License for Computer Vision Toolbox or not by checking the License Centre.

Image Analyst
Image Analyst 2021 年 5 月 25 日
You can do blob analysis with the Image Processing Toolbox, which is much more common than the Computer Vision Toolbox. You can use the regionprops() function. See my Image Segmentation Tutorial in my File Exchange for a full demo.

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by