File:Equalized Histogram.svg

From testwiki
Jump to navigation Jump to search

Original file(SVG file, nominally 712 × 470 pixels, file size: 61 KB)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

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
InfoField
 
The SVG code is valid.
 
This diagram was created with MATLAB.
Source code
InfoField

MATLAB code

I = 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

Public domain 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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

April 2008

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:57, 4 April 2008Thumbnail for version as of 16:57, 4 April 2008712 × 470 (61 KB)wikimediacommons>Jarekt== Summary == {{Information |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

The following page uses this file: