https://github.com/meshtag/image-processing_practice
Repository for practicing image processing techniques.
https://github.com/meshtag/image-processing_practice
dilation edge-detection erosion rotation rotation-matrix
Last synced: about 2 months ago
JSON representation
Repository for practicing image processing techniques.
- Host: GitHub
- URL: https://github.com/meshtag/image-processing_practice
- Owner: meshtag
- Created: 2020-08-31T19:54:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T03:47:23.000Z (over 3 years ago)
- Last Synced: 2025-04-10T01:14:10.042Z (about 2 months ago)
- Topics: dilation, edge-detection, erosion, rotation, rotation-matrix
- Language: Python
- Homepage:
- Size: 13.4 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SRA_Image-processing_practice
The following operations have been performed mainly using only Numpy Library.Images were saved using matplotlib and pillow.
### 1. Image Rotation
Images were rotated with the help of two dimensional rotation matrix.

|
|
|:---:|
|Input Image|Output
||
Rotation### 2. Applying Kernels
Convolution is a simple mathematical operation which is fundamental to many common image processing operators. Convolution provides a way of multiplying together two arrays of numbers, generally of different sizes, but of the same dimensionality, to produce a third array of numbers of the same dimensionality.Kernels form the Second Matrix which provides effects to the Image.
Applying 5X5 filters to do the following task
1. Blurring
2. Sharpening|
|
|:---:|
|Input Image|**Output**
||
|
|
|:---:|:---:|:---:|
|Box Blur|Gaussian Blur|Sharpen|### 3. Edge Detection
Edge detection is an image processing technique for finding the boundaries of objects within images. It works by detecting discontinuities in brightness.
Applying Edge Detection in following sequence
1. Vertical edge detection
2. Horizontal edge detection
3. Sobel edge detection (right, left, top, bottom)
4. Canny edge detection|
|
|:---:|
|Input Image|**Output**
||
|
|:---:|:---:|
|Horizontal Edge Detection|Vertical Edge Detection|
||
|
|Sobel Edge Detection|Canny Edge Detection|### 4. Morphological Transformation
Morphological transformations are some simple operations based on the image shape. It is normally performed on binary images. It needs two inputs, one is our original image, second one is called structuring element or kernel which decides the nature of operation. Two basic morphological operators are Erosion and Dilation.
Applying dilation and erosion transformation to the image**Output**
||
|
|
|
|:---:|:---:|:---:|:---:|
|Input-Image|Dilation|Erosion|Edge-Detection|### 5. Masking
Masking is an image processing method in which we define a small 'image piece' and use it to modify a larger image. Masking is the process that is underneath many types of image processing, including edge detection, motion detection, and noise reduction.
To show only blue ball a mask has been applied to the following input image
||
|
|:---:|:---:|
|Input Image|Masked Image(output)|### 6. ROI
A region of interest (ROI) is a portion of an image that you want to filter or perform some other operation on.|
![]()
|:---:|:---:|
|Input Image|Output Image|