GitHunt
RA

RAHULPATEL2002/grayscale-image-processing-operations

This repository contains MATLAB scripts for performing basic image processing tasks on grayscale images, including brightness and contrast adjustments, negative image creation, and arithmetic operations (addition, subtraction, multiplication, division) between two images.

Grayscale Image Processing Operations
This repository contains MATLAB scripts that perform various image processing tasks on grayscale images, including brightness adjustment, contrast manipulation, negative image creation, and arithmetic operations between two images.

Features
Brightness Adjustment: Increase or decrease the brightness of a grayscale image.
Contrast Manipulation: Enhance or reduce image contrast using contrast stretching and normalization.
Negative Image Creation: Generate the negative of a grayscale image by inverting its pixel values.
Arithmetic Operations: Perform addition, subtraction, multiplication, and division between two resized grayscale images.
Prerequisites
MATLAB installed on your system.
How to Run
Clone this repository to your local machine:
bash
Copy code
git clone https://github.com/RAHULPATEL2002/grayscale-image-processing-operations.git
Open the .m files in MATLAB.
Replace the image paths with your own images or use the default ones.
Run the scripts to perform the various operations.
Operations and Results

  1. Brightness Adjustment
    image

image

  1. Contrast Manipulation
    image

  2. Negative Image
    image

  3. Arithmetic Operations
    image

Conclusion :
This lab provided insight into how simple mathematical operations on pixel values can dramatically change an image’s appearance. By adjusting brightness, contrast, and creating negative images, the effects of pixel intensity transformations were clearly understood. Furthermore, performing arithmetic operations on two grayscale images allowed for blending, comparison, and enhanced visualization of image differences. These foundational operations are essential for a variety of applications in digital image processing, such as image enhancement, filtering, and analysis.

Languages

MATLAB100.0%

Contributors

Created October 19, 2024
Updated March 7, 2025