Coder Social home page Coder Social logo

imagealign's Introduction

imagealign

A cli tool for image registration using opencv (gocv) feature detection + homography.

Usage

imagealign -i ./img/lenna_skewed.jpg -r ./img/lenna.jpg -o ./fixed.png

The most minimal usage of imagealign requires three parameters:

  • the input (skewed image to align)
  • the reference (image to align with)
  • the output path

imagealign should support all image mimetypes that opencv supports (but has only been tested with png/jpg):

  • Windows bitmap (bmp)
  • JPEG (jpeg, jpg, jpe)
  • JPEG 2000 (jp2)
  • TIFF files (tiff, tif)
  • Portable network graphics (png)
  • ...and more

Command line options:

Param Type Description
-i or --input string Path to the input image
-r or --reference string Path to the reference image
-o or --output string Path to write the output image to
-p or --percent float Optional percentage of matches to use from opencv feature detection (defaults to 0.7)
-m or --mask string Optional mask path to use for feature detection on the input image

Installation

First ensure opencv is installed (contrib needed for testing). A detailed installation process can be found in the gocv repo.

imagealign was made using go v1.21, previous versions are untested.

// clone repo
$ git clone https://github.com/Cartermel/imagealign.git --depth 1

$ cd imagealign

$ go install

Examples

(reference images located in the ./img directory)

Input Output

imagealign's People

Contributors

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