'list index out of range' when trying to use registration

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
User avatar
Olivier Coulon
Posts: 176
Joined: Fri Feb 27, 2004 11:48 am
Location: MeCA research group, Institut de Neurosciences de La Timone, Marseille, France
Contact:

'list index out of range' when trying to use registration

Post by Olivier Coulon »

Hi, I tried to register a functional image to the same subject's T1 image using the "Rigid registration with mutual information" process, and I get the same error than in this post : http://brainvisa.info/forum/viewtopic.php?f=2&t=1348. It shows as follows :
in Rigid registration with mutual information 1 list index out of range

IndexError
neuroProcesses.py (1799) in _processExecution: result = process.execution( self )
Register3DMutualInformation.py (114) in execution:
if dims[ 3 ] > 1:
I have a nifti T1 and a img/hdr mean functional image/ Any clue, please ?

olivier
Olivier Coulon
Institut de Neurosciences de La Timone,
Aix-Marseille Université,
Marseille, france
https://meca-brain.org
User avatar
Yann Cointepas
Posts: 316
Joined: Tue Jan 20, 2004 2:56 pm
Location: Neurospin, Saint Aubin, France
Contact:

Re: 'list index out of range' when trying to use registration

Post by Yann Cointepas »

The process is expecting that volume_dimension attribute is a list with four values. That is not the case in your image. What is the result of AimsFileInfo on your reference image ?
User avatar
Olivier Coulon
Posts: 176
Joined: Fri Feb 27, 2004 11:48 am
Location: MeCA research group, Institut de Neurosciences de La Timone, Marseille, France
Contact:

Re: 'list index out of range' when trying to use registration

Post by Olivier Coulon »

Thank you Yann, that was the problem. When images come from other software they do not necessarily set 4 dimensions for a 3D volume, so I just needed to do a AimsFileConvert.
Thanks again,

Olivier
Olivier Coulon
Institut de Neurosciences de La Timone,
Aix-Marseille Université,
Marseille, france
https://meca-brain.org
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: 'list index out of range' when trying to use registration

Post by riviere »

Hi,
Anyway the process should test the dimensions. It is fixed now in our sources.
Denis
Post Reply