Skip to content

Instantly share code, notes, and snippets.

@dannyburke1
Last active November 10, 2016 10:17
Show Gist options
  • Save dannyburke1/adfb9a39c53a49854ea9bc6271ed7656 to your computer and use it in GitHub Desktop.
Save dannyburke1/adfb9a39c53a49854ea9bc6271ed7656 to your computer and use it in GitHub Desktop.
function [ I, I2, x ] = showTheHist( I, I2,x )
%load and show image with histogram theoutput greyscales
%{
I=imread('birds_grayscale.jpg')
imshow(I)
imfinfo(I)
imhist(I)
%}
I = gpuArray(imread('birds_grayscale.jpg'));
[counts, x] = imhist(I)
stem(x, counts);
%{
I2 = histeg(I);
figure
imshow(I2)
imhist(I2)
inimage = imread('birds_grayscale.jpg');
hist(reshape(double(inimage),size(inimage,1)*size(inimage,2),1),[0:255]);
%}
end
end
@dannyburke1
Copy link
Author

Artificial Intelligence lab, showing a Histogram of greyscales. To be added: do histeg without calling fuction. write math functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment