X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImageWriter.txx;h=81e45ee03b91344b0f60f7829b1aa0c2ac5997bd;hb=08f7de414957e92b25ca5b299007e941b610d3a8;hp=0640f0cd3645bd3d036facd374f6949225718d5d;hpb=06cf3eb32f6aa7c31ebc1192d5dadd5385763fdb;p=clitk.git diff --git a/common/vvImageWriter.txx b/common/vvImageWriter.txx index 0640f0c..81e45ee 100644 --- a/common/vvImageWriter.txx +++ b/common/vvImageWriter.txx @@ -38,6 +38,8 @@ void vvImageWriter::UpdateWithDim(std::string OutputPixelType) UpdateWithDimAndOutputPixelType(); } else if (OutputPixelType == "int") { UpdateWithDimAndOutputPixelType(); + } else if (OutputPixelType == "unsigned_int") { + UpdateWithDimAndOutputPixelType(); } else if (OutputPixelType == "double") { UpdateWithDimAndOutputPixelType(); } else if (OutputPixelType == "float") { @@ -73,7 +75,8 @@ void vvImageWriter::UpdateWithDimAndOutputPixelType() itk::Matrix trans; for(int i=0; i<4; i++) for(int j=0; j<4; j++) - trans[i][j] = mImage->GetTransform()->GetMatrix()->GetElement(i,j); + // TODO SR and BP: check on the list of transforms and not the first only + trans[i][j] = mImage->GetTransform()[0]->GetMatrix()->GetElement(i,j); trans = trans.GetInverse(); // Direction