]> Creatis software - bbtk.git/commitdiff
Output as well the image sizes (NX, NY, NZ)
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 16 Jun 2008 10:07:27 +0000 (10:07 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 16 Jun 2008 10:07:27 +0000 (10:07 +0000)
- usefull to initialize sliders -

packages/vtk/src/bbvtkMetaImageReader.xml

index 98540bd9e7c6c87f5cc5d84b126a52dd81335936..085a1fdb98ac9880f9f82ea6caff81de2dcf37b4 100644 (file)
@@ -3,7 +3,7 @@
 <blackbox name="MetaImageReader" type="VTK_ImageAlgorithm">
 
 <author>laurent.guigues at creatis.insa-lyon.fr</author>
-<description><PRE>Reads .mhd / .mha image formats (bbfication of vtkMetaImageReader)</PRE></description>
+<description><PRE>Reads .mhd / .mhd image formats (bbfication of vtkMetaImageReader)</PRE></description>
 <category>image;read/write</category>
 
 <include>vtkMetaImageReader.h</include> 
 
 <input name="In" type="std::string" nature="file name" description="Name of the file to read"/>  
 <output name="Out" type="vtkImageData*" description="Output image" special="vtk output"/>
+<output name="NX" type="int" description="Number of Columns"/>
+<output name="NY" type="int" description="Number of Rows"/>
+<output name="NZ" type="int" description="Number of Planes"/>
  
  <process><PRE>
    SetFileName(bbGetInputIn().c_str());
    vtkParent::Update();
+   GetOutput()->GetDimensions();
+   bbSetOutputNX(GetOutput()->GetDimensions()[0]);
+   bbSetOutputNY(GetOutput()->GetDimensions()[1]);
+   bbSetOutputNZ(GetOutput()->GetDimensions()[2]);      
  </PRE></process>
 
 </blackbox>