scatter - scatter3 of an image shows me a complete white plot -


i want scatter plot rgb image show correlation between colours.

this code

i = imread('testimage_small.png'); [h, w, ~] = size(i);  b = (i(:,:,3)); g = (i(:,:,2)); r = (i(:,:,1)); rgb = [reshape(r,1,h*w); reshape(g,1,h*w); reshape(b,1,h*w)];   figure; scatter3(r(:),g(:),b(:),[], (rgb'),'filled'); view(40,35) 

it draws image plot , without colour , white!

any please !

thanks,


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -