Giter VIP home page Giter VIP logo

image_thresholding's Introduction

Image_Thresholding

There are varios types of Thresholding operations available in OpenCv library. I have explained few of them which we often use: 1.Binary Thresholding: In this type the pixel value < threshold value will get assigned to 0 and the pixel value > threshold value will get assigned to 1,so the will result a binary image(image with either 0(black) or 1(white) color pixel)

2.Binary_inverse Thresholding: Inverse of the first type!.

3.Trunc Thresholding: In this type the pixel value < Threshold value remain unaltered but the pixel value > threshold, will get assigned threshold value

4.To_Zero Thresholding: In this type pixel_value < Threshold will get assigned to zero, pixel_value > Threshold value remain unaltered.

Figure_1

All the above mentioned types corresponds to global thresholding where we should provide the threshold value and this value is compared with all the pixels in the image. Well this type of operations will not meet our needs when the light conditions in image vary from pixel to pixel. Inorder to overcome this we have #Adaptive_Thresholding .

Adaptive thresholding is a method to set the threshold value for a smaller region of image.

Algorithms to perform Adaptive Thresholding:

1.Mean Adaptive Thresholding : Here the threshold value is the mean of neighbourhood values. 2.Gaussian Adaptive Thresholding : Here threshold value is the weighted sum of neighbourhood values where weights are gaussian window.

image_thresholding's People

Contributors

nagrajpawar05 avatar

Watchers

James Cloos avatar  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.