GithubHelp home page GithubHelp logo

abhijitmahalle / probability-based-boundary-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 17.26 MB

Implementation of Probability Based Boundary Detection Algorithm

Python 100.00%
canny-edge-detection computer-vision derivative-of-gaussian edge-detection filters gabor-feature-extraction gabor-filters half-disk-masks leung-malik python

probability-based-boundary-detection's Introduction

License: MIT

Probability based edge detection

Phase 1

This repository consits of a simple implementaion of Probability of boundary detection algorithm and its comparsion with the classical approaches for edge detection like Canny and Sobel edge detectors that measures discontinuities in the image intensities to detect edges. The PB algorithm considers texture and color information along with intensity, making it a better performing algorithm. This algorithm predicts per pixel probability of the boundary detected. The original image and the output of implementation is shown below:

Original PBLite

The algorithm of PBLite detection is shown below:

PBLite

The main steps for implementing the same are:

Step 1: Feature extraction using Filtering

The filter banks implemented for low-level feature extraction are Oriented Derivative if Gaussian Filters, Leung-Malik Filters (multi-scale) and Gabor Filter.

DoG PBLite PBLite

Step 2: Extracting texture, color and brightness using clustering

Filter banks can be used for extraction of texture properties but here all the three filter banks are combined which results into vector of filter responses. As filter response vectors are generated, they are clustered together using k-means clustering. For Texton Maps k = 64 is used; Color and Brightness Maps k= 16 is used.

DoG PBLite PBLite

The gradient measurement is performed to know how much all features distribution is changing at a given pixel. For this purpose, half-disc masks are used.

PBLite PBLite PBLite

Step 3: Pb-Score

The gradient maps which are generated are combined with classical edge detectors like Canny and Sobel baselines for weighted avaerage.

Instruction to run the code:

python Wrapper.py

File structure

Phase1
├── Code
|  ├── Wrapper.py
├── Data
|  ├── BSDS500
├── results
|  ├── BrightnessGradient
|  ├── Brightness_map
|  ├── ColorGradient
|  ├── Color_map
|  ├── PbLite
|  ├── TextonGradient
|  ├── TextonMap
|  ├── Other filter outputs

This was implemented as part of CMSC733 and for detailed report refer here.

Phase 2

In this section, a basic neural network and its modified version for classification on CIFAR10 dataset have been de-scribed. Later, a case study for ResNet, ResNext and DenseNet architecture was conducted. Refer report for more details.

probability-based-boundary-detection's People

Contributors

abhijitmahalle avatar

Stargazers

 avatar

Watchers

 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.