Extracting digital numbers from color panels in images
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ali Ibrahim
le 28 Jan 2017
Commenté : Ali Ibrahim
le 16 Fév 2017
Hello, Can anyone help me to fix this code? I am done with it, but it seems there is an error FIND ATTACHED Best,
2 commentaires
Image Analyst
le 28 Jan 2017
You forgot to attach 'CIMG6786.jpg' so we can't run your code until then.
Réponse acceptée
Image Analyst
le 28 Jan 2017
Modifié(e) : Image Analyst
le 28 Jan 2017
VARI has some nans because of a divide by zero. Set nans to zero like this
VARI(isnan(VARI)) = 0;
The other main problem with the code is that there are no comments in it, so it's not maintainable.
10 commentaires
Walter Roberson
le 11 Fév 2017
In your get_image_point routine, you have
if size(loc)>1
which should probably be
if size(loc, 1)>1
However, you can skip the test by just coding
loc = loc(1,1:2);
without checking the size.
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!