ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkNeuralNetworkFileReader.h>
Classes | |
struct | LineType |
Public Types | |
typedef BackPropagationLayerType::Pointer | BackPropagationLayerPointer |
typedef Statistics::BackPropagationLayer < MeasurementVectorType, TargetVectorType > | BackPropagationLayerType |
typedef SmartPointer< const Self > | ConstPointer |
typedef TNetwork::LayerInterfaceType | LayerInterfaceType |
typedef TNetwork::MeasurementVectorType | MeasurementVectorType |
typedef MeasurementVectorType::ValueType | MeasurementVectorValueType |
enum | NetworkWriteWeightsType { IGNORE = 0, ASCII = 1, BINARY = 2 } |
typedef SmartPointer< Self > | Pointer |
typedef NeuralNetworkFileReader | Self |
typedef Object | Superclass |
typedef TNetwork::TargetVectorType | TargetVectorType |
typedef WeightSetType::Pointer | WeightSetPointer |
typedef LayerInterfaceType::WeightSetType | WeightSetType |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetFileName () const |
virtual const char * | GetNameOfClass () const |
TNetwork * | GetOutput () const |
virtual NetworkWriteWeightsType | GetReadWeightValuesType () const |
virtual void | SetFileName (const char *_arg) |
virtual void | SetReadWeightValuesType (const NetworkWriteWeightsType _arg) |
void | Update (void) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
NeuralNetworkFileReader () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
~NeuralNetworkFileReader () | |
Private Types | |
typedef std::vector < MET_FieldRecordType * > | FieldsContainerType |
typedef std::vector< typename TNetwork::LayerInterfaceType::Pointer > | LayersContainer |
typedef std::list< LineType > | LinesContainer |
typedef std::vector< typename TNetwork::LayerInterfaceType::WeightSetInterfaceType::Pointer > | WeightsContainer |
Private Member Functions | |
void | ClearFields () |
Private Attributes | |
bool | m_BinaryDataByteOrderMSB |
FieldsContainerType | m_Fields |
std::string | m_FileName |
std::ifstream | m_InputFile |
LayersContainer | m_Layers |
LinesContainer | m_NameValue |
TNetwork::Pointer | m_Network |
NetworkWriteWeightsType | m_ReadWeightValuesType |
WeightsContainer | m_Weights |
Reader for Neural Network.
This class will enable the user to load neural network and define weights and other network parameters from a text 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 57 of file itkNeuralNetworkFileReader.h.
typedef BackPropagationLayerType::Pointer itk::NeuralNetworkFileReader< TNetwork >::BackPropagationLayerPointer |
Definition at line 77 of file itkNeuralNetworkFileReader.h.
typedef Statistics::BackPropagationLayer< MeasurementVectorType, TargetVectorType > itk::NeuralNetworkFileReader< TNetwork >::BackPropagationLayerType |
Definition at line 76 of file itkNeuralNetworkFileReader.h.
typedef SmartPointer< const Self > itk::NeuralNetworkFileReader< TNetwork >::ConstPointer |
Reimplemented from itk::Object.
Definition at line 65 of file itkNeuralNetworkFileReader.h.
typedef std::vector< MET_FieldRecordType * > itk::NeuralNetworkFileReader< TNetwork >::FieldsContainerType [private] |
Definition at line 125 of file itkNeuralNetworkFileReader.h.
typedef TNetwork::LayerInterfaceType itk::NeuralNetworkFileReader< TNetwork >::LayerInterfaceType |
Definition at line 80 of file itkNeuralNetworkFileReader.h.
typedef std::vector< typename TNetwork::LayerInterfaceType::Pointer > itk::NeuralNetworkFileReader< TNetwork >::LayersContainer [private] |
Definition at line 126 of file itkNeuralNetworkFileReader.h.
typedef std::list< LineType > itk::NeuralNetworkFileReader< TNetwork >::LinesContainer [private] |
Definition at line 134 of file itkNeuralNetworkFileReader.h.
typedef TNetwork::MeasurementVectorType itk::NeuralNetworkFileReader< TNetwork >::MeasurementVectorType |
Definition at line 71 of file itkNeuralNetworkFileReader.h.
typedef MeasurementVectorType::ValueType itk::NeuralNetworkFileReader< TNetwork >::MeasurementVectorValueType |
Definition at line 78 of file itkNeuralNetworkFileReader.h.
typedef SmartPointer< Self > itk::NeuralNetworkFileReader< TNetwork >::Pointer |
Reimplemented from itk::Object.
Definition at line 64 of file itkNeuralNetworkFileReader.h.
typedef NeuralNetworkFileReader itk::NeuralNetworkFileReader< TNetwork >::Self |
SmartPointer typedef support
Reimplemented from itk::Object.
Definition at line 62 of file itkNeuralNetworkFileReader.h.
typedef Object itk::NeuralNetworkFileReader< TNetwork >::Superclass |
Reimplemented from itk::Object.
Definition at line 63 of file itkNeuralNetworkFileReader.h.
typedef TNetwork::TargetVectorType itk::NeuralNetworkFileReader< TNetwork >::TargetVectorType |
Definition at line 74 of file itkNeuralNetworkFileReader.h.
typedef std::vector< typename TNetwork::LayerInterfaceType::WeightSetInterfaceType::Pointer > itk::NeuralNetworkFileReader< TNetwork >::WeightsContainer [private] |
Definition at line 127 of file itkNeuralNetworkFileReader.h.
typedef WeightSetType::Pointer itk::NeuralNetworkFileReader< TNetwork >::WeightSetPointer |
Definition at line 82 of file itkNeuralNetworkFileReader.h.
typedef LayerInterfaceType::WeightSetType itk::NeuralNetworkFileReader< TNetwork >::WeightSetType |
Definition at line 81 of file itkNeuralNetworkFileReader.h.
enum itk::NeuralNetworkFileReader::NetworkWriteWeightsType |
Definition at line 113 of file itkNeuralNetworkFileReader.h.
itk::NeuralNetworkFileReader< TNetwork >::NeuralNetworkFileReader | ( | ) | [protected] |
itk::NeuralNetworkFileReader< TNetwork >::~NeuralNetworkFileReader | ( | ) | [protected] |
void itk::NeuralNetworkFileReader< TNetwork >::ClearFields | ( | ) | [private] |
virtual::itk::LightObject::Pointer itk::NeuralNetworkFileReader< 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::NeuralNetworkFileReader< TNetwork >::GetFileName | ( | ) | const [virtual] |
Get the filename
virtual const char* itk::NeuralNetworkFileReader< TNetwork >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::Object.
TNetwork* itk::NeuralNetworkFileReader< TNetwork >::GetOutput | ( | ) | const |
virtual NetworkWriteWeightsType itk::NeuralNetworkFileReader< TNetwork >::GetReadWeightValuesType | ( | ) | const [virtual] |
static Pointer itk::NeuralNetworkFileReader< TNetwork >::New | ( | ) | [static] |
Method for creation through the object factory
Reimplemented from itk::Object.
virtual void itk::NeuralNetworkFileReader< 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::NeuralNetworkFileReader< TNetwork >::SetFileName | ( | const char * | _arg | ) | [virtual] |
Set the filename
virtual void itk::NeuralNetworkFileReader< TNetwork >::SetReadWeightValuesType | ( | const NetworkWriteWeightsType | _arg | ) | [virtual] |
void itk::NeuralNetworkFileReader< TNetwork >::Update | ( | void | ) |
Read NeuralNetwork
bool itk::NeuralNetworkFileReader< TNetwork >::m_BinaryDataByteOrderMSB [private] |
Definition at line 145 of file itkNeuralNetworkFileReader.h.
FieldsContainerType itk::NeuralNetworkFileReader< TNetwork >::m_Fields [private] |
Definition at line 143 of file itkNeuralNetworkFileReader.h.
std::string itk::NeuralNetworkFileReader< TNetwork >::m_FileName [private] |
Definition at line 142 of file itkNeuralNetworkFileReader.h.
std::ifstream itk::NeuralNetworkFileReader< TNetwork >::m_InputFile [private] |
Definition at line 144 of file itkNeuralNetworkFileReader.h.
LayersContainer itk::NeuralNetworkFileReader< TNetwork >::m_Layers [private] |
Definition at line 139 of file itkNeuralNetworkFileReader.h.
LinesContainer itk::NeuralNetworkFileReader< TNetwork >::m_NameValue [private] |
Definition at line 141 of file itkNeuralNetworkFileReader.h.
TNetwork::Pointer itk::NeuralNetworkFileReader< TNetwork >::m_Network [private] |
Definition at line 136 of file itkNeuralNetworkFileReader.h.
NetworkWriteWeightsType itk::NeuralNetworkFileReader< TNetwork >::m_ReadWeightValuesType [private] |
Definition at line 138 of file itkNeuralNetworkFileReader.h.
WeightsContainer itk::NeuralNetworkFileReader< TNetwork >::m_Weights [private] |
Definition at line 140 of file itkNeuralNetworkFileReader.h.