-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
1,447 additions
and
368 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
%% Managing the IMX490 spectral QE | ||
% | ||
% Grabit on the scanned image in sonyIMX490.png produced the first | ||
% file. | ||
|
||
%% | ||
datadir = fullfile(isetRootPath,'data','sensor','colorfilters','auto','SONY'); | ||
curdir = pwd; | ||
chdir(datadir); | ||
|
||
%% Data from grabit, via Zhenyi | ||
tmp = load('qe_imx490_scan.mat'); | ||
|
||
% Scale to 0,1 | ||
tmp.data = tmp.data/100; | ||
|
||
tmp.data(tmp.data<0) = 0; | ||
tmp.data(isnan(tmp.data)) = 0; | ||
|
||
ieNewGraphWin; plot(tmp.wavelength,tmp.data); | ||
xaxisLine; | ||
|
||
%% Write it out in the two formats. Not sure why we have two. | ||
|
||
%% CF file | ||
tmp.filterNames = {'r','g','b'}; | ||
tmp.comment = 'Cleaned up QE from grabit scan of LUCID curves.'; | ||
|
||
cfFile = fullfile(datadir,'cf_imx490.mat'); | ||
|
||
ieSaveColorFilter(tmp,cfFile); | ||
disp("Saved Sony imx490 spectral qe as a color filter.") | ||
disp('Read it using ieReadColorFilter') | ||
|
||
%% QE file | ||
qeFile = fullfile(datadir,'qe_imx490.mat'); | ||
ieSaveSpectralFile(tmp.wavelength,tmp.data,tmp.comment,qeFile); | ||
disp("Saved Sony imx490 spectral qe as a color filter.") | ||
disp('Read it using ieReadSpectra.') | ||
|
||
%% |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
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
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
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
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
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
Oops, something went wrong.