Effacer les filtres
Effacer les filtres

Why does imwarp returns abrupt uint8 arrays on applying a Projective Transform?

3 vues (au cours des 30 derniers jours)
Akella Kartik
Akella Kartik le 25 Déc 2022
Commenté : Akella Kartik le 26 Déc 2022
After performing some math on a few images, I obtained Homography matrix as below:
H =
1.0e+05 *
0.0023 0.0018 -4.4192
0.0018 0.0013 -3.3300
0.0000 0.0000 -0.0105
The image that I use is of dimension 612 * 816 * 3. After using the below code, I get the warped image dimension as 2*2*3.
tform = projective2d(H')
J = imwarp(img,tform);
Can someone please help me with this.
  8 commentaires
Akella Kartik
Akella Kartik le 26 Déc 2022
@DGM, thanks a lot for the response.
The image is of 40MB and the forum isn't accepting that. Anyways, I got answers for what I was seeking. Guess downscaling isn't an issue here with the H I use.
Akella Kartik
Akella Kartik le 26 Déc 2022
You were right when you said, ". I kind of had a hunch that full precision was necessary for the issue to arise. "
I need that precision for my algo to work properly. When I use that precision I get the answer as 2x2x3.
outImage = imwarp(refImage, projective2d(H'));

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by