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!




