0% found this document useful (0 votes)
13 views5 pages

Image Process

Uploaded by

Abo dahab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views5 pages

Image Process

Uploaded by

Abo dahab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Speech and Image Processing

ECE 595
Dr. AbdelhameedSharaf
[Link] Hamdy

Name/ Kareem Mohammed Elsayed


ID/ 200030812
MATLAB CODE Linear [Negative, Identity]:

Explain Code :
• Image Negation ([Link]):

• Loads the image [Link] and inverts the pixel values to create a negative version
of the image.
• Displays both the original and negative images side by side.

• Logarithmic and Exponential Transformations ([Link]):

• Loads another image [Link].


• Converts the image to double for mathematical transformations.
• Applies a logarithmic transformation to enhance darker regions in the image.
• Applies an exponential transformation to enhance lighter regions in the image.
• Converts the transformed images back to uint8 and displays them along with the
original image.
• • Repeated Negation for [Link] (same as step 1, likely a duplicate operation).
MATLAB CODE Logarithmic [log, inverse log]

Explain Code :

• Loads an image.
• Applies log to enhance dark areas and exp to enhance bright areas.
• Displays the original and transformed images.
MATLAB CODE Power – law [nth root, nth power]

Explain Code :
• Loads an image ([Link]).
• Converts the image to double format for calculations.
• Applies a gamma correction (with γ=0.6\gamma = 0.6γ=0.6) to brighten the image using
the formula S1=C⋅(rγ)S1 = C \cdot (r^\gamma)S1=C⋅(rγ).
• Applies an nth root transformation to darken the image using the formula S2=C⋅(r1/γ)S2
= C \cdot (r^{1/\gamma})S2=C⋅(r1/γ).
• Converts the results back to uint8 for display.
• Displays the original image, the gamma-corrected image, and the nth root-transformed
image in a 2x2 grid.
MTLAB

Explain Code :
• Loads an image ([Link]) and displays it.
• Displays the histogram of the original image to show the distribution of pixel intensities.
• Applies histogram equalization to enhance the contrast of the image.
• Displays the enhanced image and its histogram, showing a more uniform distribution of
pixel values

You might also like