[英]Nifti image into scikit learn
I wanted to use scikit-learn Machine learning variation to do data processing of my neuroimaging data, specifically, fMRI data in Nifti file type. 我想使用scikit-learn机器学习版本来处理我的神经影像数据,特别是Nifti文件类型的fMRI数据。
Nilearn provides the platform. Nilearn提供了平台。 However, I don't understand how the Nitimasker working principle. 但是,我不了解Nitimasker的工作原理。 How it converts 4D fMRI data to 2D data for scikit-learn. 它如何将4D fMRI数据转换为scikit-learn的2D数据。
I have 4D data of 1 subject, ie (40, 64, 64, 1452)
, a Haxby data. 我有1个主题的4D数据,即(40, 64, 64, 1452)
,一个Haxby数据。 I use Nibabel for accessing the images. 我使用Nibabel来访问图像。 If I want to process one planar, [20, :, :, 1]
to [20, :, :, 1452]
, could I np.flatten
it to be the [n_samples,n_features]
for scikit-learn platform? 如果我要处理一个平面, [20, :, :, 1]
至[20, :, :, 1452]
可我np.flatten
它是[n_samples,n_features]
对于scikit学习平台?
This is not a direct answer but have a look at nilearn which is an extension of scikit-learn for brain imaging data (not sure this is the correct description). 这不是直接的答案,而是看看nilearn ,它是scikit-learn用于脑成像数据的扩展(不确定这是正确的描述)。
There is an example of the Haxby data 有一个Haxby数据示例
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.