Dave Jarvis
Dave Jarvis

Reputation: 31171

Auto scale and rotate images

Given:

I would like to know:

The transformation would need to rotate, scale, and possibly shear the larger image. Essentially, I want to create (or find) a program that does the following:

  1. Input two images (e.g., TIFFs).
  2. Click several anchor points on the small image.
  3. Click the several corresponding anchor points on the large image.
  4. Transform the large image such that it maps to the small image by aligning the anchor points.

This would help align pictures of the same stellar object. (For example, a hand-drawn picture from 1855 mapped to a photograph taken by Hubble in 2000.)

Many thanks in advance for any algorithms (preferably Java or similar pseudo-code), ideas or links to related open-source software packages.

Upvotes: 4

Views: 1806

Answers (3)

rwong
rwong

Reputation: 6162

For a C++ implementation (without GUI), try the old KLT (Kanade-Lucas-Tomasi) tracker.

http://www.ces.clemson.edu/~stb/klt/

Upvotes: 0

Dave Jarvis
Dave Jarvis

Reputation: 31171

This is called Image Registration.

Mathworks discusses this, Matlab has this ability, and more information is in the Elastix Manual.

Consider:

Upvotes: 1

user8681
user8681

Reputation:

you can use the javax.imageio or Java Advanced Imaging api's for rotating, shearing and scaling the images once you found out what you want to do with them.

Upvotes: 0

Related Questions