Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ContourNeuronCreate< TC2 > Class Template Reference

#include <CINNIC/contourNeuron.H>

Collaboration diagram for ContourNeuronCreate< TC2 >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class TC2>
class ContourNeuronCreate< TC2 >

This class will create the neuron connection template.

This class creates the 4D neuron template. It processes the excitation and inhabition each neuron should have to another neuron given the property of the two neurons. The result is a set of weights. The weight for each hyperpixel is held in PropHold. The entire set is held in a 4D array called FourDNeuralMap.

Definition at line 123 of file contourNeuron.H.

Public Member Functions

float FindRatio (TC2 &XMax, TC2 &X)
 find the ratio of XMax to X from 0 to 1
float FindDistance (TC2 &PiX, TC2 &PiY)
 find the length from center to coord X,Y
void FindCenter ()
 Calculate the where the center pixel is.
void FindReach ()
 calculate the reach of excitation or inhabition
float FindAngleToRad (TC2 &X, TC2 &Y)
 find the angle to X,Y from the Center
float FindRadToDeg (TC2 &r)
 Transform angle from radians to degrees.
float FindLinear (TC2 &m, TC2 &n, TC2 &o, TC2 &x, TC2 &b)
 Convert along linear function y=mx+b.
float sigmoid (TC2 &beta, TC2 &v)
 common sigmoidal function
PropHold GetCompleteNeuron ()
 Return the completed neuron.
void CreateNeuron (readConfig &config)
 Create the neuron using config file parameters.

Public Attributes

PropHold FourDNeuralMap [AnglesUsed][AnglesUsed][XSize+1][YSize+1]
 create the 4D neuron map, return that map


Member Function Documentation

template<class TC2>
void ContourNeuronCreate< TC2 >::CreateNeuron readConfig config  ) 
 

Create the neuron using config file parameters.

Parameters:
&config This is the config file object contaning parameters

Definition at line 194 of file contourNeuron.C.

References PropHold::ang, PropHold::ang2, PropHold::ang3, PropHold::angAB, PropHold::angABD, AngleCenter, AngleDropOff, AngleSupress, AnglesUsed, PropHold::coLinear, coLinearCutOff, CoLinearDiff, diff(), PropHold::dis, distanceExFactor2, distanceExFactor3, distanceSupFactor2, distanceSupFactor3, PropHold::Edis, ExReach, ContourNeuronCreate< TC2 >::FindAngleToRad(), ContourNeuronCreate< TC2 >::FindCenter(), ContourNeuronCreate< TC2 >::FindDistance(), ContourNeuronCreate< TC2 >::FindLinear(), ContourNeuronCreate< TC2 >::FindRadToDeg(), ContourNeuronCreate< TC2 >::FindRatio(), ContourNeuronCreate< TC2 >::FindReach(), ContourNeuronCreate< TC2 >::FourDNeuralMap, readConfig::getItemValueF(), i, l, linearFactor2e, linearFactor2s, linearFactor3e, linearFactor3s, LINFO, NeuralAngles, NeuronExSize, NeuronOrthSize, NeuronSupSize, NeuronSupStart, PropHold::Odis, PropHold::orth, OrthA, OrthB, OrthMult, OrthReach, PropHold::pol, PropHold::Sdis, PropHold::sender, SupMult, SupReach, valueCutOff, XCenter, XSize, YCenter, YSize, and PropHold::zero.

Referenced by main().

template<class TC2>
float ContourNeuronCreate< TC2 >::FindAngleToRad TC2 &  X,
TC2 &  Y
 

find the angle to X,Y from the Center

Definition at line 101 of file contourNeuron.C.

References pi, XCenter, and YCenter.

Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().

template<class TC2>
void ContourNeuronCreate< TC2 >::FindCenter  ) 
 

Calculate the where the center pixel is.

Definition at line 84 of file contourNeuron.C.

References XCenter, XSize, YCenter, and YSize.

Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().

template<class TC2>
float ContourNeuronCreate< TC2 >::FindDistance TC2 &  PiX,
TC2 &  PiY
 

find the length from center to coord X,Y

Definition at line 75 of file contourNeuron.C.

References sqrt().

Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().

template<class TC2>
float ContourNeuronCreate< TC2 >::FindLinear TC2 &  m,
TC2 &  n,
TC2 &  o,
TC2 &  x,
TC2 &  b
 

Convert along linear function y=mx+b.

Definition at line 166 of file contourNeuron.C.

Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().

template<class TC2>
float ContourNeuronCreate< TC2 >::FindRadToDeg TC2 &  r  ) 
 

Transform angle from radians to degrees.

Definition at line 158 of file contourNeuron.C.

References pi.

Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().

template<class TC2>
float ContourNeuronCreate< TC2 >::FindRatio TC2 &  XMax,
TC2 &  X
 

find the ratio of XMax to X from 0 to 1

Definition at line 67 of file contourNeuron.C.

Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().

template<class TC2>
void ContourNeuronCreate< TC2 >::FindReach  ) 
 

calculate the reach of excitation or inhabition

Definition at line 91 of file contourNeuron.C.

References ExReach, NeuronExSize, NeuronOrthSize, NeuronSupSize, OrthReach, and SupReach.

Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().

template<class TC2>
PropHold ContourNeuronCreate< TC2 >::GetCompleteNeuron  ) 
 

Return the completed neuron.

template<class TC2>
float ContourNeuronCreate< TC2 >::sigmoid TC2 &  beta,
TC2 &  v
 

common sigmoidal function

Definition at line 172 of file contourNeuron.C.


Member Data Documentation

template<class TC2>
PropHold ContourNeuronCreate< TC2 >::FourDNeuralMap[AnglesUsed][AnglesUsed][XSize+1][YSize+1]
 

create the 4D neuron map, return that map

Definition at line 138 of file contourNeuron.H.

Referenced by CINNIC::convolveTest(), ContourNeuronCreate< TC2 >::CreateNeuron(), main(), and CINNIC::viewNeuronTemplate().


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 15:50:08 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4