ShanghaiTechDataset
ShanghaiTechDataset copied to clipboard
How to open the ground truth file
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?
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!