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
Post a Comment