A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/educelab/registration-toolkit below:

educelab/registration-toolkit: Toolkit to handle the registration of multipage, diachronic image sets (Mirror Repository)

A set of utilities written in C++ for simplifying image alignment tasks. Supports image-to-image and image-to-mesh registration across a range of image depths and types. Fully supports gray, gray+alpha, RGB, and RGBA images in 8, 16, and 32 bits-per-channel.

Install using apt:

sudo apt install cmake libopencv-dev libvtk9-dev libvtk9-qt-dev libboost-program-options-dev libinsighttoolkit5-dev

Install using Homebrew and the provided Brewfile:

cd registration-toolkit/
brew bundle

Our research group maintains a CMake project called vc-deps for building dependencies that are common across many of our C++ projects. Once it is built, point this project's CMake configuration at the vc-deps libraries using the CMAKE_PREFIX_PATH flag:

cmake -S . -B build/ -DCMAKE_PREFIX_PATH=/path/to/vc-deps/deps/

This project uses a CMake build system and can be built using the default CMake workflow:

# Get the source code 
git clone https://gitlab.com/educelab/registration-toolkit.git
cd registration-toolkit/

# Configure and build
cmake -S . -B build/
cmake --build build/
cmake --install build/  # optional

The CMake project provides a number of flags for configuring the build:

Flags can be set using ccmake or by providing them at configuration time. Example:

cmake -DRT_BUILD_TESTS=ON ..
Image-to-Image Registration

To align a moving image close-up.jpg to a fixed image wide-angle.jpg:

rt_register -f wide-angle.jpg -m close-up.jpg -o result.jpg

See the image registration guide for a more thorough walkthrough of image-to-image alignment.

Note: By default, this application will attempt to automatically detect and match features between the two images in order to perform registration. To provide pre-computed landmarks, please provide a Landmarks file using the --input-landmarks flag.

Image-to-3D Mesh Registration

To align a moving image color-photo.jpg to a textured 3D mesh grayscale-mesh.obj:

rt_register -f grayscale-mesh.obj -m color-photo.jpg -o color-mesh.obj

Note: This process uses a 2D-to-2D registration process between the moving image and the texture image provided by the mesh file. This assumes that the provided mesh is roughly planar and has a "coherent" UV map (i.e. a single, continuous chart). Use rt_reorder_texture to convert a multi-chart mesh to a single chart one.

A Landmarks file is a space-separated plain-text document where each line represents a pair of matching pixel positions in the fixed and moving images. Pairs are in the format fX fY mX mY. Values are interpreted as floating point value strings using std::stod. The # character begins a comment which terminates at the end of the line:

# My Image Landmarks
500 100 2500 1000 # Integer
101.56 234.56 1010.911 2345.67 # Decimal float
1.0156e02 2.3456e02 1.010911e03 2.34567e03 # Scientific

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4