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

Solution: Code:: Abdul Rehman Hameedulah FA16-BCS-050 Digital Image Processing

This document discusses performing operations on an image called test6, including histogram matching, gray level adjustment through thresholding, and applying average and median filters. It provides code snippets and plots to match the histogram of test6 to another image called match, threshold test6 to values of 1 and 0 based on a gray level of 128, and apply average and median filters to test6, displaying the results.

Uploaded by

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

Solution: Code:: Abdul Rehman Hameedulah FA16-BCS-050 Digital Image Processing

This document discusses performing operations on an image called test6, including histogram matching, gray level adjustment through thresholding, and applying average and median filters. It provides code snippets and plots to match the histogram of test6 to another image called match, threshold test6 to values of 1 and 0 based on a gray level of 128, and apply average and median filters to test6, displaying the results.

Uploaded by

hajra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Abdul Rehman Hameedulah

FA16-BCS-050
Digital Image Processing
Question:
Solution:
Code:

WorkSpace:
Plots:

Histogram matching of 2 images


1. Match the histogram of test6 to image match and present the results

Code:

Figure:
Gray Level adjustment:
Make the image test6 gray level as 1 if the value is greater then 128 and 0 otherwise (Thresholding
with threshold T=128)

Code:

\
Plot:

Filtering:
2. Apply the average and median filters on image test6 display the results

Code:

Plot:
3. Apply the average and median filters on image test6 display the results

Code:

You might also like