Skip to content

Commit

Permalink
mri_compute_volume_fractions.cpp. #DOC Added terminal output.
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Greve committed Feb 22, 2022
1 parent 92469cc commit 226211c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,13 @@ int main(int argc, char *argv[]) {
MRI *orig;
MRI *temp;
sprintf(tmpstr,"%s/%s/mri/orig.mgz",SUBJECTS_DIR,subject);
printf("Loading orig %s\n",tmpstr);
orig = MRIreadHeader(tmpstr,MRI_VOLUME_TYPE_UNKNOWN);
if(orig==0) exit(1);
printf("Loading template %s\n",TempVolFile);
temp = MRIreadHeader(TempVolFile,MRI_VOLUME_TYPE_UNKNOWN);
if(temp==0) exit(1);
printf("TempVol Dim %d %d %d\n",temp->width,temp->height,temp->depth);
aseg2vol = TransformRegDat2LTA(orig, temp, NULL);
printf("Computing registration from header\n");
MatrixPrint(stdout,aseg2vol->xforms[0].m_L);
Expand Down Expand Up @@ -555,7 +558,7 @@ static void dump_options(FILE *fp) {
fprintf(fp,"segfile %s\n",asegfile);
fprintf(fp,"wsurf %s\n",wsurf);
fprintf(fp,"psurf %s\n",psurf);
if(TempVolFile) fprintf(fp,"TempVolFile %s\n",regfile);
if(TempVolFile) fprintf(fp,"TempVolFile %s\n",TempVolFile);
fprintf(fp,"USF %d\n",USF);
if(subjectoverride) fprintf(fp,"subjectoverride %s\n",subjectoverride );
return;
Expand Down

0 comments on commit 226211c

Please sign in to comment.