Skip to content

atharva1608/sra_ip_practice

Repository files navigation

Image-Processing

Tables of Contents

About

All the Image Processing tasks are done without using any opencv library unless mentioned in order to understand the basics of image processing.For the rotation basically the rotation matrix is used.

Task 1

1. Image Rotation

Rotating the given image by any angle anticlockwise by using numpy and matplotlib library.Taking the rotation angle as the input from the user and rotate the given image. Original Input image
original image

Rotating it by 50 degree
rotated image

Task 2

2. Applying Kernel

Blurring and sharpening the image by using kernel(3x3 filters).

Output

Gaussian Filter Box Filter Sharpen

Task 3

3. Edge Detection

  1. Vertical Edge Detection is done by using vertical filter(3x3).
  2. Horizongtal Edge Detction is done by using horizontal filter(3x3),
  3. Sobel Edge Detection was done by using two filters sobelx and sobely and applying on the given image. Input Image input image

Applying Sobel Edge Detector output image 4. Canny Edge Detection: It basically consists of five steps- 1) Noise Reduction 2)Gradient Calculation 3)Non-maximum suppression 4)Double Threshold 5)Edge Tracking Hysteresis

Task 4

Applying Morphological Transformation Erosion and Dilation on the given image. Erosion erodes away the boundaries of the object and used to diminsh the features of an image. Dilation increases the object area and used to accentuate features.

Input Image Erosion Dilation

Task 5

In this case the blue colour ball is to be detcted from red,green and blue balls. Using cv2.cvtColor(frame, cv.COLOR_BGR2HSV) library the given image is changed from BGR to HSV and the masking is done to detect blue color.

Input Image Blue Ball Detected

Task 6

Region of Image is obtained by numpy indexing.In this input image the foot ball is moved from one place to other place using numpy indexing.

Figure 1 Figure 2

Video of the Output Images here

Prerequisites

Contributors

Acknowledgements

  • SRA VJTI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages