ShanghaiTechDataset icon indicating copy to clipboard operation
ShanghaiTechDataset copied to clipboard

How to open the ground truth file

Open AaronHu13 opened this issue 7 years ago • 1 comments

Hello, I am a novice and I was wondering how can I check the ground truth file(in .mat format). When I open it with Matlab, it can only be showed as a 1x1 struct. How can I get more information of it?

AaronHu13 avatar Nov 16 '17 02:11 AaronHu13

Hi Aaron, when you open it with MATLAB you will have a 1x1 cell struct Just double click on the cell that says 1x1 cell and it will open the cell structure. If you want to see more from cli just take image_info (the name of the variable when you open the .mat file) and type in image_info{1}

It will give a 1x2 struct

Which is image_info{1,1}. location and image_info{1,1}.number

Hope this helps, Cheers!

3rdnightbaron avatar Jan 29 '19 10:01 3rdnightbaron