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.

  • Sana: hi steve, could you explain to me how i would be able to use the dir function, to do a loop through a directory...
  • Nishtha: Sir, I have preprocessed the image in following steps: [1] adaptive histogram equalization [2] thresholding...
  • Kristof: I also strongly support the idea. I have just recently bumped into the problem that im2single was not...
  • Steve: David—I’ m glad you found it useful!
  • David Lalejini: I found your example very useful for finding connected nodes in a large set of input pairs. I start...
  • tommy: Dear Steve, I have a question,please if you are kind to help me regarding the accumulator array dimensions of...
  • Steve: Abc—I don’t know how to distinguish the faces. You might try posting your question in the MATLAB...
  • Manju: well if we have a few ovals within each other like in a cell how do we measure the distance from the center...
  • Steve: Manju—What do you mean? How is each region defined?
  • Manju: if we have 2-3 regions within each other how do we measure the regions of each one?

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