~~NOTOC~~ ====== Domácí úkol 06 - Homografie ====== === Úloha === Najděte homografii, která zobrazuje obraz http://cmp.felk.cvut.cz/cmp/courses/TZ/2011/HomeWorks/HW-06/id.jpg (parametr id je Vaše pořadí v seznamu studentů předmětu) na referenční obraz http://cmp.felk.cvut.cz/cmp/courses/TZ/2011/HomeWorks/HW-06/00.jpg a doplňte zakrytý černý čtverec v obrazu id.jpg. Korespondence mezi obrazy získáte ručním odečtením pomocí příkazu [u,v] = ginput(1); Odečtěte >=10 korespondencí a nejlepší homografii získejte výběrem čtveřic z deseti a minimalizací maximální chyby na všech korespondencích. - Nakreslete obrazy a do nich odečtené korespondence - Vypište normalizovanou matici homografie H/H(3,3) - Nakreslte obraz s doplněným čtvercem. === Odevzdání === Vypracovanou úlohu tvoří zip archiv obsahující: - Obsah Všeho adresáře tz2011/ s aktualizovaným tz2011.m a hw06.m - zprava.pdf - zpráva popisující vaše řešení a obsahující všechny výše požadované výsledky a grafy. ====== Homework 06 - Homography ====== === The task === Find the homography that maps image http://cmp.felk.cvut.cz/cmp/courses/TZ/2011/HomeWorks/HW-06/id.jpg (parametr id is your rank in the student list) onto the reference image http://cmp.felk.cvut.cz/cmp/courses/TZ/2011/HomeWorks/HW-06/00.jpg and fill the black pixels in id.jpg. Get image matches manually by using [u,v] = ginput(1); Collect >=10 image matches and find the best homography by optimizing over all four-tuples among the ten matches. Minimize the maximal reprojection error on all image matches. - Plot images and the collected matches - Print the mormalized matrix of the best homography , i.e. H/H(3,3) - Present the image with black pixels replaced by pixels from the reference image. === To be handed in === Hand in a zip archive consisting - Complete content of the your directory tz2011/ with latest tz2011.m and hw06.m - report.pdf - report describing your solution and including answers to all items with the corresponding plots.