![]()  | 
  
    Chaste
    Build::
    
   | 
 
#include <NetworkToImage.hpp>
 Collaboration diagram for NetworkToImage< DIM >:Public Member Functions | |
| NetworkToImage () | |
| ~NetworkToImage () | |
| vtkSmartPointer< vtkImageData > | GetOutput () | 
| void | SetNetwork (boost::shared_ptr< VesselNetwork< DIM > > pNetwork) | 
| void | SetGridSpacing (units::quantity< unit::length > spacing) | 
| void | SetPaddingFactors (double paddingX, double paddingY, double paddingZ) | 
| void | SetImageDimension (unsigned dimension) | 
| void | Update () | 
Static Public Member Functions | |
| static boost::shared_ptr< NetworkToImage< DIM > > | Create () | 
Private Attributes | |
| vtkSmartPointer< vtkImageData > | mpImage | 
| boost::shared_ptr< VesselNetwork< DIM > > | mpNetwork | 
| units::quantity< unit::length > | mGridSpacing | 
| c_vector< double, DIM > | mPaddingFactors | 
| unsigned | mImageDimension | 
Convert a vessel network to vtk image data. This can be used for visualization or as input to centreline/mesh tools.
Definition at line 51 of file NetworkToImage.hpp.
| NetworkToImage< DIM >::NetworkToImage | ( | ) | 
Constructor
Definition at line 46 of file NetworkToImage.cpp.
| NetworkToImage< DIM >::~NetworkToImage | ( | ) | 
Destructor
Definition at line 64 of file NetworkToImage.cpp.
      
  | 
  static | 
Factory constructor method
Definition at line 57 of file NetworkToImage.cpp.
Referenced by NetworkToSurface< DIM >::Update().
| vtkSmartPointer< vtkImageData > NetworkToImage< DIM >::GetOutput | ( | ) | 
Get the image
Definition at line 70 of file NetworkToImage.cpp.
References NetworkToImage< DIM >::mpImage.
| void NetworkToImage< DIM >::SetGridSpacing | ( | units::quantity< unit::length > | spacing | ) | 
Set the pixel spacing for the image
| spacing | the pixel spacing | 
Definition at line 89 of file NetworkToImage.cpp.
References NetworkToImage< DIM >::mGridSpacing.
| void NetworkToImage< DIM >::SetImageDimension | ( | unsigned | dimension | ) | 
Set the image dimension. Although the class is templated over spatial dimension, it is often of interest to make 2D images. The image dimension can be set here.
| dimension | the image dimension | 
Definition at line 106 of file NetworkToImage.cpp.
References NetworkToImage< DIM >::mImageDimension.
| void NetworkToImage< DIM >::SetNetwork | ( | boost::shared_ptr< VesselNetwork< DIM > > | pNetwork | ) | 
Set the vessel network
| pNetwork | the network | 
Definition at line 83 of file NetworkToImage.cpp.
References NetworkToImage< DIM >::mpNetwork.
| void NetworkToImage< DIM >::SetPaddingFactors | ( | double | paddingX, | 
| double | paddingY, | ||
| double | paddingZ | ||
| ) | 
Set the padding factors for the image. This is multiplied by the network extents to add padding. Eg. final_extent = original_extent * (1+padding factor)
| paddingX | the X padding factor | 
| paddingY | the Y padding factor | 
| paddingZ | the Z padding factor | 
Definition at line 95 of file NetworkToImage.cpp.
References NetworkToImage< DIM >::mPaddingFactors.
| void NetworkToImage< DIM >::Update | ( | ) | 
Do the conversion
Definition at line 112 of file NetworkToImage.cpp.
References DistanceMap< DIM >::Create(), RegularGrid< DIM >::Create(), NetworkToImage< DIM >::mGridSpacing, NetworkToImage< DIM >::mImageDimension, NetworkToImage< DIM >::mPaddingFactors, NetworkToImage< DIM >::mpImage, and NetworkToImage< DIM >::mpNetwork.
      
  | 
  private | 
The grid spacing
Definition at line 66 of file NetworkToImage.hpp.
Referenced by NetworkToImage< DIM >::SetGridSpacing(), and NetworkToImage< DIM >::Update().
      
  | 
  private | 
The dimension of the output image
Definition at line 76 of file NetworkToImage.hpp.
Referenced by NetworkToImage< DIM >::SetImageDimension(), and NetworkToImage< DIM >::Update().
      
  | 
  private | 
The padding factors in each direction
Definition at line 71 of file NetworkToImage.hpp.
Referenced by NetworkToImage< DIM >::SetPaddingFactors(), and NetworkToImage< DIM >::Update().
      
  | 
  private | 
The image
Definition at line 56 of file NetworkToImage.hpp.
Referenced by NetworkToImage< DIM >::GetOutput(), and NetworkToImage< DIM >::Update().
      
  | 
  private | 
The vessel network
Definition at line 61 of file NetworkToImage.hpp.
Referenced by NetworkToImage< DIM >::SetNetwork(), and NetworkToImage< DIM >::Update().