ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkNeuralNetworkFileWriter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef LayerBaseType::ConstPointer | LayerBaseConstPointer |
typedef LayerBaseType::Pointer | LayerBasePointer |
typedef Statistics::LayerBase < MeasurementVectorType, TargetVectorType > | LayerBaseType |
typedef TNetwork::MeasurementVectorType | MeasurementVectorType |
enum | NetworkWriteWeightsType { IGNORE = 0, ASCII = 1, BINARY = 2 } |
typedef SmartPointer< Self > | Pointer |
typedef NeuralNetworkFileWriter | Self |
typedef Object | Superclass |
typedef TNetwork::TargetVectorType | TargetVectorType |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetFileName () const |
const TNetwork * | GetInput () const |
virtual const char * | GetNameOfClass () const |
virtual NetworkWriteWeightsType | GetWriteWeightValuesType () const |
virtual void | SetFileName (const char *_arg) |
virtual void | SetWriteWeightValuesType (const NetworkWriteWeightsType _arg) |
void | Update (void) |
void | SetInput (TNetwork *network) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
NeuralNetworkFileWriter () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
~NeuralNetworkFileWriter () | |
Private Types | |
typedef std::vector < MET_FieldRecordType * > | FieldsContainerType |
Private Member Functions | |
void | ClearFields () |
Private Attributes | |
FieldsContainerType | m_Fields |
std::string | m_FileName |
TNetwork::Pointer | m_Network |
std::ofstream | m_OutputFile |
NetworkWriteWeightsType | m_WriteWeightValuesType |
Writer for Neural Network.
This class will enable a user to save a trained neural network to a text file. The user can also change the network topology by editing the network configuration file.
This class was contributed to the Insight Journal by Raghu Venkatram The original paper can be found at http://hdl.handle.net/1926/203
Definition at line 55 of file itkNeuralNetworkFileWriter.h.
typedef SmartPointer< const Self > itk::NeuralNetworkFileWriter< TNetwork >::ConstPointer |
Reimplemented from itk::Object.
Definition at line 63 of file itkNeuralNetworkFileWriter.h.
typedef std::vector< MET_FieldRecordType * > itk::NeuralNetworkFileWriter< TNetwork >::FieldsContainerType [private] |
Definition at line 135 of file itkNeuralNetworkFileWriter.h.
typedef LayerBaseType::ConstPointer itk::NeuralNetworkFileWriter< TNetwork >::LayerBaseConstPointer |
Definition at line 76 of file itkNeuralNetworkFileWriter.h.
typedef LayerBaseType::Pointer itk::NeuralNetworkFileWriter< TNetwork >::LayerBasePointer |
Definition at line 75 of file itkNeuralNetworkFileWriter.h.
typedef Statistics::LayerBase< MeasurementVectorType, TargetVectorType > itk::NeuralNetworkFileWriter< TNetwork >::LayerBaseType |
Definition at line 74 of file itkNeuralNetworkFileWriter.h.
typedef TNetwork::MeasurementVectorType itk::NeuralNetworkFileWriter< TNetwork >::MeasurementVectorType |
Definition at line 69 of file itkNeuralNetworkFileWriter.h.
typedef SmartPointer< Self > itk::NeuralNetworkFileWriter< TNetwork >::Pointer |
Reimplemented from itk::Object.
Definition at line 62 of file itkNeuralNetworkFileWriter.h.
typedef NeuralNetworkFileWriter itk::NeuralNetworkFileWriter< TNetwork >::Self |
SmartPointer typedef support
Reimplemented from itk::Object.
Definition at line 60 of file itkNeuralNetworkFileWriter.h.
typedef Object itk::NeuralNetworkFileWriter< TNetwork >::Superclass |
Reimplemented from itk::Object.
Definition at line 61 of file itkNeuralNetworkFileWriter.h.
typedef TNetwork::TargetVectorType itk::NeuralNetworkFileWriter< TNetwork >::TargetVectorType |
Definition at line 72 of file itkNeuralNetworkFileWriter.h.
enum itk::NeuralNetworkFileWriter::NetworkWriteWeightsType |
Definition at line 124 of file itkNeuralNetworkFileWriter.h.
itk::NeuralNetworkFileWriter< TNetwork >::NeuralNetworkFileWriter | ( | ) | [protected] |
itk::NeuralNetworkFileWriter< TNetwork >::~NeuralNetworkFileWriter | ( | ) | [protected] |
void itk::NeuralNetworkFileWriter< TNetwork >::ClearFields | ( | ) | [private] |
virtual::itk::LightObject::Pointer itk::NeuralNetworkFileWriter< TNetwork >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
virtual const char* itk::NeuralNetworkFileWriter< TNetwork >::GetFileName | ( | ) | const [virtual] |
Get the filename
const TNetwork* itk::NeuralNetworkFileWriter< TNetwork >::GetInput | ( | ) | const |
virtual const char* itk::NeuralNetworkFileWriter< TNetwork >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::Object.
virtual NetworkWriteWeightsType itk::NeuralNetworkFileWriter< TNetwork >::GetWriteWeightValuesType | ( | ) | const [virtual] |
static Pointer itk::NeuralNetworkFileWriter< TNetwork >::New | ( | ) | [static] |
Method for creation through the object factory
Reimplemented from itk::Object.
virtual void itk::NeuralNetworkFileWriter< TNetwork >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Object.
virtual void itk::NeuralNetworkFileWriter< TNetwork >::SetFileName | ( | const char * | _arg | ) | [virtual] |
Set the filename
void itk::NeuralNetworkFileWriter< TNetwork >::SetInput | ( | TNetwork * | network | ) |
Set/Get the input transform to write
virtual void itk::NeuralNetworkFileWriter< TNetwork >::SetWriteWeightValuesType | ( | const NetworkWriteWeightsType | _arg | ) | [virtual] |
void itk::NeuralNetworkFileWriter< TNetwork >::Update | ( | void | ) |
Read NeuralNetwork
FieldsContainerType itk::NeuralNetworkFileWriter< TNetwork >::m_Fields [private] |
Definition at line 144 of file itkNeuralNetworkFileWriter.h.
std::string itk::NeuralNetworkFileWriter< TNetwork >::m_FileName [private] |
Definition at line 143 of file itkNeuralNetworkFileWriter.h.
TNetwork::Pointer itk::NeuralNetworkFileWriter< TNetwork >::m_Network [private] |
Definition at line 139 of file itkNeuralNetworkFileWriter.h.
std::ofstream itk::NeuralNetworkFileWriter< TNetwork >::m_OutputFile [private] |
Definition at line 146 of file itkNeuralNetworkFileWriter.h.
NetworkWriteWeightsType itk::NeuralNetworkFileWriter< TNetwork >::m_WriteWeightValuesType [private] |
Definition at line 141 of file itkNeuralNetworkFileWriter.h.