1 <?xml version="1.0" encoding="iso-8859-1"?>
3 <blackbox name="ImageCharacteristics" >
5 <author>jpr at creatis.insa-lyon.fr</author>
6 <description><PRE>Exports objet sizes, etc</PRE></description>
7 <category>image;</category>
9 <include>vtkImageData.h</include>
11 <input name="In" type="vtkImageData*" description="Input image"/>
12 <output name="NX" type="int" description="Number of Columns"/>
13 <output name="NY" type="int" description="Number of Rows"/>
14 <output name="NZ" type="int" description="Number of Planes"/>
15 <output name="XSpacing" type="double" description="X spacing"/>
16 <output name="YSpacing" type="double" description="Y Spacing"/>
17 <output name="ZSpacing" type="double" description="Z Spacing"/>
21 bbGetInputIn()->GetDimensions(dim);
22 bbSetOutputNX(dim[0]);
23 bbSetOutputNY(dim[1]);
24 bbSetOutputNZ(dim[2]);
26 double pixelSpacing[3];
27 bbGetInputIn()->GetSpacing(pixelSpacing);
28 bbSetOutputXSpacing(pixelSpacing[0]);
29 bbSetOutputYSpacing(pixelSpacing[1]);
30 bbSetOutputZSpacing(pixelSpacing[2]);