//EED 03-11-2009
imsize = imsize * first->GetScalarSize();
- /*
- ( (unsigned long)first->GetScalarPointer(0,1,0)
- - (unsigned long)first->GetScalarPointer(0,0,0))
- *dim[1];*/
-
int slice = 0;
std::vector<std::string>::iterator it;
for (it=im.begin(); it!=im.end(); ++it)
vtkImageData* cur = mReader.GetImage( (*it));
// void* src = cur->GetScalarPointer(0,0,0);
// void* dst = out->GetScalarPointer(0,0,slice);
- memcpy(out->GetScalarPointer(0,0,slice),cur->GetScalarPointer(0,0,0),imsize*first->GetScalarSize());
+ memcpy(out->GetScalarPointer(0,0,slice),cur->GetScalarPointer(0,0,0),imsize);
slice++;
}