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.".
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.