please explain size function in MATLAB
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
if(size(img,3) == 1) disp('Error: Pick a color image'); return;
0 Commenti
Risposte (1)
Image Analyst
il 18 Ott 2017
size(img,3) returns the number of color channels in an image. It will be 1 for a gray scale image and 3 for an RGB image. That should explain it (why they ask for a color image if the program was given a gray scale image).
0 Commenti
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!