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 */ |
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 |
} |
} |