フィルターのクリア

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

3 ビュー (過去 30 日間)
Akella Kartik
Akella Kartik 2022 年 12 月 25 日
コメント済み: Akella Kartik 2022 年 12 月 26 日
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 Center および File ExchangeGeometric 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