regionprops(I,I,'PixelValues')
region properties problem
1 次查看(过去 30 天)
显示 更早的评论
Hi I have the following code:
I =
0 0 0 0 0 0 0
0 1 1 0 1 1 0
1 0 1 1 1 0 1
0 1 1 0 1 0 1
0 0 0 0 1 1 0
0 0 0 0 0 0 0
K>> r=regionprops(I,'PixelValues'); ??? Error using ==> regionprops>getPropsFromInput at 1172 REGIONPROPS needs I as an input to calculate 'PixelValues'.
Error in ==> regionprops>ParseInputs at 1133 reqStats = getPropsFromInput(startIdxForProp, ...
Error in ==> regionprops at 154 [I,requestedStats,officialStats] = ParseInputs(imageSize, varargin{:});
Is there any one to solve this problem?
Thanks.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle Swarm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!