Questions tagged [transformation-matrix]

38 questions
8
votes
1 answer

Get the Transformation-Matrix values in Console

Background : User click on Mask & upload their own image on the mask. Once image uploaded, Edit Text is displaying on the image. Once user click on Edit Text, we are displaying pop up box. Zoom & Rotate buttons are displaying. Also user can Drag…
user8444404
5
votes
1 answer

Compute pose / transformation matrix (rotation and translation) from gps location and (roll, pitch, yaw) for KITTI raw dataset

I'm trying to compute the relative pose between two frames in a video from KITTI raw dataset. The oxts data provides lat, lon, alt, roll, pitch, yaw for each of the frames. How can I convert this data into a transformation matrix (rotation matrix…
Nagabhushan S N
  • 6,407
  • 8
  • 44
  • 87
4
votes
3 answers

2D Rotation of Image

I am trying to rotate the image for any given angle. I am rotating with the center of the image as the origin. But the code is not doing the rotation as expected. I am attaching the code below. import math import numpy as np import cv2 im =…
2
votes
0 answers

Equivalent imwarp Matlab's function in python

I want to apply a perspective transformation to a matrix in python. In particular, I want to have the same effect of the function imwarp in Matlab. According to this reference, the equivalent function is wrap of the library scikit-image. However,…
G.F
  • 135
  • 10
2
votes
0 answers

Misplaced Cameras When Importing Into MeshLab

I have camera positions and rotations from a camera alignment (4x4 transformation matrices). Visualizing them with open3d works fine. The following code produces the scene below with the object in the center of the cameras and the RGB-axis shows the…
Florian Ludewig
  • 4,338
  • 11
  • 71
  • 137
2
votes
0 answers

How can I rotate a 2d image using a target image, landmark coordinates, the least squares approach, and a rotation matrix?

I have two 2d images, one is the source image and the other is a target image; I need to rotate the source image to match the target image using python (scikit & numpy). I have 3 landmark coordinates for each image, as follows: image1_points =…
2
votes
0 answers

Check face edge angles on iOS

I am trying to develop on iOS a system to make sure all angles of a face are being shown. Basically, replicate the same wizard apple does when creating the face ID. I have started today playing around and following some tutorials on ARKit,…
Inigo Llamosas
  • 457
  • 1
  • 4
  • 12
2
votes
1 answer

SimpleITK: apply inverse transformation

I have recently began to use SimpleITK for image registration. For my current project I need to register an X-Ray image and a CT image, and then apply the inverse matrix on a ROI mask traced on the X-Ray image. I got the inverse matrix with this…
2
votes
1 answer

How to rotate around Z axis using transformation matrix in 3D?

In Lua, I have set up an identity matrix: local ident_matrix = { {1,0,0,0}, {0,1,0,0}, {0,0,1,0}, {0,0,0,1}, } This is then updated to contain a point at x=100, y=0, z=0: ident_matrix = { {100,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,1}, } I…
Matt W
  • 11,753
  • 25
  • 118
  • 215
1
vote
1 answer

When drawing mesh instances on the GPU indirectly (no CPU involved), is it better to calculate transform matrices on CPU or GPU?

I am instancing tens of thousands of meshes on the GPU - each mesh needs to have a unique transform. Is it faster to calculate tens of thousands of matrices on the CPU and pass them to the GPU via a compute buffer, or is it faster to calculate each…
mikemeyers
  • 35
  • 4
1
vote
1 answer

Why my matrix inverse implementation is less accurate? C++

I have a transformation matrix of type Eigen::Matrix4d. And I would like to get its inverse. I write a function my self to compute it by the following formular. . And here is my code: Eigen::Matrix4d inverseTransformation(Eigen::Matrix4d T) { …
KillerBee
  • 11
  • 3
1
vote
1 answer

Wrong pose estimate when using Charuco on image with higher resolution

I'm working on a project where a high quality pose estimate is needed. I am therefore trying to get this pose estimate using OpenCV charuco board. Previously I have been using a Aruco board of size 2x2, but the pose estimate was not sufficient. I…
1
vote
1 answer

3D ball rolling on wrong axis LibGDX

Hello I'm trying to make a billiards game using libgdx. I'm using 3d models for the balls and an Orthographic Camera to view them. I am having trouble getting them to roll correctly after rolling on a different axis. Here is a clip of what they look…
Dmanap
  • 11
  • 2
1
vote
3 answers

How to align two Point Clouds given the set of points and point-to-point correspondence?

Suppose I have two pointclouds [x1, x2, x3...] and [y1, y2, y3...]. These two pointclouds should be as close as possible. There are a lot of algorithms and deep learning techniques for the pointcloud registration problems. But I have the extra…
1
vote
2 answers

how to put a specific coordinate of a small image to a specific coordinate of a large image using translation matrix in python

I'm learning OpenCV and I'm looking for a code in python that get an input coordinate of a small image and map it to the coordinate of a large image so that a small image insert to the large image and it can be transform like rotating. I want to use…
1
2 3