reference to non-existent field solidity
显示 更早的评论
hi I have error message in matlab 2017
reference to non-existent field 'solidity'
Error in Tumor(line denisty={stats.solidity};
how can I add reference
what did i miss ?
采纳的回答
更多回答(2 个)
Mohamed Nasr
2019-4-18
13 个评论
Walter Roberson
2019-4-18
You have
label=logical(bw);
The maximum possible value for that array is 1, corresponding to true.
You calculate tumor_label as the indices of (all of) the areas that have (the same) maximum area. It will not usually be 1.
You have
tumor = ismember(label, tumor_label)
remember that label is a bunch of true and false values, so it is likely that none of them are going to equal the index(es) you found.
You should consider
label = bwlabel(logical(bw));
Mohamed Nasr
2019-4-20
Mohamed Nasr
2019-4-20
Mohamed Nasr
2019-4-20
Mohamed Nasr
2019-4-20
Mohamed Nasr
2019-4-20
Mohamed Nasr
2019-4-20
Mohamed Nasr
2019-4-20
Mohamed Nasr
2019-4-20
Walter Roberson
2019-4-20
Is there still and active question here?
Mohamed Nasr
2019-4-21
Mohamed Nasr
2019-4-21
Walter Roberson
2019-4-21
Code attached.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




