Seite 1 von 1

Transform a4p3b

Verfasst: 12. Jul 2013 10:00
von hymGo
Hi,
I just can't find my error, so I hope someone else can give me a hint :)
I try to transform the image a4p3b into the plane of a4p3a. Therefore, I proceed as stated in the task. First, I use the homography to get the coordinates of a4p3b in the plane of a4p3a. Afterwards, I use interp2 to interpolate the pixels of a4p3b at the calculated coordinates . My result, however, is not as desired. It differs from the image shown on the exercise sheet, even though I use the homography which is stored in H.mat (instead of my own one).

I attached my result below.

Re: Transform a4p3b

Verfasst: 12. Jul 2013 11:02
von lustiz
hymGo hat geschrieben:Hi,
I try to transform the image a4p3b into the plane of a4p3a. Therefore, I proceed as stated in the task. First, I use the homography to get the coordinates of a4p3b in the plane of a4p3a. Afterwards, I use interp2 to interpolate the pixels of a4p3b at the calculated coordinates
Looking at your result I'd say something is going the wrong way round..

Re: Transform a4p3b

Verfasst: 12. Jul 2013 11:31
von hymGo
Yes, I thought that too. Trying it the other way around reluts in a bad results, as well :D
Maybee I have todo some re-thinking (even so I really thought my soultion should be right xD)

Re: Transform a4p3b

Verfasst: 12. Jul 2013 12:06
von lustiz
hymGo hat geschrieben:Maybee I have todo some re-thinking (even so I really thought my soultion should be right xD)
Thinking about the dimensions may help you. So in theory there should actually be two mappings, one for left and one for right. Why? Because you should also be able to create a panorama with different dimensions right? However, the task says we should only warp the right image. So it may help if you think about how your code should be, if the task was creating a panorama double the size. What dimensions should the right image be warped to?

I hope that did not confuse you :P

Re: Transform a4p3b

Verfasst: 13. Jul 2013 10:29
von hymGo
lustiz hat geschrieben:
hymGo hat geschrieben:I hope that did not confuse you :P
It was a bit confusing, but I think it helped :wink:
Consequently, my result looks a bit more appealing (and is hopefully right) . Now, I need to reconstruct the whole panorama ^^