ITK
4.2.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 Types inherited from itk::Object | |
Public Types inherited from itk::LightObject |
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) |
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 |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary (void) |
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
virtual unsigned long | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () 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 void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
Protected Member Functions | |
NeuralNetworkFileWriter () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
~NeuralNetworkFileWriter () | |
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 |
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.
|
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.
|
protected |
|
protected |
|
private |
|
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 |
Get the filename
const TNetwork* itk::NeuralNetworkFileWriter< TNetwork >::GetInput | ( | ) | const |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Object.
|
virtual |
|
static |
Method for creation through the object factory
Reimplemented from itk::Object.
|
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.
|
virtual |
Set the filename
void itk::NeuralNetworkFileWriter< TNetwork >::SetInput | ( | TNetwork * | network | ) |
Set/Get the input transform to write
|
virtual |
void itk::NeuralNetworkFileWriter< TNetwork >::Update | ( | void | ) |
Read NeuralNetwork
|
private |
Definition at line 144 of file itkNeuralNetworkFileWriter.h.
|
private |
Definition at line 143 of file itkNeuralNetworkFileWriter.h.
|
private |
Definition at line 139 of file itkNeuralNetworkFileWriter.h.
|
private |
Definition at line 146 of file itkNeuralNetworkFileWriter.h.
|
private |
Definition at line 141 of file itkNeuralNetworkFileWriter.h.