Skip to content
Snippets Groups Projects

BF: make fslcomplex preserve image orientation

Merged Paul McCarthy requested to merge bf/fslcomplex-orient into master
+ 5
5
@@ -578,13 +578,13 @@ int read_complexvolume(volume<float>& realvols, volume<float>& imagvols,
//Only copy real buffer for non-complex
if (!isComplex) {
for ( size_t voxel=0;voxel<volsize && !isComplex;voxel++)
rbuffer[voxel]=((float*)buffer)[voxel];
for ( size_t voxel=0; voxel < volsize; voxel++)
rbuffer[voxel] = ((float*)buffer)[voxel];
}
else {
for ( size_t voxel=0;voxel<volsize && isComplex;voxel++) {
rbuffer[voxel]=((float *)buffer)[2*voxel];
ibuffer[voxel]=((float *)buffer)[2*voxel+1];
for ( size_t voxel=0; voxel < volsize; voxel++) {
rbuffer[voxel] = ((float *)buffer)[2*voxel];
ibuffer[voxel] = ((float *)buffer)[2*voxel+1];
}
}
realvols.reinitialize(sx,sy,sz,st,rbuffer,true);
Loading