














Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!















࢞ ࢞࢟, −
࢟, ࢞ − ࢞࢟, ࢟, ࢞ +
Illustration of the 4-neighbors of pixel ݕ ,ݔ , is denoted as ܰ ସ .
− ,࢟ ࢞ − ࢞࢟, − ࢞ − ,࢟ ࢞ +
࢟, ࢞ − ࢞࢟, ࢟, ࢞ +
Illustration of the 8-neighbors of pixel ݕ ,ݔ , is denoted as ܰ ଼ .
Output Image Input Image Transformation
T is defined over a neighborhood of point. ݕ ,ݔ
The smallest possible neighborhood is of size 1 × 1 In this case, ݃ depends only on the value of ݂ at a single point )ݕ ,ݔ( and ܶ becomes an intensity (also called a gray-level, or mapping) transformation function as follows:
Intensity transformation
Image Negatives
The negative of an image with intensity levels in the range 0, ܮ− 1 is obtained by using the negative transformation function, which has the form:
LOG Transformation
The general form of the log transformation is:
where ܿ is a constant and it is assumed that ݎ≥ 0
This transformation maps a narrow range of low intensity values in the input into a wider range of output levels.
LOG Transformation
The general form of the log transformation is:
Contrast enhancement using Power-Law or GAMMA Transformation
Power-law transformations are useful for general-purpose contrast manipulation. As shown below for MRI scanning
Original ܿ = 1, ܿ0.6 = ߛ = 1, ܿ0.4 = ߛ = 1, 0.3 = ߛ
Enhanced More Enhanced Image started to have a very slight “washed- out” appearance
Contrast Stretching
Low-contrast images can result from poor illumination, lack of dynamic range in the imaging sensor, or even the wrong setting of a lens aperture during image acquisition. Contrast stretching expands the range of intensity levels in an image so that it spans the ideal full intensity range of the recording medium or display device.
The locations of points ݎ(ଵݏ ,ଵ) and ݎ(ଶݏ ,ଶ) control the shape of the transformation function.
ݎ, ݎ௫denote the minimum and maximum intensity levels in the input image
Let ݎ, for ݇ = 0,1, 2, … , ܮ− 1, denote the intensities of an L-level digital image, ݂ )ݕ ,ݔ(. The unnormalized histogram of f is defined as:
where ݊ is the number of pixels in ݂ with intensity ݎ, and the subdivisions of the intensity scale are called histogram bins.
10 10 25 20 70 100 150 100 70 25 70 100 125 150 25 10 10 70 150 30 50 50 100 20 25
For Example, if we have the following gray scale image (L=256) If we construct an unnormalized 256-bins histogram (0:255): ℎ 10 = 4 ℎ 20 = 2 ℎ 25 = 4 ℎ 30 = 1 ℎ 50 = 2 ℎ 70 = 4 ℎ 100 = 4 ℎ 125 = 1 ℎ 150 = 3 All other bins are zero
The normalized histogram of ݂ is defined as , M and N are the number of image rows and columns, respectively ℎ 10 = 4/ ℎ 20 = 2/ ℎ 25 = 4/ ℎ 30 = 1/ ℎ 50 = 2/ ℎ 70 = 4/ ℎ 100 = 4/ ℎ 125 = 1/ ℎ 150 = 3 / All other bins are zero
most populated histogram bins are concentrated on the lower (dark) end of the intensity scale
the most populated bins are biased toward the higher end of the scale
A narrow histogram located typically toward the middle of the intensity scale
Histogram bins cover a wide range of the intensity scale
Suppose that a 3-bit image (L = 8) of size 64 × 64 pixels (MN = 4096) has the intensity distribution of
Example:
The intensity levels are integers in the range [0, ܮ− 1] = [0, 7]
We can calculate ݏ as
Similarly,
Example:
Similarly,
ݎwill be replaced with ݏ
ݏ is then rounded to its nearest integer values in the range [0, 7] :
Normalized histogram of the original image
Equalized Histogram
Original Image
The local histogram processing calculates the histogram from a local region (the neighborhood of a pixel) and process each local histogram separately.
Global histogram equalization
Local histogram equalization
Use a window and move it from left to right and from top to bottom
For an image with intensity levels in the range [0, ܮ− 1], we can calculate global statistics from a global normalized histogram, ݎ as:
The ݊ ௧^ moment of ݎ about its mean, ݉ , is
The mean, ݉ , is The variance, ߪଶ, is
And statistics from a local histogram, ௦ೣ , in a region ݏ௫௬ as:
Local mean, ݉ ௦ೣ , is The variance,ߪ௦^ ଶೣ^ , is