Many outdoor photos carry a location tag, yet almost none record camera orientation. Naming mountain peaks, anchoring outdoor augmented reality, verifying images, and navigating drones or autonomous vehicles all require the missing 3-DoF orientation. Existing methods match skylines, edges, or semantic segments to a panorama rendered from a digital elevation model (DEM). However, they require a known field-of-view (FoV) and fail when clouds, snow, or foreground objects hide those cues. We present Photo2Pano, a cross-modal transformer that predicts the 3-DoF orientation of an uncalibrated photo from a rendered DEM panorama. Operating without a known FoV, it remains accurate even under partial occlusion, weather, and seasonal changes. Further, we introduce the Photo2Pano dataset, pairing over 20,000 mountain photos with rendered panoramas, ground-truth poses, and FoVs for training and evaluation. Compared with baselines given a known FoV on an established benchmark, Photo2Pano reduces the best mean error almost threefold and the best median by a quarter. Moreover, an auxiliary head estimates the FoV comparably to single-image methods fine-tuned on the Photo2Pano dataset. Code, models and the dataset are available at https://cphoto.fit.vutbr.cz/photo2pano.
翻译:暂无翻译