File:Equalized Histogram.svg
Summary
Description | Greyscale frequency histogram of Equalized Hawkes Bay NZ.jpg. X-axis shows image intensity, y-axis number of pixels with that intensity. Black curve shows cumulative histogram. |
Date | |
Source | self-made based on Image:Equalized Histogram.gif file by Konstable |
Author | Jarekt |
SVG development | |
Source code | MATLAB codeI = rgb2gray(imread('Unequalized_Hawkes_Bay_NZ.jpg'));
h = hist(double(I(:)),0:255);
map = cumsum(h)/prod(size(I));
J = 255*map(I+1);
[h x]=hist(double(J(:)),0:255);
map = cumsum(h)/prod(size(J));
figure(1)
hold on
bar(x, h, 'r');
plot(x, 30000*map, 'k')
xlim([0 256]);
ylim([0 31000]);
plot2svg('Equalized Histogram.svg')
|
Licensing
![]() |
I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |