size differ when processing
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Blocked Images en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!