Coder Social home page Coder Social logo

zxyctn / least-squares-correlation Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 297 KB

MATLAB implementation of Least Squares Correlation/Matching (LSM) with grey value differences and gradients along the axes. Implemented as the final project for Photogrammetric Computer Vision course at Bauhaus-Universität Weimar.

MATLAB 100.00%
lsm cv pcv buw stereo-matching

least-squares-correlation's Introduction

Least-Squares-Correlation

MATLAB implementation of Least Squares Correlation/Matching (LSM) with grey value differences and gradients along the axes. Implemented as the final project for Photogrammetric Computer Vision course at Bauhaus-Universität Weimar.

Description

Algorithm takes a greyscale 150x150 image as an input and with an arbitrarily chosen affine deformation matrix produces a distorted image to be iteratively re-transformed back to its initial state with LSM. After fine-tuning the parameters, a target image and its 3 deformed versions are tested against the system for evaluation. Images can be found in the img folder. Number of iterations are manually adjusted for the best result. To avoid unnecessary void that may be caused by the deformations, images are cropped in center by 100x100 size.

Arbitrarily chosen deformation matrices

In the main.m file, there are 4 matrices to be applied and manually chosen. The matrices are stored in the H_0 variable. To test with the source image and application of transformation matrices, refer to the comments in the file.

Evaluation

Referring to the comments and instructions in the main.m file, you'll be able to take the target image and the 3 distorted images as inputs and evaluate overall performance of the algorithm. Evaluation images are 135x135 in size.

Results

First affine transformation and result after 200 iterations Second affine transformation and result after 600 iterations Third affine transformation and result after 250 iterations Fourth affine transformation and result after 250 iterations

least-squares-correlation's People

Contributors

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