"This System object method does not support input of unbounded size" error for vision.BlobAnalysis
Show older comments
Hello,
I am trying to convert vision.BlobAnalysis function in MATLAB to C code by using Coder.
step function of vision.BlobAnalysis throws an error as "This System object method does not support input of unbounded size".
The inputs of the step function are a system object (i.e., blobAnalyzer) that is returned by the vision.BlobAnalysis function and a logical matrix (i.e., BW) that stores a black&white photo.
Two lines of code are given inline as follows:
blobAnalyzer = vision.BlobAnalysis('MinimumBlobArea', minsizeofcentroid);
[Area, centroid] = step(blobAnalyzer, BW);
My goal is to find the centroids of the connected objects in a given photo.
Best regards,
Yagiz
Accepted Answer
More Answers (2)
Yagiz Kaymak
on 18 Jul 2017
0 votes
1 Comment
Walter Roberson
on 18 Jul 2017
You might need to add a coder.varsize limiting the array size
Yagiz Kaymak
on 18 Jul 2017
0 votes
Categories
Find more on HDL-Optimized Algorithm Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!