[pymvpa] Mask in from_wizard generates no data.

Thomas Nickson thomas.nickson at gmail.com
Fri Nov 28 13:35:00 UTC 2014


When I construct a dataset using Dataset.from_wizard() and supply a brain
mask all I get in return is a dataset that's all 0.

I show the code below:

#get image data reshape and flatten
rotatedImageData = rotateShape(getImageData(DATA_LOCATION))

#Get mask data
mask = getImageData(MASK)#.nonzero()[0]

#Load dataset
ds = Dataset.from_wizard(rotatedImageData, targets=metaData['diagnosesT1'],
mask=mask)


The datasets that I'm loading definitely match, having checked in fslview,
and were generated by fslvbm scripts.

Is this something I'm doing wrong? I can't work it out.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20141128/d39855b7/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list