reference to non-existent field solidity
Afficher commentaires plus anciens
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 ?
Réponse acceptée
Plus de réponses (2)
Mohamed Nasr
le 18 Avr 2019
13 commentaires
Walter Roberson
le 18 Avr 2019
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
le 20 Avr 2019
Mohamed Nasr
le 20 Avr 2019
Mohamed Nasr
le 20 Avr 2019
Mohamed Nasr
le 20 Avr 2019
Mohamed Nasr
le 20 Avr 2019
Mohamed Nasr
le 20 Avr 2019
Mohamed Nasr
le 20 Avr 2019
Mohamed Nasr
le 20 Avr 2019
Walter Roberson
le 20 Avr 2019
Is there still and active question here?
Mohamed Nasr
le 21 Avr 2019
Mohamed Nasr
le 21 Avr 2019
Walter Roberson
le 21 Avr 2019
Code attached.
Mohamed Nasr
le 21 Mai 2019
0 votes
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




