From 72a449a8d3865946f19fd2e3beceb94d914c1cbb Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Wed, 24 Jan 2024 17:41:40 +0100 Subject: [PATCH] #3330 Bug with SliceThickness and SpacingZ --- src/creaImageIOGimmickView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/creaImageIOGimmickView.cpp b/src/creaImageIOGimmickView.cpp index 47aa9cb..0797332 100644 --- a/src/creaImageIOGimmickView.cpp +++ b/src/creaImageIOGimmickView.cpp @@ -548,7 +548,11 @@ void GimmickView::ReadImagesNotThreaded(std::vector& s, std::vect double spac[3]; first->GetDimensions(dim); first->GetSpacing(spac); - out.img->SetSpacing(spac); + + //EED 2024-01-24 + spac[2] = i_zspc; + + out.img->SetSpacing(spac); out.img->SetDimensions(dim[0], dim[1], (int)im.size() ); -- 2.47.1