KamitaniLab / GenericObjectDecoding

Demo code for Horikawa and Kamitani (2017) Generic decoding of seen and imagined objects using hierarchical visual features. Nat Commun https://www.nature.com/articles/ncomms15037.
149 stars 47 forks source link

Get stimuli presentation order (for the brain data)? #5

Closed qihongl closed 6 years ago

qihongl commented 6 years ago

Is there a simple way of getting which stimulus (image) was presented at which time point? I guess it is stored somewhere?

I apologize if this is an obvious question... but I'm not familiar with the package you are using. Or do you have documentation about how to use the brain decoding toolbox somewhere?

Thanks in advance!

ShuntaroAoki commented 6 years ago

In MATLAB, the following code will give you a N x 1 matrix (labels) in which each row is an image ID for each sample (by using our BrainDecoderToolbox2). The image ID is an float number based on image file name (e.g., 1518878.010042 indicates n01518878_10042.JPEG).

[dataSet, metaData] = load_data('Subject1.mat');
labels = get_dataset(dataSet, metaData, 'Label');

Currently, the toolbox is not well documented yet. So, feel free to ask any question about it.

qihongl commented 6 years ago

I see! Thanks a lot! I really appreciate it!

qihongl commented 6 years ago

By the way, thank you very much for releasing this very interesting dataset!