Counting black and white pixels
Afficher commentaires plus anciens
After converting from RGB image to binary image I'm looking to count total number of white and black pixels in an image. I found a demo posted a while back, but am getting a little error at the very of the script when it gets to the message and msgbox. I'm not sure I'm reading the code correctly because the line breaks are a little strange in the demo, could you take a look at the demo (attached) to see if I have it correct?
The error I get is: >Error: File: pixelDemo.m Line: 34 Column: 16 >Unbalanced or unexpected parenthesis or bracket.
Line 34 is the command: msgbox (message);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Entering Commands 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!