필터 지우기
필터 지우기

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