Transform a4p3b

Moderator: Computer Vision

Benutzeravatar
hymGo
Sonntagsinformatiker
Sonntagsinformatiker
Beiträge: 209
Registriert: 4. Okt 2009 23:17

Transform a4p3b

Beitrag von hymGo » 12. Jul 2013 10:00

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.
Dateianhänge
plane1.jpg
plane1.jpg (18.21 KiB) 995 mal betrachtet

lustiz
Mausschubser
Mausschubser
Beiträge: 70
Registriert: 29. Apr 2009 10:28

Re: Transform a4p3b

Beitrag von lustiz » 12. Jul 2013 11:02

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..

Benutzeravatar
hymGo
Sonntagsinformatiker
Sonntagsinformatiker
Beiträge: 209
Registriert: 4. Okt 2009 23:17

Re: Transform a4p3b

Beitrag von hymGo » 12. Jul 2013 11:31

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)
Dateianhänge
plane2.jpg
plane2.jpg (15.1 KiB) 980 mal betrachtet

lustiz
Mausschubser
Mausschubser
Beiträge: 70
Registriert: 29. Apr 2009 10:28

Re: Transform a4p3b

Beitrag von lustiz » 12. Jul 2013 12:06

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

Benutzeravatar
hymGo
Sonntagsinformatiker
Sonntagsinformatiker
Beiträge: 209
Registriert: 4. Okt 2009 23:17

Re: Transform a4p3b

Beitrag von hymGo » 13. Jul 2013 10:29

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 ^^
Dateianhänge
plane33.png
plane33.png (106.14 KiB) 926 mal betrachtet

Antworten

Zurück zu „Computer Vision“