int ext[6];
first->GetExtent(ext);
ext[5] = im.size();
- out->SetExtent(ext);
+ out->SetExtent(ext) -1;
// LG : TODO : Z Spacing ?
out->AllocateScalars();
int dim[3];
first->GetDimensions(dim);
- unsigned long imsize =
+ unsigned long imsize = dim[0] * dim[1];/*
( (unsigned long)first->GetScalarPointer(0,1,0)
- (unsigned long)first->GetScalarPointer(0,0,0))
- *dim[1];
+ *dim[1];*/
int slice = 0;
std::vector<std::string>::iterator it;
// std::cout << "src="<<src<<std::endl;
// std::cout << "dst="<<dst<<std::endl;
// std::cout << "siz="<<imsize<<std::endl;
+ std::cout << slice;
memcpy(dst,src,imsize);
slice++;
- }
+ }
s.push_back(out);
-
+
}
}
}