Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a . Initial HDR Implementation This exercise is the initial implementation of HDR images, as below. You will find on folder a set of photos

a. Initial HDR Implementation
This exercise is the initial implementation of HDR images, as below. You will find on folder a set of photos (from 00.CR3 to 10.CR3). For each of them, the exposure time was half the one of the previous photo.
Combine them to produce HDR raw data. Then, apply the demosaicing algorithm and the white balance. Decrease the dynamic range by computing the logarithm of this data, and downscale it to the [0,255] interval. Then save the resulting image.
You should obtain the same result as what is shown in the slides.
Simple combination approach:
Load brightest raw data (longest exposure)
Lets call it h
For each next raw file:
Load it and name it i
Multiply i by the exposure difference to the first photo
E.g., first photo 1s, second photo 0.5s, multiply by 2
Values in h which are above a threshold t get replaced by the corresponding values in i
t is not that important
Avoid the plateau in i
A value of 0.8max(h) should be fine
b. iCAM06
Implement the iCAM06 HDR method, a iCAM06 aims at preserving details, without halo effect, and compresses more the base of the image:
Pseudocode:
output_range =4
input_intensity =1/61(20red +40green + blue)r, g, b = rgb / input_intensity
log_base = bilat_filt(log(input_intensity))
log_details = log(input_intensity)- log_base
compression = log(output_range)/(max(log_base)-min(log_base))log_offset =-max(log_base) compressionoutput_intensity = exp(log_base compression + log_offset + log_detail)rgb = routput_intensity, goutput_intensity, boutput_intensity. Try different settings to find the ones you like the best.
Hint: bilateral filters are slow, so while developing your solution, use at first very small kernels to minimize the run time.
c. Win
.. or at least try to!
Implement a demosaicing function named process raw which takes two parameters:
1. The path to a raw file (CR3 format)
2. The path to wich the resulting JPG image has to be saved
Hint: you will be judged based on the quality of your
Provide python code without using CV2 for a, b , c

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

Prepare a plan to motivate the adoption of the system in exercise

Answered: 1 week ago

Question

=+Why were they effective? How could you continue the campaign?

Answered: 1 week ago

Question

=+Who's your primary audience?

Answered: 1 week ago

Question

=+What do they need to hear?

Answered: 1 week ago