Page 1 of 1

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

Posted: Fri Oct 09, 2009 2:25 pm
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

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

Posted: Mon Oct 12, 2009 5:05 pm
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 ?

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

Posted: Mon Oct 12, 2009 8:29 pm
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

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

Posted: Sat Oct 31, 2009 7:21 pm
by riviere
Hi,
Anyway the process should test the dimensions. It is fixed now in our sources.
Denis