Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8258743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:38:58+00:00 2026-06-08T02:38:58+00:00

After registering two images in MATLAB (R2010a) (Image1, and Image2), I cannot seem to

  • 0

After registering two images in MATLAB (R2010a) (Image1, and Image2), I cannot seem to figure out how to get the translation correct. The algorithm has been tested and works with other programs. Here are some relevant snippets.

TForm = maketform('affine', Transform);

info = imfinfo('Image1.bmp');

Reg = imtransform(Image1, TForm,...
           'XData', [1 (size(Image1,2)+Transform(3,1))],...
           'YData', [1 (size(Image1,1)+Transform(3,2))],...
           'FillValues', 255);

figure('Name', 'Reg'),...
imshow(Reg, 'InitialMagnification', 250);

imwrite(Reg, 'Reg.bmp', 'bmp');

hold on

H = imshow(Image2, gray(256));
set(H, 'AlphaData', 0.6)

This does not happen when I register Image1 to Image1, only when I try registering Image1 to Image2 (or the other way around). I have the same code made in C which seems to work fine. I believe it has something to do with my imtransform function.

Well, I believe it has to do something with the way the transformation is being applied. I did a direct registration with Image1 to Image1 (rotated 15 degrees about the center of mass), and it does not do the correct transformation. The transformation output is:

Transform =

0.9676   -0.2557         0
0.2596    0.9694         0
32.7217  -25.5110    1.0000

Which if I input this into an image registration program, it works just fine. Here is an example image I did just now,

Example of strange MATLAB registration

A = Original Image, B = Rotated Original Image, C = Original Image Transformed.

Again the transformation is correct (tested using FMRIB’s-FLIRT registration software). MATLAB must be doing something different when applying it to the image.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T02:39:01+00:00Added an answer on June 8, 2026 at 2:39 am

    The rotation matrix has the signs reversed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After some time researching and trying different things I still cannot get my @ExceptionHandler
I am creating a simple website . My situation is like this. After registering
Currently doing a VB 6.0 project,after registering few ocx files added the same in
On my iPhone, I'm running an app called Caissa Chess. After registering the app
After registering on my site I can make people moderators which just changes 1
After registering to handle a signal. In the signal handler function is it necessary
I am working on asp.net, addon with JQuery. After registering endRequest inside ready() function
I need to make some instance methods private after registering that object in another
I have a COM+ component developed with VB6. After registering it with the component
How can I register with CakePHP ? After registering , it will send email

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.