Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clLocateSensor Class Reference

Sensor matrix processing for locating sound sources. More...

#include <LocateSensor.hh>

List of all members.

Public Member Functions

 clLocateSensor ()
 ~clLocateSensor ()
bool Initialize (long, long, long, long, GDT, bool)
 Initialize.

void Uninitialize ()
 Uninitialize.

void SetDirectionValues (const GDT *, const GDT *, long, long, long, GDT)
 Set direction values.

GDT * GetResultMatrix ()
 Get result matrix.


Private Member Functions

void Clear ()
void SetValue (long, long, GDT)
void SetDirection (GDT, GDT, GDT)

Private Attributes

bool bInitialized
bool b3D
long lWidth
long lHeight
long lPosX
long lPosY
GDT fPI
GDT fHalfPI
GDT fAzimuth
GDT * fpLocMatrix
clAlloc LocMatrix
clDSPOp DSP


Detailed Description

Sensor matrix processing for locating sound sources.

Definition at line 36 of file LocateSensor.hh.


Constructor & Destructor Documentation

clLocateSensor::clLocateSensor  ) 
 

Definition at line 83 of file LocateSensor.cc.

References bInitialized, fHalfPI, and fPI.

clLocateSensor::~clLocateSensor  ) 
 

Definition at line 91 of file LocateSensor.cc.

References bInitialized, and Uninitialize().


Member Function Documentation

void clLocateSensor::Clear  )  [inline, private]
 

Definition at line 31 of file LocateSensor.cc.

References fpLocMatrix, GDT, lHeight, and lWidth.

Referenced by Initialize(), and SetDirectionValues().

void clLocateSensor::SetValue long  ,
long  ,
GDT 
[inline, private]
 

Definition at line 37 of file LocateSensor.cc.

References fpLocMatrix, lHeight, and lWidth.

Referenced by SetDirection().

void clLocateSensor::SetDirection GDT  ,
GDT  ,
GDT 
[private]
 

Definition at line 45 of file LocateSensor.cc.

References b3D, DSP, fAzimuth, fHalfPI, fPI, GDT, lHeight, lPosX, lPosY, and SetValue().

Referenced by SetDirectionValues().

bool clLocateSensor::Initialize long  ,
long  ,
long  ,
long  ,
GDT  ,
bool 
 

Initialize.

Parameters:
lW Matrix width
lH Matrix height
lX Sensor X position
lY Sensor Y position
fA Sensor azimuth (direction) (rad)
bTD Three dimensional array (non-twosided case)
Returns:
Success

Definition at line 97 of file LocateSensor.cc.

References b3D, Clear(), fAzimuth, fpLocMatrix, GDT, lHeight, LocMatrix, lPosX, lPosY, and lWidth.

Referenced by clSubLocate::Initialize().

void clLocateSensor::Uninitialize  ) 
 

Uninitialize.

Definition at line 119 of file LocateSensor.cc.

Referenced by ~clLocateSensor().

void clLocateSensor::SetDirectionValues const GDT *  ,
const GDT *  ,
long  ,
long  ,
long  ,
GDT 
 

Set direction values.

We just walk through matrix and adjust level using

\[\alpha=0.05\frac{f}{1000}^{1.4}\]

\[R=15\log(s)+\alpha{s}10^{-3}\]

\[V_{n}=V_{0}10^{\frac{R}{20}}\]

We definitely need way better algorithm, this is stupidly simple. Ajust multiplier for R for environment, 10 gives cylindral spreading and 20 spherical spreading.

Parameters:
fpLevelValues Levels
fpDirectionValues Directions
lValueCount number of levels & directions
lMinBin Results starting at index
lMaxBin Results end at index
fFreqResolution Frequency resolution

Definition at line 125 of file LocateSensor.cc.

References Clear(), GDT, and SetDirection().

Referenced by clSubLocate::Main().

GDT* clLocateSensor::GetResultMatrix  )  [inline]
 

Get result matrix.

Returns:
Pointer to result matrix

Definition at line 99 of file LocateSensor.hh.

References fpLocMatrix, and GDT.

Referenced by clSubLocate::Main().


Member Data Documentation

bool clLocateSensor::bInitialized [private]
 

Definition at line 38 of file LocateSensor.hh.

Referenced by clLocateSensor(), and ~clLocateSensor().

bool clLocateSensor::b3D [private]
 

Definition at line 39 of file LocateSensor.hh.

Referenced by Initialize(), and SetDirection().

long clLocateSensor::lWidth [private]
 

Definition at line 40 of file LocateSensor.hh.

Referenced by Clear(), Initialize(), and SetValue().

long clLocateSensor::lHeight [private]
 

Definition at line 41 of file LocateSensor.hh.

Referenced by Clear(), Initialize(), SetDirection(), and SetValue().

long clLocateSensor::lPosX [private]
 

Definition at line 42 of file LocateSensor.hh.

Referenced by Initialize(), and SetDirection().

long clLocateSensor::lPosY [private]
 

Definition at line 43 of file LocateSensor.hh.

Referenced by Initialize(), and SetDirection().

GDT clLocateSensor::fPI [private]
 

Definition at line 44 of file LocateSensor.hh.

Referenced by clLocateSensor(), and SetDirection().

GDT clLocateSensor::fHalfPI [private]
 

Definition at line 45 of file LocateSensor.hh.

Referenced by clLocateSensor(), and SetDirection().

GDT clLocateSensor::fAzimuth [private]
 

Definition at line 46 of file LocateSensor.hh.

Referenced by Initialize(), and SetDirection().

GDT* clLocateSensor::fpLocMatrix [private]
 

Definition at line 47 of file LocateSensor.hh.

Referenced by Clear(), GetResultMatrix(), Initialize(), and SetValue().

clAlloc clLocateSensor::LocMatrix [private]
 

Definition at line 48 of file LocateSensor.hh.

Referenced by Initialize().

clDSPOp clLocateSensor::DSP [private]
 

Definition at line 49 of file LocateSensor.hh.

Referenced by SetDirection().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:21 2003 for HASAS by doxygen 1.3.3