[Insight-users] Why does the VTK file writer not save the origin?
Todd Gable
Todd_Gable at invision.iip.com
Tue Apr 12 13:45:15 EDT 2005
The origin was always set to [0,0,0] in the VTK header unless I used ChangeFilterType. Shouldn't the writer use the origin that the image provides? It seems to keep all other meta-data except the origin.
ChangeFilterType::Pointer changefilter2 = ChangeFilterType::New();
changefilter2->ChangeOriginOn();
changefilter2->SetOutputOrigin(origin);
changefilter2->SetInput(imageOut);
Todd Gable
More information about the Insight-users
mailing list