Daniele Picone commited on
Commit ·
9976b06
1
Parent(s): a39aaf9
Added dataset
Browse files- .gitattributes +3 -0
- README.md +41 -0
- code/example.m +26 -0
- code/exrreadchannels.m +34 -0
- code/exrreadchannels.mexmaci64 +3 -0
- code/exrreadchannels.mexw64 +3 -0
- exr/scene01_reflectance.exr +3 -0
- exr/scene02_reflectance.exr +3 -0
- exr/scene03_reflectance.exr +3 -0
- exr/scene04_reflectance.exr +3 -0
- exr/scene05_reflectance.exr +3 -0
- exr/scene06_reflectance.exr +3 -0
- exr/scene07_reflectance.exr +3 -0
- exr/scene08_reflectance.exr +3 -0
- exr/scene09_reflectance.exr +3 -0
- exr/scene10_reflectance.exr +3 -0
- exr/scene11_reflectance.exr +3 -0
- exr/scene12_reflectance.exr +3 -0
- exr/scene13_reflectance.exr +3 -0
- exr/scene14_reflectance.exr +3 -0
- exr/scene15_reflectance.exr +3 -0
- exr/scene16_reflectance.exr +3 -0
- exr/scene17_reflectance.exr +3 -0
- exr/scene18_reflectance.exr +3 -0
- exr/scene19_reflectance.exr +3 -0
- exr/scene20_reflectance.exr +3 -0
- exr/scene21_reflectance.exr +3 -0
- exr/scene22_reflectance.exr +3 -0
- exr/scene23_reflectance.exr +3 -0
- exr/scene24_reflectance.exr +3 -0
- exr/scene25_reflectance.exr +3 -0
- exr/scene26_reflectance.exr +3 -0
- exr/scene27_reflectance.exr +3 -0
- exr/scene28_reflectance.exr +3 -0
- exr/scene29_reflectance.exr +3 -0
- exr/scene30_reflectance.exr +3 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.exr filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
*.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
*.mexmaci64 filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
| 1 |
---
|
| 2 |
license: unknown
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: unknown
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
# Description
|
| 6 |
+
|
| 7 |
+
The `exr` folder contains a high-resolution dataset, consisting of 30 hyperspectral images covering a wide spectral range.
|
| 8 |
+
The acquisitions have 31 channels in the range 420-720 nm, with a separation of 10 nm.
|
| 9 |
+
|
| 10 |
+
# Capture setup
|
| 11 |
+
- Camera: Pointgrey Grasshopper 9.1MP Monochromatic (GS3-U3-91S6M-C)
|
| 12 |
+
- Lens: Jenoptik UV-VIS-IR 60mm f/4 apochromatic lens
|
| 13 |
+
- Filters: Liquid Crystal Tunable Filters (VariSpec VIS 400-720)
|
| 14 |
+
- Light Source: Xenon Illumination (Thorlab HPLS-30-4)
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# How to read the files
|
| 18 |
+
|
| 19 |
+
An example MATLAB code for reading a hyperspectral EXR file is given in
|
| 20 |
+
`example.m` under `code`.
|
| 21 |
+
For `exrreadchannels`, you can refer to the GitHub repository:
|
| 22 |
+
<https://github.com/KAIST-VCLAB/openexr-matlab>
|
| 23 |
+
|
| 24 |
+
# Credits
|
| 25 |
+
|
| 26 |
+
The dataset was originally collected from:
|
| 27 |
+
<http://vclab.kaist.ac.kr/siggraphasia2017p1/kaistdataset.html>
|
| 28 |
+
|
| 29 |
+
If you use this dataset, please cite:
|
| 30 |
+
```bibtex
|
| 31 |
+
@Article{DeepCASSI:SIGA:2017,
|
| 32 |
+
author = {Inchang Choi and Daniel S. Jeon and Giljoo Nam
|
| 33 |
+
and Diego Gutierrez and Min H. Kim},
|
| 34 |
+
title = {High-Quality Hyperspectral Reconstruction
|
| 35 |
+
Using a Spectral Prior},
|
| 36 |
+
journal = {ACM Transactions on Graphics (Proc. SIGGRAPH Asia 2017)},
|
| 37 |
+
year = {2017},
|
| 38 |
+
volume = {36},
|
| 39 |
+
number = {6},
|
| 40 |
+
pages = {218:1-13},
|
| 41 |
+
doi = "10.1145/3130800.3130810",
|
| 42 |
+
url = "http://dx.doi.org/10.1145/3130800.3130810",
|
| 43 |
+
}
|
| 44 |
+
```
|
code/example.m
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%% Example code for reading hyperspectral image from EXR file
|
| 2 |
+
% input: .exr file
|
| 3 |
+
% Output: RGB, HSI
|
| 4 |
+
% - RGB: linear sRGB image (nrows x ncols x 3)
|
| 5 |
+
% - HSI: hyperspectral image (nrows x ncols x 31)
|
| 6 |
+
|
| 7 |
+
%%
|
| 8 |
+
% file to read
|
| 9 |
+
fn = '../exr/scene01_reflectance.exr';
|
| 10 |
+
|
| 11 |
+
% read exr file
|
| 12 |
+
% please refer to 'openexr-matlab' github repository for 'exrreadchannels'
|
| 13 |
+
% https://github.com/KAIST-VCLAB/openexr-matlab
|
| 14 |
+
mapObj = exrreadchannels(fn);
|
| 15 |
+
|
| 16 |
+
% get linear sRGB image (RGB)
|
| 17 |
+
RGB(:,:,1) = mapObj('R');
|
| 18 |
+
RGB(:,:,2) = mapObj('G');
|
| 19 |
+
RGB(:,:,3) = mapObj('B');
|
| 20 |
+
|
| 21 |
+
% get hyperspectral image (HSI)
|
| 22 |
+
wvls2b = 420:10:720;
|
| 23 |
+
for i=1:length(wvls2b)
|
| 24 |
+
HSI(:,:,i) = mapObj(sprintf('w%dnm', wvls2b(i)));
|
| 25 |
+
end
|
| 26 |
+
|
code/exrreadchannels.m
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
function exrreadchannels( filename )
|
| 2 |
+
%EXRREADCHANNELS Read the raw channel data of an OpenEXR image.
|
| 3 |
+
% M = EXRREADCHANNELS(FILENAME) reads all the channels of the OpenEXR
|
| 4 |
+
% file and returns a containers.Map object on which the keys are
|
| 5 |
+
% strings with the channel names and the values are the actual
|
| 6 |
+
% channel data.
|
| 7 |
+
%
|
| 8 |
+
% M = EXRREADCHANNELS(FILENAME,C1,C2,...) reads only the channels named
|
| 9 |
+
% by the strings C1,C2,...,Cn. Also returns a containers.Map object.
|
| 10 |
+
% Note that if there is only a single channel the result is just a
|
| 11 |
+
% matrix with the value of the channel.
|
| 12 |
+
%
|
| 13 |
+
% M = EXRREADCHANNELS(FILENAME, CARRAY) behaves as above, but it
|
| 14 |
+
% receives a cell array with the names of the desired channels.
|
| 15 |
+
%
|
| 16 |
+
% [M1,...] = EXRREADCHANNELS(FILENAME,C1,...) reads the channels
|
| 17 |
+
% specified by the strings C1,C2,...,Cn and stores the channel data in
|
| 18 |
+
% the corresponding matrices M1,M2,...,Mn.
|
| 19 |
+
%
|
| 20 |
+
% [M1,...] = EXRREADCHANNELS(FILENAME, CARRAY) behaves as above, but it
|
| 21 |
+
% receives a cell array with the names of the desired channels.
|
| 22 |
+
%
|
| 23 |
+
% For all these methods it is an error to request a channel which does
|
| 24 |
+
% not exist. Use EXRINFO to get a list of the channels available for
|
| 25 |
+
% a given file.
|
| 26 |
+
%
|
| 27 |
+
% Note: this implementation uses the ILM IlmImf library version 1.7.
|
| 28 |
+
%
|
| 29 |
+
% See also CONTAINERS.MAP,EXRINFO,EXRREAD,TONEMAP
|
| 30 |
+
|
| 31 |
+
% Edgar Velazquez-Armendariz (eva5@cs.cornell.edu)
|
| 32 |
+
%
|
| 33 |
+
% (The help system uses this file, but actually doing something with it
|
| 34 |
+
% will employ the mex file).
|
code/exrreadchannels.mexmaci64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0a2fa87240c7714f1e3535238605381bb840880d7357c4a04fd18e3455f7fa0
|
| 3 |
+
size 20752
|
code/exrreadchannels.mexw64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0c65e48e3d9c36ef90202361374741149b0927c915a09f5abbaf09ac3b71865
|
| 3 |
+
size 840704
|
exr/scene01_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene02_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene03_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene04_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene05_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene06_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene07_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene08_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene09_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene10_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene11_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene12_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene13_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene14_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene15_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene16_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene17_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene18_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene19_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene20_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene21_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene22_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene23_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene24_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene25_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene26_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene27_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene28_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene29_reflectance.exr
ADDED
|
|
Git LFS Details
|
exr/scene30_reflectance.exr
ADDED
|
|
Git LFS Details
|