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

3 次查看(过去 30 天)
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 个评论
Akella Kartik
Akella Kartik 2022-12-26
@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 2022-12-26
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'));

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by