Skip to content

Gzhji/edit_outdoor_sun_position

Repository files navigation

This respository describes the process for editing the outdoor sun in the captured fisheye image

00: Convert between Fisheye and Equirectanglar Image

run command: python equ2sphere.py --task f2e --single_img_path $single_img_path$ to convert fisheye to equirectanglar image, or replace f2e with e2f to convert equirectanglar image to fisheye image.

01: Remove the Sun

Use the sun theta (azi) and phi (alt) angle from Local Sun Position and Building Orientaion measured from the room.

run command: python new_sun2circle.py --theta 194.87 --phi 40.31 --building_ori 264

The generated mask 'sun_mask.png' (left) will be paired with original image (right) to inpainting the sun and nearby region.

02: Add the Sun

The generated mask 'sun2canvas.png' shows the sun position (assuming when the sun is visible) in the equirectanglar coordinate.

run command: python new_sun2hdr.py --sun_mask_path $sun_mask_path$ --input_hdr $input_hdr$ --output_hdr $output_hdr$

03: Generate the Sky

run command: python new_sky.py to generate new sky

sky_ground.xml is the file used for rendering panoramic full-spectral sky. (Currently only Mitsuba 0.5 can render the full spectral sky)

About

Edit Outdoor Sun Position

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages