Giter Site home page Giter Site logo

xmba15 / coarse_to_fine_image_registration Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 52.95 MB

Coarse-to-Fine High Resolution Image Alignment/Registration

CMake 12.93% Makefile 3.44% C++ 83.63%
image-alignment image-registration micasense multispectral-images superglue superpoint

coarse_to_fine_image_registration's Introduction

๐Ÿ“ image_registration

Toy application to register high resolution images


๐ŸŽ‰ TODO


  • Coarse image alignment by SuperGlue
  • Fine image alignment by Thin Plate Spline Transformation

๐ŸŽ› Dependencies


  • pytorch c++ API. Follow the installation instruction in HERE

    • If libtorch is installed into /opt/libtorch, we need to add /opt/libtorch/lib into paths where system searches for shared libraries:
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/libtorch/lib
    git clone https://github.com/xmba15/torch_cpp.git
    cd torch_cpp
    make default && sudo make install
  • other depedencies:
sudo apt-get install -y --no-install-recommends \
    libopencv-dev

๐Ÿ”จ How to Build


# build library
make default -j`nproc`

# build examples
make apps -j`nproc`

๐Ÿƒ How to Run (after building examples)


  • Download model weights
mkdir -p .tmp
wget -P .tmp https://github.com/xmba15/torch_cpp/releases/download/0.0.1/superpoint_model.pt
wget -P .tmp https://github.com/xmba15/torch_cpp/releases/download/0.0.1/superglue_model.pt
  • Application for test data
    • Multispectral Data from MicaSense: MSI(5 bands: Blue, Green, Red, Red-edge, NIR) high resolution images from MicaSense Sensors. The following app aligns all the 5 bands together.
./build/examples/super_glue_matcher_micasense_app .tmp/superpoint_model.pt .tmp/superglue_model.pt

Micasense

  • Prokudin-Gorskii Collection: Black and White images from Prokudin-Gorskii collection, taken by Miethe-Bermpohl camera. One work will consist of three images (blue, green, red) over a span of 2-6 seconds. One sample image can be obtained from the following link:
wget https://tile.loc.gov/storage-services/master/pnp/prok/00500/00564a.tif
./build/examples/super_glue_matcher_app .tmp/superpoint_model.pt .tmp/superglue_model.pt

Prokudin-Gorskii

๐Ÿ’Ž References


coarse_to_fine_image_registration's People

Contributors

xmba15 avatar

Stargazers

 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.