This respository describes the process for editing the outdoor sun in the captured fisheye 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.
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.
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$
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)

