Code covered by the BSD License  

Highlights from
3D histogram of RGB image

image thumbnail

3D histogram of RGB image

by

 

Creates 3D-histogram from an RGB image in the form of balls within the RGB cube

rgb_noise_image(rows,cols,filename)
function image = rgb_noise_image(rows,cols,filename)

% generates random RGB image of specified size

image = randi([0,255],rows,cols,3);
image = uint8(image);

if nargin > 2
    if ischar(filename)
        imwrite(image,filename)
    end
end

Contact us