Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /trunk/src/dnorm/dnorm.c
ViewVC logotype

Diff of /trunk/src/dnorm/dnorm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 146, Fri Jul 9 08:15:42 2010 UTC revision 147, Fri Jul 9 08:17:48 2010 UTC
# Line 120  Line 120 
120      kindOut = nrrdKindUnknown;      kindOut = nrrdKindUnknown;
121    }    }
122    
123    /* prepare output (this may eventually be cropping or something else) */    /* initialize output by copying */
124    nout = nrrdNew();    nout = nrrdNew();
125    airMopAdd(mop, nout, (airMopper)nrrdNuke, airMopAlways);    airMopAdd(mop, nout, (airMopper)nrrdNuke, airMopAlways);
126    if (nrrdCopy(nout, nin)) {    if (nrrdCopy(nout, nin)) {
127      airMopAdd(mop, err = biffGet(NRRD), airFree, airMopAlways);      airMopAdd(mop, err = biffGet(NRRD), airFree, airMopAlways);
128      fprintf(stderr, "%s: trouble copying:\n%s", me, err);      fprintf(stderr, "%s: trouble copying:\n%s", me, err);
129      airMopError(mop); exit(1);      airMopError(mop); exit(1);
   
130    }    }
131    
132    /* no comments, either advertising the format URL or anything else */    /* no comments, either advertising the format URL or anything else */
# Line 185  Line 184 
184    */    */
185    if (nout->spaceDim) {    if (nout->spaceDim) {
186      int saxi = 0;      int saxi = 0;
187        /* we use only the space dimension, not any named space */
188        nout->space = nrrdSpaceUnknown;
189      if (!nrrdSpaceVecExists(nout->spaceDim, nout->spaceOrigin)) {      if (!nrrdSpaceVecExists(nout->spaceDim, nout->spaceOrigin)) {
190        nrrdSpaceVecSetZero(nout->spaceOrigin);        nrrdSpaceVecSetZero(nout->spaceOrigin);
191      }      }

Legend:
Removed from v.146  
changed lines
  Added in v.147

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0