Skip to content

Image Processing - Addition, Subtraction, Multiplication and Inverting the grayscale.

Notifications You must be signed in to change notification settings

abdo-essam/Image-Filters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-Filters

( Image Processing ) Addition, Subtraction, Multiplication and Inverting the grayscale.

Faculty Of Computer And Artificial Intelligence Cairo University FCAI-CU

Image Processing Assignment

This code loads an image using OpenCV, converts it to grayscale, and applies various image processing operations on the grayscale image using OpenCV functions. The resulting images are then displayed using Matplotlib.

The image processing operations applied are:

  • Addition of a constant value (90) to each pixel value of the grayscale image.
  • Subtraction of a constant value (90) from each pixel value of the grayscale image.
  • Multiplication of each pixel value of the grayscale image by a constant value (1.5).
  • Inverting the grayscale image by taking the bitwise complement of each pixel value.

The resulting images are displayed in a 3x3 grid using Matplotlib. The first column of the grid shows the original color image, the second column shows the grayscale image, and the remaining columns show the result of each image processing operation. Each image is displayed with a title indicating the name of the processing operation.

Instructions :

plt.show() at the end of the script to display the images. This function will open a window and display the images. If you are running the script in a Jupyter Notebook, you may not need to use plt.show() because Jupyter Notebook can display Matplotlib figures automatically.

afdf

About

Image Processing - Addition, Subtraction, Multiplication and Inverting the grayscale.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages