[Gdcm-hackers] gdcm-git:Grassroots DICOM branch release updated. 34403656882e49fdeee827137ab36c028c
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: Mathieu M. <ma...@us...> - 2011-02-03 13:19:53
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Grassroots DICOM".
The branch, release has been updated
via 34403656882e49fdeee827137ab36c028cee36dd (commit)
from 5ac8ca1b5625ff9667f0931185b615348f006385 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://gdcm.git.sourceforge.net/git/gitweb.cgi?p=gdcm/gdcm;a=commit;h=34403656882e49fdeee827137ab36c028cee36dd
commit 34403656882e49fdeee827137ab36c028cee36dd
Author: Mathieu Malaterre <mat...@gm...>
Date: Thu Feb 3 13:49:02 2011 +0100
This commit make sure lowerleft is properly set
diff --git a/Utilities/VTK/Applications/gdcm2vtk.cxx b/Utilities/VTK/Applications/gdcm2vtk.cxx
index a95170f..97403ff 100644
--- a/Utilities/VTK/Applications/gdcm2vtk.cxx
+++ b/Utilities/VTK/Applications/gdcm2vtk.cxx
@@ -340,7 +340,6 @@ int main(int argc, char *argv[])
gdcm::ImageHelper::SetForcePixelSpacing(forcespacing);
vtkGDCMImageReader *reader = vtkGDCMImageReader::New();
- reader->SetFileLowerLeft( lowerleft );
#if VTK_MAJOR_VERSION >= 5 && VTK_MINOR_VERSION > 0
vtkDICOMImageReader *dicomreader = vtkDICOMImageReader::New();
@@ -371,6 +370,8 @@ int main(int argc, char *argv[])
imgfactory->RegisterReader( reader );
vtkImageReader2* imgreader =
imgfactory->CreateImageReader2(filename);
+ // Set lowerleft *after* CreateImageReader2
+ imgreader->SetFileLowerLeft( lowerleft );
vtkStructuredPointsReader *datareader = vtkStructuredPointsReader::New();
datareader->SetFileName( filename );
int res = 0;
-----------------------------------------------------------------------
Summary of changes:
Utilities/VTK/Applications/gdcm2vtk.cxx | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
hooks/post-receive
--
Grassroots DICOM
|