You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
features[0] here is the FOS_Mean.
If you calculate a simple np.mean(roi) you get a different result than saved in features[0].
If you edit Ng = (level_max - level_min) + 1 to Ng = (level_max - level_min) (drop the +1), then the results match.
I am not quite sure I understand the +1 here.
For example, in my data:
np.mean(roi) -> 73.9154898873683
features[0] with Ng = (level_max - level_min) + 1 -> 74.20535455359327
features[0] with Ng = (level_max - level_min) -> 73.9154898873683
The text was updated successfully, but these errors were encountered:
When calculating the mean (in FOS) ...
https://github.com/giakou4/pyfeats/blob/dc0e2d1b3623aeb7f26c9777dafb491ecd961b9c/pyfeats/textural/fos.py#L47
I noticed divergence between a simple
np.mean
and your version.features[0]
here is theFOS_Mean
.If you calculate a simple
np.mean(roi)
you get a different result than saved infeatures[0]
.If you edit
Ng = (level_max - level_min) + 1
toNg = (level_max - level_min)
(drop the +1), then the results match.I am not quite sure I understand the
+1
here.For example, in my data:
The text was updated successfully, but these errors were encountered: