Code Monkey home page Code Monkey logo

image_processing's Introduction

Image_Processing

The following operations have been performed mainly using only Numpy and Pillow library is used just to load and save image.

1. Image Rotation

The image can be rotated by any angle bound or inbound.It involves finding the centre of the Matrix and Shifting along the centre using Rotation Matrix.There are two methods of rotating the image following above approach

  1. Using Pure Rotation Matrix
  2. Using Shearing Rotation

Rotation Matrix

Input Image

Output

No Bound Bound

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. figure3

Applying 5X5 filters to do the following task

  1. Blurring
  2. Sharpening
Input Image

Output

Box Filter Gaussian Filter 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

Vertical Edge Detection Horizontal 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)

Blob detection

image_processing's People

Contributors

harshshah03325 avatar

Stargazers

i99dev avatar Meixu Chen avatar Dhruvi Doshi avatar vrsingh avatar Nirmit Deliwala avatar  avatar Mann Doshi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.