From 566b55b48f939dbfbf5219d5f6c20c8c91ba56c3 Mon Sep 17 00:00:00 2001 From: guigues Date: Tue, 1 Apr 2008 12:26:03 +0000 Subject: [PATCH] *** empty log message *** --- kernel/appli/bbfy/bbfy.cpp | 17 ++++++ packages/itk/bbs/boxes/bbDICOMDirReader.bbs | 15 ++++++ .../itk/src/bbitkDICOMSeriesFileNames.xml | 54 +++++++++++++++++++ packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs | 2 +- 4 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 packages/itk/bbs/boxes/bbDICOMDirReader.bbs create mode 100644 packages/itk/src/bbitkDICOMSeriesFileNames.xml diff --git a/kernel/appli/bbfy/bbfy.cpp b/kernel/appli/bbfy/bbfy.cpp index dce426a..0d78040 100644 --- a/kernel/appli/bbfy/bbfy.cpp +++ b/kernel/appli/bbfy/bbfy.cpp @@ -77,6 +77,7 @@ private: std::string mTemplateImplementation; std::vector mInclude; + std::vector mTypedef; std::string mUserConstructor; std::string mUserCopyConstructor; @@ -326,6 +327,13 @@ void bbfy::ParseXML() bbtk::GetTextOrClear(BB.getChildNode("include",&j),val); mInclude.push_back(val); } + // Typedef + for (i=0,j=0; i + + + + + laurent.guigues at creatis.insa-lyon.fr + Reads a DICOM directory and generates an ordered sequence of filenames based on the DICOM tags in the files. Files can be sorted based on image number, slice location, or patient position. The files in the specified directory are grouped by SeriesUID. The list of SeriesUIDs can be queried and the filenames for a specific series extracted. + read/write;image;dicom + + + +
itkDICOMSeriesFileNames.h
+
itkDICOMSeriesFileNames.h
+ + + + + + + +
typedef std::vector OutputType;
+ + + + +
+    itk::DICOMSeriesFileNames::Pointer names = 
+     itk::DICOMSeriesFileNames::New();
+    names->SetDirectory(bbGetInputIn()); 
+    bbSetOutputOut( names->GetFileNames() );
+  
+ + + + + + +
+ diff --git a/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs b/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs index d1a3235..60db96b 100644 --- a/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs +++ b/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs @@ -2,7 +2,7 @@ load std load wx load wxvtk -define SimpleSlicer +define SimpleSlicer wxvtk description "Simple 2D viewer of a slice of a 3D image. The slice is controlled by a slider. See DemoSimpleSlicer.bbs. Screenshot :
" author "laurent.guigues@creatis.insa-lyon.fr" -- 2.45.1