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 6256009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:28:15+00:00 2026-05-24T14:28:15+00:00

Given a 3 x 3 rotation matrix,R, and a 3 x 1 translation matrix,T,

  • 0

Given a 3 x 3 rotation matrix,R, and a 3 x 1 translation matrix,T, I am wondering how to multiply the T and R matrices to an image?

Lets say the Iplimage img is 640 x 480.

What I want to do is R*(T*img).

I was thinking of using cvGemm, but that didn’t work.

  • 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-05-24T14:28:16+00:00Added an answer on May 24, 2026 at 2:28 pm

    The function you are searching for is probably warpPerspective() : this is a use case…

    // Projection 2D -> 3D matrix
            Mat A1 = (Mat_<double>(4,3) <<
                1, 0, -w/2,
                0, 1, -h/2,
                0, 0,    0,
                0, 0,    1);
    
    // Rotation matrices around the X axis
            Mat R = (Mat_<double>(4, 4) <<
                1,          0,           0, 0,
                0, cos(alpha), -sin(alpha), 0,
                0, sin(alpha),  cos(alpha), 0,
                0,          0,           0, 1);
    
    // Translation matrix on the Z axis 
            Mat T = (Mat_<double>(4, 4) <<
                1, 0, 0, 0,
                0, 1, 0, 0,
                0, 0, 1, dist,
                0, 0, 0, 1);
    
    // Camera Intrisecs matrix 3D -> 2D
            Mat A2 = (Mat_<double>(3,4) <<
                f, 0, w/2, 0,
                0, f, h/2, 0,
                0, 0,   1, 0);
    
    Mat transfo = A2 * (T * (R * A1));
    
    Mat source;
    Mat destination;
    
    warpPerspective(source, destination, transfo, source.size(), INTER_CUBIC | WARP_INVERSE_MAP);
    

    I hope it could help you,

    Julien

    PS : I gave the example with a projection from 2D to 3D but you can use directly transfo = T* R;

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

Sidebar

Related Questions

I want to make 3 windows to represent rotation around the given axis. For
Given two 3D vectors A and B, I need to derive a rotation matrix
Given the following definitions for x,y,z rotation matrices, how do I represent this as
Given: unsigned int a, b, c, d; I want: d = a * b
I want to rotate a given 2D (!) Vector, is there a WPF built-in
Given a canvas, let's say 10x10, and given 3 rectangles/squares. Canvas = 10x10 Rectangle
Given a vector of the counter-diagonals of a matrix in matlab, is there an
I would like to know how to find the rotation matrix for a set
I am doing image manipulation and I want to rotate all of the pixels
If given a rotation axis normalized, such as {1/Sqrt[3],1/Sqrt[3],1/Sqrt[3]}, and a 3d plot, for

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.