Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
QIS_HDR_TCI20/mean_mu.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (23 sloc)
961 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function x = mean_mu(L, theta,p) | |
% Authors : Abhiram Gnanasambandam (agnanasa@purdue.edu), | |
%Stanley H. Chan (stanchan@purdue.edu) | |
%Intelligent Imaging Lab, Dept. of ECE, Purdue University | |
% Reference: | |
%[1]HDR Imaging with Quanta Image Sensors: Theoretical Limits and Optimal | |
%Reconstruction, Abhiram Gnanasambandam and Stanley H. Chan, | |
%IEEE Transactions on Computational Imaging, 2020 | |
%[2]High Dynamic Range Imaging using Quanta Image Sensors, Abhiram | |
%Gnansambandam, Jiaju Ma, Stanley H. Chan, IISW 2019. | |
x0 = theta*gammainc(theta,L-1,'upper') + L*(1 - gammainc(theta,L,'upper')); | |
del_x = 0; | |
for m = -1:1 | |
tmp = 0; | |
for q = 0:L-1 | |
tmp = tmp + q*(exp(-theta)*theta^(max(q-m,0)) /factorial(max(q-m,0)) - exp(-theta) * theta^q/factorial(q)) ; | |
end | |
tmp = tmp + L*(gammainc(theta,L,'upper') - gammainc(theta,max(L-m,0),'upper')); | |
del_x = del_x + tmp*p(m+2); | |
end | |
x = x0 + del_x; | |
%x(x<0) = 0; | |
end |