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 - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Save and close a word document by giving a name in R -