Closed 4fee8fea closed 2 years ago
Hi,
As the annotation in the data structure file says, the lidar data contains "LiDAR from two returns". So we averaged the two lidar arrays. The matlab script we used for preprocessing is:
lidar_data = (hsi.Lidar{1,1}.z + hsi.Lidar{1,2}.z) / 2;
Hope this answers your question :)
Thanks a lot !
Hi, @yyyyangyi
Thanks for your detailed reply a month ago in #1 , which encouraged me a lot!
I have tried to extract information from the
MUUFL
dataset directly, and compare the resulting files with yours. The codes are as follows:from scipy import io
muufl = io.loadmat('muufl_gulfport_campus_1_hsi_220_label.mat')['hsi']
HSI = muufl[0][0]['Data'] # (325, 220, 64)
LiDAR = muufl[0][0]['Lidar'][0][0]['z'][0][0] # (325, 220, 2)
labels = muufl[0][0]['sceneLabels'][0][0]['labels'] # (325, 220)
The compare results are as follows:
(HSI == io.loadmat('hsi_data.mat')['hsi_data']).all() # True
(LiDAR == io.loadmat('lidar_data.mat')['lidar_data']).all() # False
(labels == io.loadmat('labels.mat')['labels']).all() # True
Could you please tell me what causes the difference within the LiDAR datasets?
Thanks!
P.S. The
muufl_gulfport_campus_1_hsi_220_label.mat
data structure is as follows: