Giter VIP home page Giter VIP logo

taotangseek / image-processing-from-scratch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from o0o0o0o0o0o0o/image-processing-from-scratch

0.0 0.0 0.0 38.94 MB

This project contains some interesting image processing algorithms that were wrote in python and c++ from scratch.

License: MIT License

Python 0.59% C++ 81.45% CMake 2.85% C 2.20% Shell 0.17% Cuda 1.13% Fortran 11.48% JavaScript 0.07% CSS 0.05%

image-processing-from-scratch's Introduction

image processing from scratch

what is this?

This repository contains many interesting image processing algorithms that are written from scratch. Read these codes will allow you to have a comprehensive understanding of the principles of these algorithms. I also have video tutorials for these algorithms here. Go check out if you know Chinese :-)

Implementation
All codes were wrote in python3.7 or c++
moudles you may need:
python:

  • numpy for matix calculation
  • matplotlib for reading and showing images
  • opencv2 for some image operations

c++:

  • opencv2

Usage
you can always run a python script just by
python script.py

for c++, you need to compile first
cd build
cmake ..
make

when it's done, you are ready to run the executable file by
./program_name parameters
Just make sure you have the images in the right path, and you might wanna modify the code a bit to process another image.
Have fun!

Contents

  • canny edge detection
    It is an algorithm that extracts edges of an image.

  • hough transform
    It is an algorithm that can theoratically detects shapes that you can write formulas for it.

  • harris corner detection
    This algorithm detects corners.

  • fast fourier transform
    2-D fourier transform for images using fft.

  • sift
    Scale-invariant feature transform, a well-known technique to extract feature points for image matching. Now added c++ version along with SURF and ORB.

  • KNN
    Using balanced K-D tree to find k nearest neighbors of K-dimension points.

  • PCA&SVD
    Do PCA and SVD using jacobi rotation.(which is accurate but slow)

  • Ransac
    Stitch different images together after knowing the sift keypoint pairs.

  • watershed
    watershed segmentation algorithm.

  • meanshift
    meanshift segmentation algorithm.

  • generalized hough transform
    template match of images, detects a given template in an query image. The vote space is implemented with a sparse vector to support big images.

  • closed-form image matting
    a classic image matting algorithm proposed in A Closed-Form Solution to Natural Image Matting

  • haze removal
    Using dark channel prior and fast guided filter proposed in Single Image Haze Removal Using Dark Channel Prior and Fast Guided Filter

  • a lot to be continued...

image-processing-from-scratch's People

Contributors

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