File Exchange

image thumbnail


version (10.3 MB) by Aslak Grinsted
An Image Georectification and Feature Tracking toolbox


Updated 25 May 2018

From GitHub

View Version History

View license on GitHub

* Feature tracking between image pairs using template matching.
* Full processing line from feature tracking to georectification.
* Distorted camera model. This allows the use of cheaper camera setups.
* No need for traditional image registration as a pre-processing step which can degrade the images due to resampling.
* Projecting between pixel and real world coordinates. 2D ↔ 3D
* Easily scriptable as it is a toolbox.
* Minimal dependencies.
* Inputs to feature tracking: two images
* Inputs to georectification: a DEM and some ground control points.


Cite As

Aslak Grinsted (2021). ImGRAFT (, GitHub. Retrieved .

Comments and Ratings (7)

Zeeshan Fareed

Dear Aslak Grinsted, I hope you will be fine. Please i need your help to draw a plot of partial and multiple wavelet coherence. I have download your codes but i received the following error in your pwc.m file in MATLAB.
Error in mwc (line 55)


Very nice work removing MATLAB Toolbox dependencies.

Echoing @Chad's comments, the code provided here is clearly written and easily followed.

Thanks for sharing Aslak :-)

Chad Greene

I have used the templatematch function extensively in my research. It efficiently performs feature tracking in a user-friendly manner. Each function in this package has example files which are easy to follow. ImGRAFT has saved me a tremendous amount of time and I have learned quite a bit by exploring the inner workings of templatematch. Thank you for writing and sharing these scripts, Aslak.

Aslak Grinsted

@mark: Thank you. I have been sweeping the code for dependencies today, and believe they are all gone.

Mark Shore

Functions call padarray and fspecial which require the image processing toolbox. Unable to run demos without it.

Aslak Grinsted

@matthew: We have strived to make the toolbox free of dependencies. There may still be some dependencies in the demos, but there really should not be any in the toolbox itself.

If you stumble across some then please let us know where exactly, and we will try to remove them.


MATLAB toolbox dependencies? Mapping toolbox + ...

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!