Reputation: 33
I have a code in MATLAB that I have to convert into Octave. I have problems with the following command:
boxes = regionprops (L, 'Solidity')
where L
is a binary image class double.
Octave does not know the 'Solidity'
property . Is there a similar property or a function that I can use to run the code in Octave?
Upvotes: 1
Views: 1711
Reputation: 3279
According to the definition of 'Solidity' in matlab regionprops
this measurement is the Area/ConvexArea.
In order to calculate the ConvexArea
do the following things:
regioprops(I,'PixelIdxList')
convexhull
. Use: H = convhull (x, y)
convexhull
. Use: polyarea(convexHullX,convexHullY)
Upvotes: 2