Last active
November 10, 2016 10:17
-
-
Save dannyburke1/adfb9a39c53a49854ea9bc6271ed7656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Artificial Intelligence lab, showing a Histogram of greyscales. To be added: do histeg without calling fuction. write math functions.