ITK  4.4.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
itk::NeuralNetworkFileReader< TNetwork > Class Template Reference

#include <itkNeuralNetworkFileReader.h>

+ Inheritance diagram for itk::NeuralNetworkFileReader< TNetwork >:
+ Collaboration diagram for itk::NeuralNetworkFileReader< TNetwork >:

Detailed Description

template<class TNetwork>
class itk::NeuralNetworkFileReader< TNetwork >

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

Author
Raghu Venkatram
See Also
NeuralNetworkFileWriter
MultilayerNeuralNetworkBase

Definition at line 57 of file itkNeuralNetworkFileReader.h.

Classes

struct  LineType
 

Public Types

typedef
BackPropagationLayerType::Pointer 
BackPropagationLayerPointer
 
typedef
Statistics::BackPropagationLayer
< MeasurementVectorType,
TargetVectorType
BackPropagationLayerType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
TNetwork::LayerInterfaceType 
LayerInterfaceType
 
typedef
TNetwork::MeasurementVectorType 
MeasurementVectorType
 
typedef
MeasurementVectorType::ValueType 
MeasurementVectorValueType
 
enum  NetworkWriteWeightsType {
  IGNORE = 0,
  ASCII = 1,
  BINARY = 2
}
 
typedef SmartPointer< SelfPointer
 
typedef NeuralNetworkFileReader Self
 
typedef Object Superclass
 
typedef TNetwork::TargetVectorType TargetVectorType
 
typedef WeightSetType::Pointer WeightSetPointer
 
typedef
LayerInterfaceType::WeightSetType 
WeightSetType
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

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)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

 NeuralNetworkFileReader ()
 
virtual void PrintSelf (std::ostream &os, Indent indent) const
 
 ~NeuralNetworkFileReader ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Types

typedef std::vector
< MET_FieldRecordType * > 
FieldsContainerType
 
typedef std::vector< typename
TNetwork::LayerInterfaceType::Pointer > 
LayersContainer
 
typedef std::list< LineTypeLinesContainer
 
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
 

Additional Inherited Members

- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

Member Typedef Documentation

Definition at line 77 of file itkNeuralNetworkFileReader.h.

Definition at line 76 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef SmartPointer< const Self > itk::NeuralNetworkFileReader< TNetwork >::ConstPointer

Definition at line 65 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef std::vector< MET_FieldRecordType * > itk::NeuralNetworkFileReader< TNetwork >::FieldsContainerType
private

Definition at line 126 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef TNetwork::LayerInterfaceType itk::NeuralNetworkFileReader< TNetwork >::LayerInterfaceType

Definition at line 80 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef std::vector< typename TNetwork::LayerInterfaceType::Pointer > itk::NeuralNetworkFileReader< TNetwork >::LayersContainer
private

Definition at line 127 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef std::list< LineType > itk::NeuralNetworkFileReader< TNetwork >::LinesContainer
private

Definition at line 135 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef TNetwork::MeasurementVectorType itk::NeuralNetworkFileReader< TNetwork >::MeasurementVectorType

Definition at line 71 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef MeasurementVectorType::ValueType itk::NeuralNetworkFileReader< TNetwork >::MeasurementVectorValueType

Definition at line 78 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef SmartPointer< Self > itk::NeuralNetworkFileReader< TNetwork >::Pointer

Definition at line 64 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef NeuralNetworkFileReader itk::NeuralNetworkFileReader< TNetwork >::Self

SmartPointer typedef support

Definition at line 62 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef Object itk::NeuralNetworkFileReader< TNetwork >::Superclass

Definition at line 63 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef TNetwork::TargetVectorType itk::NeuralNetworkFileReader< TNetwork >::TargetVectorType

Definition at line 74 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef std::vector< typename TNetwork::LayerInterfaceType::WeightSetInterfaceType::Pointer > itk::NeuralNetworkFileReader< TNetwork >::WeightsContainer
private

Definition at line 128 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef WeightSetType::Pointer itk::NeuralNetworkFileReader< TNetwork >::WeightSetPointer

Definition at line 82 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
typedef LayerInterfaceType::WeightSetType itk::NeuralNetworkFileReader< TNetwork >::WeightSetType

Definition at line 81 of file itkNeuralNetworkFileReader.h.

Member Enumeration Documentation

Enumerator
IGNORE 
ASCII 
BINARY 

Definition at line 113 of file itkNeuralNetworkFileReader.h.

Constructor & Destructor Documentation

template<class TNetwork >
itk::NeuralNetworkFileReader< TNetwork >::NeuralNetworkFileReader ( )
protected
template<class TNetwork >
itk::NeuralNetworkFileReader< TNetwork >::~NeuralNetworkFileReader ( )
protected

Member Function Documentation

template<class TNetwork >
void itk::NeuralNetworkFileReader< TNetwork >::ClearFields ( )
private
template<class TNetwork >
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.

template<class TNetwork >
virtual const char* itk::NeuralNetworkFileReader< TNetwork >::GetFileName ( ) const
virtual

Get the filename

template<class TNetwork >
virtual const char* itk::NeuralNetworkFileReader< TNetwork >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::Object.

template<class TNetwork >
TNetwork* itk::NeuralNetworkFileReader< TNetwork >::GetOutput ( ) const
template<class TNetwork >
virtual NetworkWriteWeightsType itk::NeuralNetworkFileReader< TNetwork >::GetReadWeightValuesType ( ) const
virtual
template<class TNetwork >
static Pointer itk::NeuralNetworkFileReader< TNetwork >::New ( )
static

Method for creation through the object factory

template<class TNetwork >
virtual void itk::NeuralNetworkFileReader< TNetwork >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

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.

template<class TNetwork >
virtual void itk::NeuralNetworkFileReader< TNetwork >::SetFileName ( const char *  _arg)
virtual

Set the filename

template<class TNetwork >
virtual void itk::NeuralNetworkFileReader< TNetwork >::SetReadWeightValuesType ( const NetworkWriteWeightsType  _arg)
virtual
template<class TNetwork >
void itk::NeuralNetworkFileReader< TNetwork >::Update ( void  )

Read NeuralNetwork

Member Data Documentation

template<class TNetwork >
bool itk::NeuralNetworkFileReader< TNetwork >::m_BinaryDataByteOrderMSB
private

Definition at line 146 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
FieldsContainerType itk::NeuralNetworkFileReader< TNetwork >::m_Fields
private

Definition at line 144 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
std::string itk::NeuralNetworkFileReader< TNetwork >::m_FileName
private

Definition at line 143 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
std::ifstream itk::NeuralNetworkFileReader< TNetwork >::m_InputFile
private

Definition at line 145 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
LayersContainer itk::NeuralNetworkFileReader< TNetwork >::m_Layers
private

Definition at line 140 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
LinesContainer itk::NeuralNetworkFileReader< TNetwork >::m_NameValue
private

Definition at line 142 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
TNetwork::Pointer itk::NeuralNetworkFileReader< TNetwork >::m_Network
private

Definition at line 137 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
NetworkWriteWeightsType itk::NeuralNetworkFileReader< TNetwork >::m_ReadWeightValuesType
private

Definition at line 139 of file itkNeuralNetworkFileReader.h.

template<class TNetwork >
WeightsContainer itk::NeuralNetworkFileReader< TNetwork >::m_Weights
private

Definition at line 141 of file itkNeuralNetworkFileReader.h.


The documentation for this class was generated from the following file: