【发布时间】:2017-01-11 08:01:02
【问题描述】:
我在 MATLAB 中有一个代码,我必须将其转换为 Octave。我对以下命令有疑问:
boxes = regionprops (L, 'Solidity')
其中L 是二进制图像类双精度。
Octave 不知道 'Solidity' 属性。是否有类似的属性或函数可用于在 Octave 中运行代码?
【问题讨论】:
标签: matlab function image-processing octave
我在 MATLAB 中有一个代码,我必须将其转换为 Octave。我对以下命令有疑问:
boxes = regionprops (L, 'Solidity')
其中L 是二进制图像类双精度。
Octave 不知道 'Solidity' 属性。是否有类似的属性或函数可用于在 Octave 中运行代码?
【问题讨论】:
标签: matlab function image-processing octave
根据 matlab regionprops 中“Solidity”的定义,这个测量是面积/凸面面积。
为了计算ConvexArea,请执行以下操作:
regioprops(I,'PixelIdxList')
convexhull。使用:H = convhull (x, y)
convexhull 的面积。使用:polyarea(convexHullX,convexHullY)
【讨论】: