0% found this document useful (0 votes)
11 views7 pages

21bce7149 Spandana (Dip Ass-2)

This document outlines an assignment focused on spatial domain filtering in digital image processing, specifically exploring contrast stretching and histogram equalization. The experiment aims to enhance image contrast and address exposure issues through practical implementation and visual analysis. The conclusion emphasizes the importance of these techniques in improving image quality and understanding the effects of contrast adjustments.

Uploaded by

jk5337362
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)
11 views7 pages

21bce7149 Spandana (Dip Ass-2)

This document outlines an assignment focused on spatial domain filtering in digital image processing, specifically exploring contrast stretching and histogram equalization. The experiment aims to enhance image contrast and address exposure issues through practical implementation and visual analysis. The conclusion emphasizes the importance of these techniques in improving image quality and understanding the effects of contrast adjustments.

Uploaded by

jk5337362
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
You are on page 1/ 7

DIGITAL IMAGE PROCESSING

ASSIGNMENT – 2

Name : G.Sai Spandana


Reg no: 21BCE7149
Slot : L31+32

Spatial Domain Filtering Of Image


Constrast stretching and Histogram Equlization

Aim: The objective of this experiment is to Explore contrast


stretching and histogram equalization in digital image
processing to enhance overall contrast and address exposure
issues. This experiment involves practical implementation,
comparative analysis, and visual interpretation, providing
hands-on experience in spatial domain filtering. Participants
discern when and how these techniques effectively enhance
digital images.
Algorithm :
STEP-1:
Enhance image contrast through histogram equalization,
resulting in modified image B.

STEP-2:
Display 64-bin histograms for both the original image (A)
and the equalized image (B) to reveal insights into pixel intensity
distribution.

STEP-3:
Convert the original image (A) to grayscale (C) and apply
contrast stretching, creating an adjusted grayscale image k.

STEP-4:
Apply contrast stretching to the original color image (A)
within the specified intensity range [0.3, 0.7], yielding modified
color image K.

STEP-5:
Arrange a 3x2 grid for visualization:
• Display the original image (A) with a title.
• Show the histogram of the original image (A) with 50 bins
and a title.
• Present the histogram-equalized image (B) with a title.
• Show the histogram of the equalized image (B) with 50 bins
and a title.
• Display the contrast-stretched grayscale image (k) with a
title.
• Display the contrast-stretched color image (K) with a title.
Code :
Output Images:
Conclusion :
In Conclusion this workflow explores the effects
of histogram equalization and contrast stretching on an image,
enhancing contrast and adjusting pixel intensity distribution.
Visualizations in a 3x2 grid showcase the original image,
histograms, histogram-equalized version, and contrast-
stretched grayscale/color images. The process demonstrates
the significance of spatial filtering in improving image quality
and understanding contrast adjustments' visual impact.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy