Commit 9f5cc3b2 authored by Marc Modat's avatar Marc Modat

Updated reg_jacobian that segfaulted when argc>1 and no transformation was specified

parent d104d7d1
......@@ -201,20 +201,20 @@ int main(int argc, char **argv)
}
}
// Check of the input transformation is an affine
if(!reg_isAnImageFileName(param->inputTransName)){
mat44 *affineTransformation=(mat44 *)malloc(sizeof(mat44));
reg_tool_ReadAffineFile(affineTransformation,param->inputTransName);
printf("%g\n", reg_mat44_det(affineTransformation));
return EXIT_SUCCESS;
}
/* ******************* */
/* READ TRANSFORMATION */
/* ******************* */
nifti_image *inputTransformation=NULL;
if(flag->inputTransFlag)
{
// Check of the input transformation is an affine
if(!reg_isAnImageFileName(param->inputTransName)){
mat44 *affineTransformation=(mat44 *)malloc(sizeof(mat44));
reg_tool_ReadAffineFile(affineTransformation,param->inputTransName);
printf("%g\n", reg_mat44_det(affineTransformation));
return EXIT_SUCCESS;
}
inputTransformation = reg_io_ReadImageFile(param->inputTransName);
if(inputTransformation == NULL)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment