Steve on Image Processing

March 7th, 2006

Spatial transformations: Useful toolbox documentation links

I've received some comments and e-mail asking how to apply the spatial transformation ideas I've been writing about to images. When I started this series, I naively assumed that Image Processing Toolbox users who were interested in spatial transformations would already know about the function imtransform. I was wrong about that, as I've already written.

You can use imtransform and maketform to apply several types of transformations to images, including affine, projective, and custom. In addition, the image registration function cp2tform can make more types of transforms, including linear conformal, polynomial, piecewise linear, and local weighted mean. Since it's going to be a few more weeks before I get into the specific details of imtransform and friends in this blog, I thought I'd provide some pointers to help readers who need the information now. Here are some links:

3 Responses to “Spatial transformations: Useful toolbox documentation links”

  1. Hulya Yalcin replied on :

    Hi Steve,

    Are you aware of Peter Kovesi’s web site?
    He has developed some Matlab code to compute
    the dominant motion transformation between
    two successive frames. His code is publicly available
    in his web page.

    It would be nice if you guys integrated those
    matlab routines into matlab as part of the demo
    for spatial transformation.

    To use matlab spatial transformation routines, one
    has to select the control points. But computer vision
    researchers have long been developing algorithms to
    automate this. They first find features on the two
    frames and then they match them. Once they are
    matched, a dominant spatial transformation is
    computed from matched features using RANSAC.

    Hulya

  2. Steve replied on :

    Hulya - thanks for the tip. We’ll take a look. We wouldn’t use someone else’s code directly, of course - that wouldn’t be ethical or legal.

  3. Steve replied on :

    Arunkumar - See this post.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Steve Eddins manages the Image & Geospatial development team at The MathWorks and coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.

  • Steve: Kezia—Try imrotate.
  • kezia: steve, how to perform rotation of structuring element by 15 degrees. kindly answer my question. thank u kezia...
  • Steve: Tasha—I only accept comments that are relevant to the particular blog post or are questions or comments...
  • Tasha: Steve,I send you a comment here but still didn’t get any reply yet.I did not see my comment posted here...
  • Steve: Carsten—Thanks for your input.
  • Carsten: Another vote for either imtranslate.m, or at least a blurb in the imtransform help why pure translation...
  • Loren Shure: If you look towards the end of the fftfilt program, you will see that there’s a check to see if...
  • Steve: Sonja—My imwritesize submission on the MATLAB Central File Exchange might be helpful. It was posted...
  • Steve: Grant—Sorry, but it won’t be for R2010a. That development deadline has already passed.
  • Sonja: My publisher is wanting images for a new book to be 300 dpi. Only 5 of the 19 images are 300, the rest are...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.