size differ when processing
Mostra commenti meno recenti
In my code below can u tell why the number of elements are different or size is different
>> img=imread('peppers.png');
>> flatImg = double(reshape(img,size(img,1)*size(img,2),size(img,3)));
idx = kmeans(flatImg,3)
size(flatImg)
196608 3
size(idx)
196608 1
please provide assistance
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Blocked Images in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!