question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

does similarity transform matrix depend on the image size?

See original GitHub issue

I am trying to align image with different size (182x182) but I am not getting good results. The alignment looks good if I pass the default image_size (112x112). So, I am wondering if the `

  src = np.array([
  [30.2946, 51.6963],
  [65.5318, 51.5014],
  [48.0252, 71.7366],
  [33.5493, 92.3655],
  [62.7299, 92.2041] ], dtype=np.float32 )

if image_size[1]==112:
  src[:,0] += 8.0`

matrix given is for 112x112 images only,

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
vkasojhaacommented, Aug 13, 2019

@mlourencoeb Thank you, rescaling the values like you told resolved the issue.

1reaction
mlourencoebcommented, Aug 12, 2019

Not really. After that line where the shift is applied all you needed to do is:

src = src * 182.0 / 112

Read more comments on GitHub >

github_iconTop Results From Across the Web

Matrix similarity - Wikipedia
Similar matrices represent the same linear map under two (possibly) different bases, with P being the change of basis matrix. A transformation A...
Read more >
Similarity Transformation - an overview ... - ScienceDirect.com
When a 3D scene is imaged by a moving camera, with translation t = (tx, ty, tz) and rotation ω = (ωx, ωy,...
Read more >
Tune Registration Settings in Registration Estimator
Translation transformations preserve the size and orientation of the image. · Similarity transformations include isotropic scaling, rotation, and translation.
Read more >
Understanding Transformations in Computer Vision:
In the 2D case, the equation for an affine transform is given by: equation for a 2D affine transform (image by author). Here,...
Read more >
Computing Similarity Transformations from Only Image ...
to alternative similarity transformation methods, our ap- proach uses 2D-2D image correspondences thus is not sub- ject to the depth uncertainty that often ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found