Basic Image AlgorithmS Library 2.8.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

BIAS::ClickCornersFrame Class Reference

is derived from wxFrame, ICECCallBackInterface More...

Inheritance diagram for BIAS::ClickCornersFrame:
Collaboration diagram for BIAS::ClickCornersFrame:

List of all members.

Public Member Functions

void AddDebugLevel (const long int lv)
void AddDebugLevel (const std::string &name)
bool * AddParamBool (const std::string &name, const std::string &help, bool deflt=false, char cmdshort=0, int Group=GRP_NOSHOW)
double * AddParamDouble (const std::string &name, const std::string &help, double deflt=0.0, double min=-DBL_MAX, double max=DBL_MAX, char cmdshort=0, int Group=GRP_NOSHOW)
int * AddParamEnum (const std::string &name, const std::string &help, const std::vector< std::string > &enums, const int deflt=0, const std::vector< int > *IDs=NULL, const char cmdshort=0, const int Group=GRP_NOSHOW)
int * AddParamInt (const std::string &name, const std::string &help, int deflt=0, int min=std::numeric_limits< int >::min(), int max=std::numeric_limits< int >::max(), char cmdshort=0, int Group=GRP_NOSHOW)
 For all adding routines:
std::string * AddParamString (const std::string &name, const std::string &help, std::string deflt="", char cmdshort=0, int Group=GRP_NOSHOW)
BIAS::Vector< double > * AddParamVecDbl (const std::string &name, const std::string &help, const BIAS::Vector< double > &deflt, char cmdshort=0, int Group=GRP_NOSHOW)
 Add a parameter that expects a string on command line like "<value0> <value1> <value2> ..."
A vector of double must be given as default vector!
BIAS::Vector< double > * AddParamVecDbl (const std::string &name, const std::string &help, const std::string &deflt, char cmdshort=0, int Group=GRP_NOSHOW)
 The same as above, but default is given by a string, syntax is as at command line "v_0 v_1 v_2", don't set empty string, cause the length is determined also by the number of values.
BIAS::Vector< int > * AddParamVecInt (const std::string &name, const std::string &help, const BIAS::Vector< int > &deflt, char cmdshort=0, int Group=GRP_NOSHOW)
 Add a parameter that expects a string on command line like "<value0> <value1> <value2> ..."
A vector of integer must be given a default vector!
BIAS::Vector< int > * AddParamVecInt (const std::string &name, const std::string &help, const std::string &deflt, char cmdshort=0, int Group=GRP_NOSHOW)
 The same as other AddParamVecInt(), but default is given by a string, syntax is as at command line "v_0 v_1 v_2".
void CheckerboardSelected (std::vector< BIAS::HomgPoint2D > &corners, bool bOnlyFourPointsGiven, bool valid=true)
 this function should be overloaded
bool CheckParam (const std::string &name)
 Check if parameter has already been added.
void ClearAllParams ()
 empties internal datastructures
 ClickCornersFrame (const wxString &title, const wxPoint &pos, const wxSize &size)
bool DebugLevelIsSet (const long int lv) const
bool DebugLevelIsSet (const std::string &name) const
void DisableDestructorWarning ()
 Uses this just before end of your program to avoid error from destructor.
int GetDebugLevel () const
std::ostream & GetDebugStream () const
void GetDebugStream (std::ostream &os) const
int GetFreeGroupID ()
 returns unused group id
int GetGroupID (const std::string &name)
 returns group id of parameter with name
int GetGroupIDForGroupName (const std::string &name)
std::string GetGroupName (const int group_id)
 gets the name of a group
bool * GetParamBool (const std::string &name) const
bool * GetParamBoolByIndex (const int i) const
 Get a Param-value by Index.
double * GetParamDouble (const std::string &name) const
double * GetParamDoubleByIndex (const int i) const
 Get a Param-value by Index.
int * GetParamEnum (const std::string &name) const
int * GetParamInt (const std::string &name) const
int * GetParamIntByIndex (const int i) const
 Get a Param-value by Index.
std::string * GetParamString (const std::string &name) const
std::string * GetParamStringByIndex (const int i) const
 Get a Param-value by Index.
BIAS::Vector< double > * GetParamVecDbl (const std::string &name) const
BIAS::Vector< int > * GetParamVecInt (const std::string &name) const
int GetSizeOfLongestParamName ()
 returns the size of the longest param name not marked as enhanced or hidden
int GetSizeOfLongestParamValueString ()
 returns the size of the longest param value string not marked as enhanced or hidden
bool GetWriteFlag ()
void HandleImage ()
int Init (int argc, char *argv[])
bool IsUsedGroupID (const int group_id)
 returns if the group id is used
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel
void OnHelp (wxCommandEvent &event)
void OnInvalid (wxCommandEvent &event)
void OnNext (wxCommandEvent &event)
void OnPrev (wxCommandEvent &event)
void OnRescaleImage (wxSpinEvent &event)
void OnSave (wxCommandEvent &event)
int ParseCommandLine (int &argc, char *argv[])
 scan command line arguments for valid parameters
void PrintDebugLevel (std::ostream &os=std::cout) const
int ReadParameter (const std::string &filename)
 read values for parameters from file
int ReadParameterXML (const std::string &filename)
 read values for parameters from xml-file
int RegisterCallbackObject (const std::string &name, ParamCallbackInterface *obj)
void RemoveDebugLevel (const long int lv)
void RemoveDebugLevel (const std::string &name)
void SetDebugLevel (const long int lv)
void SetDebugLevel (const std::string &name)
void SetDebugStream (const std::ostream &os)
void SetDefaults ()
 sets all entries to their initially (AddParam) given default values
int SetEnhancedFlag (const std::string &name, bool enhanced)
 if a parametr is marked as enhanced, it is hidden from the naive user
int SetGroupName (const int group_id, const std::string &name)
 sets the name for a group
int SetHiddenFlag (const std::string &name, bool hidden)
 if a parametr is marked as hidden, it is obsolete and hidden for all users, use this for parameters overwritten by caller class
bool * SetParamBool (const std::string &name, const bool &value)
double * SetParamDouble (const std::string &name, const double &value)
int * SetParamEnum (const std::string &name, const int &value)
 set the enum to the ID 'value'
int * SetParamEnum (const std::string &name, const std::string &value)
 set the enum to the ID corresponding to the string 'value'
int SetParameterWriteToFile (const std::string &name, bool writeToFile)
int * SetParamInt (const std::string &name, const int &value)
std::string * SetParamString (const std::string &name, const std::string &value)
BIAS::Vector< double > * SetParamVecDbl (const std::string &name, const BIAS::Vector< double > &value)
BIAS::Vector< int > * SetParamVecInt (const std::string &name, const BIAS::Vector< int > &value)
virtual int SetRangeInt (const std::string &name, const int min, const int max)
 Set [Min,Max] as new range, especially usefull in derived class PramGUI.
int SetShortCommand (const std::string &name, const char cmd)
 Add a short commandline switch to an existing parameter.
void SetWriteOptions (bool indent, bool comments, bool enhanced)
void ShowData (std::ostream &os=std::cout, int grp=GRP_ALL, bool showenhanced=true)
 print all data in group grp including current values to os if grp = GRP_ALL, print all values if showenhanced = false, parameters marked as enhanced are not shown
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels
void ShowText (const string text, int slot)
std::vector< int > UniqueSortedGroups ()
 Returns a vector of all group IDs (unique) in ascending order.
int UpdateParameter (int &argc, char *argv[], const std::string &default_filename)
 update all arguments from command line and parameter file 1.
void Usage (std::ostream &os=std::cout)
 print Help-Information to stdout
void Usage ()
void Write ()
int WriteParameter (const std::string &filename)
 store complete set of parameter in file if write_comments is set, alo the help strings are written to the file if show_enhanced is set, also parameters marked as enhanced are written
int WriteParameterXML (const std::string &filename)
int WriteRunMe (const std::string &filename)
 writes complete command line including program name and unknown command line options, no defaults, no params read from file
virtual ~ClickCornersFrame ()

Static Public Member Functions

static long int GetGlobalDebugLevel ()
static int ParseListFile (const std::string &ListFileName, std::vector< std::string > &LinesInFile)
 Extracts lines from passed file.
static void SetGlobalDebugLevel (long int lev)

Protected Member Functions

long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel
std::map< const std::string,
BIAS::ParamTypeBase * > & 
GetParamMap ()
const std::map< const
std::string,
BIAS::ParamTypeBase * > & 
GetParamMap () const

Protected Attributes

long int _liDebugLevel
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class
std::map< std::string, long int > _String2Debuglevel
vector< vector
< BIAS::HomgPoint2D > > 
allCoords_
std::vector< std::string > ArgV_
vector< bool > bImageDone_
bool bWriteDebug_
int colorDepth_
int corners_
bool DestructorWarning_
std::vector< std::string > fileNames_
double fRescaleImageFactor_
std::vector< std::string > GroupNames_
BIAS::ImageCanvasCheckerboardExtractic_
unsigned int imageNumber_
struct optionlongopts
string MatlabFilename_
BIAS::Rescale< unsigned char,
unsigned char > 
rescaler_
wxFlexGridSizer * Sizer_
bool WriteComments_
bool WriteEnhanced_
bool WriteFlagSet_
bool WriteIndent_

Static Protected Attributes

static std::ostream _zDebugStream
static long int GlobalDebugLevel = 0

Detailed Description

is derived from wxFrame, ICECCallBackInterface

Definition at line 83 of file biasClickImageCornersWx.cpp.


Constructor & Destructor Documentation

ClickCornersFrame::ClickCornersFrame ( const wxString &  title,
const wxPoint &  pos,
const wxSize &  size 
)
ClickCornersFrame::~ClickCornersFrame ( ) [virtual]

Definition at line 198 of file biasClickImageCornersWx.cpp.

References ic_, and Sizer_.


Member Function Documentation

void BIAS::Debug::AddDebugLevel ( const long int  lv) [inline, inherited]
void BIAS::Debug::AddDebugLevel ( const std::string &  name) [inline, inherited]

Definition at line 363 of file Debug.hh.

bool * Param::AddParamBool ( const std::string &  name,
const std::string &  help,
bool  deflt = false,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]
double * Param::AddParamDouble ( const std::string &  name,
const std::string &  help,
double  deflt = 0.0,
double  min = -DBL_MAX,
double  max = DBL_MAX,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]
int * Param::AddParamEnum ( const std::string &  name,
const std::string &  help,
const std::vector< std::string > &  enums,
const int  deflt = 0,
const std::vector< int > *  IDs = NULL,
const char  cmdshort = 0,
const int  Group = GRP_NOSHOW 
) [inherited]
Parameters:
enumsholds all enumeration names.
IDscan be a pointer to a vector of integers. It must have the same size as 'enums' and gives each name a number, which must be unique! If NULL the enums are numbered from 0 to enums.size()-1
Author:
mdunda 03 2004
Examples:
ExampleAbsoluteOrientation.cpp, ExampleCylinderMapping.cpp, ExampleParam.cpp, and ExampleRectification.cpp.

Definition at line 468 of file Param.cpp.

References BIAS::ParamTypeEnum::default_, BIAS::ParamTypeBase::Group_, BIAS::ParamTypeBase::Help_, BIAS::ParamTypeEnum::Map_, BIAS::ParamTypeBase::Name_, BIAS::ParamTypeBase::ShortCmd_, BIAS::ParamTypeEnum::value_, and BIAS::ParamTypeBase::WriteToFile_.

int * Param::AddParamInt ( const std::string &  name,
const std::string &  help,
int  deflt = 0,
int  min = std::numeric_limits<int>::min(),
int  max = std::numeric_limits<int>::max(),
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

For all adding routines:

Parameters:
nameis the unique identifier of the parameter
helpis a help or 'tooltip' string for that parameter
defltis a default value for that parameter. Note that not every parameter type has a default at compile time!
cmdshortis a short command option for the command line
Groupis a number to group some parameters for visualization, e.g. all matchers are in group 1, all trackers are in group 37 etc. When printing to screen, you can limit the output to a group of interest. The default is 0 - no special group.
Author:
mdunda 03 2004
Examples:
ExampleAbsoluteOrientation.cpp, ExampleAutoCalib.cpp, ExampleBlobDetectorLevelSet.cpp, ExampleCannyEdge.cpp, ExampleColorNCC.cpp, ExampleMDCamToShm.cpp, ExampleMultisampleBlit.cpp, ExampleParam.cpp, ExamplePlainPerPixelProcessing.cpp, ExampleProjectionMapping.cpp, ExamplePyramidImage.cpp, ParamGUISample1.cpp, ParamGUISample2.cpp, ParamGUISample3.cpp, and ProjectionError.cpp.

Definition at line 276 of file Param.cpp.

References BIAS::ParamTypeInt::default_, BIAS::ParamTypeBase::Group_, BIAS::ParamTypeBase::Help_, BIAS::ParamTypeInt::max_, BIAS::ParamTypeInt::min_, BIAS::ParamTypeBase::Name_, BIAS::ParamTypeBase::ShortCmd_, BIAS::ParamTypeInt::value_, and BIAS::ParamTypeBase::WriteToFile_.

Referenced by BIAS::MatchDataBase::_AddParameter(), BIAS::GenSynthMatches::_AddParameter(), BIAS::GenSynthMatchesRig::AddParameters_(), CheckerBoardExtractFrame::Init(), and Init().

std::string * Param::AddParamString ( const std::string &  name,
const std::string &  help,
std::string  deflt = "",
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]
BIAS::Vector< double > * Param::AddParamVecDbl ( const std::string &  name,
const std::string &  help,
const BIAS::Vector< double > &  deflt,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

Add a parameter that expects a string on command line like "<value0> <value1> <value2> ..."
A vector of double must be given as default vector!

Examples:
ExampleCameraPath2Vrml.cpp, ExampleColorNCC.cpp, ExampleParam.cpp, and ExampleProjectionMapping.cpp.

Definition at line 378 of file Param.cpp.

References BIAS::ParamTypeVecDbl::default_, BIAS::ParamTypeBase::Group_, BIAS::ParamTypeBase::Help_, BIAS::ParamTypeBase::Name_, BIAS::ParamTypeBase::ShortCmd_, BIAS::ParamTypeVecDbl::value_, and BIAS::ParamTypeBase::WriteToFile_.

Referenced by BIAS::GenSynthMatches::_AddParameter().

BIAS::Vector< double > * Param::AddParamVecDbl ( const std::string &  name,
const std::string &  help,
const std::string &  deflt,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

The same as above, but default is given by a string, syntax is as at command line "v_0 v_1 v_2", don't set empty string, cause the length is determined also by the number of values.

Author:
Daniel Grest, July 2005

Definition at line 401 of file Param.cpp.

References TNT::Vector< T >::newsize().

BIAS::Vector< int > * Param::AddParamVecInt ( const std::string &  name,
const std::string &  help,
const std::string &  deflt,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

The same as other AddParamVecInt(), but default is given by a string, syntax is as at command line "v_0 v_1 v_2".

Don't set empty string, cause the length is determined also by the number of values

Author:
Daniel Grest, July 2005

Definition at line 446 of file Param.cpp.

References TNT::Vector< T >::newsize().

BIAS::Vector< int > * Param::AddParamVecInt ( const std::string &  name,
const std::string &  help,
const BIAS::Vector< int > &  deflt,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

Add a parameter that expects a string on command line like "<value0> <value1> <value2> ..."
A vector of integer must be given a default vector!

Examples:
ExampleBlobDetectorLevelSet.cpp, and ExampleParam.cpp.

Definition at line 423 of file Param.cpp.

References BIAS::ParamTypeVecInt::default_, BIAS::ParamTypeBase::Group_, BIAS::ParamTypeBase::Help_, BIAS::ParamTypeBase::Name_, BIAS::ParamTypeBase::ShortCmd_, BIAS::ParamTypeVecInt::value_, and BIAS::ParamTypeBase::WriteToFile_.

void ClickCornersFrame::CheckerboardSelected ( std::vector< BIAS::HomgPoint2D > &  corners,
bool  bOnlyFourPointsGiven,
bool  valid = true 
) [virtual]

this function should be overloaded

Reimplemented from BIAS::ICECCallbackInterface.

Definition at line 358 of file biasClickImageCornersWx.cpp.

References allCoords_, bImageDone_, fRescaleImageFactor_, imageNumber_, and ShowText().

Referenced by OnInvalid().

bool Param::CheckParam ( const std::string &  name) [inherited]

Check if parameter has already been added.

Examples:
ExampleColorNCC.cpp.

Definition at line 527 of file Param.cpp.

Referenced by BIAS::MatchDataBase::_AddParameter(), BIAS::GenSynthMatches::_AddParameter(), and BIAS::GenSynthMatchesRig::AddParameters_().

void Param::ClearAllParams ( ) [inherited]

empties internal datastructures

Definition at line 1899 of file Param.cpp.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( ) [inline, protected, inherited]

returns the next available debuglevel

Author:
woelk 09/2006

Definition at line 522 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const [inline, inherited]
bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const [inline, inherited]

Definition at line 351 of file Debug.hh.

void BIAS::Param::DisableDestructorWarning ( ) [inline, inherited]

Uses this just before end of your program to avoid error from destructor.

Author:
evers
Examples:
ExampleColorNCC.cpp, ExampleCylinderMapping.cpp, ExampleGenSynthMatches.cpp, ExampleGenSynthMatchesRig.cpp, ExampleMDCamToShm.cpp, ExamplePyramidImage.cpp, and ExampleTrackerBase.cpp.

Definition at line 513 of file Param.hh.

int BIAS::Debug::GetDebugLevel ( ) const [inline, inherited]
std::ostream& BIAS::Debug::GetDebugStream ( ) const [inline, inherited]

Definition at line 406 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const [inline, inherited]

Definition at line 415 of file Debug.hh.

int Param::GetFreeGroupID ( ) [inherited]
static long int BIAS::Debug::GetGlobalDebugLevel ( ) [inline, static, inherited]

Definition at line 432 of file Debug.hh.

int Param::GetGroupID ( const std::string &  name) [inherited]

returns group id of parameter with name

Author:
woelk

Definition at line 1430 of file Param.cpp.

Referenced by BIAS::MatchDataBase::_AddParameter(), BIAS::GenSynthMatches::_AddParameter(), and BIAS::GenSynthMatchesRig::AddParameters_().

int Param::GetGroupIDForGroupName ( const std::string &  name) [inherited]
Author:
evers

Definition at line 1440 of file Param.cpp.

std::string Param::GetGroupName ( const int  group_id) [inherited]

gets the name of a group

Author:
woelk

Definition at line 1465 of file Param.cpp.

Referenced by BIAS::ParamGUI::GetNotebook().

bool * Param::GetParamBool ( const std::string &  name) const [inherited]
bool * Param::GetParamBoolByIndex ( const int  i) const [inherited]

Get a Param-value by Index.

Running-time is O(n). Grouping and other features are unsupported by this function.

Author:
Stefan Goerrissen, 09/2008

Definition at line 576 of file Param.cpp.

double * Param::GetParamDouble ( const std::string &  name) const [inherited]
double * Param::GetParamDoubleByIndex ( const int  i) const [inherited]

Get a Param-value by Index.

Running-time is O(n). Grouping and other features are unsupported by this function.

Author:
Stefan Goerrissen, 09/2008

Definition at line 555 of file Param.cpp.

int * Param::GetParamEnum ( const std::string &  name) const [inherited]
Examples:
ExampleCylinderMapping.cpp.

Definition at line 712 of file Param.cpp.

int * Param::GetParamInt ( const std::string &  name) const [inherited]
int * Param::GetParamIntByIndex ( const int  i) const [inherited]

Get a Param-value by Index.

Running-time is O(n). Grouping and other features are unsupported by this function.

Author:
Stefan Goerrissen, 09/2008

Definition at line 534 of file Param.cpp.

std::map< const std::string, BIAS::ParamTypeBase * > & Param::GetParamMap ( ) [protected, inherited]

Definition at line 1885 of file Param.cpp.

Referenced by BIAS::ParamGUI::GetPanel().

const std::map< const std::string, BIAS::ParamTypeBase * > & Param::GetParamMap ( ) const [protected, inherited]

Definition at line 1891 of file Param.cpp.

std::string * Param::GetParamString ( const std::string &  name) const [inherited]
std::string * Param::GetParamStringByIndex ( const int  i) const [inherited]

Get a Param-value by Index.

Running-time is O(n). Grouping and other features are unsupported by this function.

Author:
Stefan Goerrissen, 09/2008

Definition at line 597 of file Param.cpp.

BIAS::Vector< double > * Param::GetParamVecDbl ( const std::string &  name) const [inherited]
BIAS::Vector< int > * Param::GetParamVecInt ( const std::string &  name) const [inherited]
Examples:
ExampleBlobDetectorLevelSet.cpp.

Definition at line 696 of file Param.cpp.

int Param::GetSizeOfLongestParamName ( ) [inherited]

returns the size of the longest param name not marked as enhanced or hidden

Author:
woelk 10/2004

Definition at line 1502 of file Param.cpp.

int Param::GetSizeOfLongestParamValueString ( ) [inherited]

returns the size of the longest param value string not marked as enhanced or hidden

Author:
woelk 10/2004

Definition at line 1516 of file Param.cpp.

bool BIAS::Param::GetWriteFlag ( ) [inline, inherited]

Definition at line 383 of file Param.hh.

void ClickCornersFrame::HandleImage ( )
int ClickCornersFrame::Init ( int  argc,
char *  argv[] 
)
bool Param::IsUsedGroupID ( const int  group_id) [inherited]

returns if the group id is used

Author:
woelk

Definition at line 1496 of file Param.cpp.

Referenced by BIAS::GenSynthMatches::_AddParameter(), and BIAS::GenSynthMatchesRig::AddParameters_().

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const [inline, inherited]

looks up a debuglevel in the internal map, returns 0 if not found

Author:
woelk 09/2006

Definition at line 455 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name) [inline, inherited]
void ClickCornersFrame::OnHelp ( wxCommandEvent &  event)

Definition at line 246 of file biasClickImageCornersWx.cpp.

void ClickCornersFrame::OnInvalid ( wxCommandEvent &  event)

Definition at line 233 of file biasClickImageCornersWx.cpp.

References CheckerboardSelected().

void ClickCornersFrame::OnNext ( wxCommandEvent &  event)
void ClickCornersFrame::OnPrev ( wxCommandEvent &  event)

Definition at line 223 of file biasClickImageCornersWx.cpp.

References bImageDone_, HandleImage(), imageNumber_, and ShowText().

void ClickCornersFrame::OnRescaleImage ( wxSpinEvent &  event)

Definition at line 255 of file biasClickImageCornersWx.cpp.

References fRescaleImageFactor_, and HandleImage().

void ClickCornersFrame::OnSave ( wxCommandEvent &  event)

Definition at line 241 of file biasClickImageCornersWx.cpp.

References Write().

int Param::ParseCommandLine ( int &  argc,
char *  argv[] 
) [inherited]

scan command line arguments for valid parameters

argv is reordered according to getopt() all no recognized arguments are at the end. Return value is optind from getopt(), the index of the next not recognized argument. Sometimes, the function however returns negative values. ?

Todo:
document concept of return value of ParseCommandLine Reads parameter from file if argument --readconfig is given.
Author:
evers

this delete let the program bail out. but it realy should be deleted

Examples:
ExampleAbsoluteOrientation.cpp, ExampleBlobDetectorLevelSet.cpp, ExampleCalcRelativeTransform.cpp, ExampleCameraPath2Vrml.cpp, ExampleColorNCC.cpp, ExampleCylinderMapping.cpp, ExampleGenSynthMatches.cpp, ExampleGenSynthMatchesRig.cpp, ExampleLogPolarMapping.cpp, ExampleMDCamToShm.cpp, ExampleParam.cpp, ExampleProjectionMapping.cpp, ExamplePyramidImage.cpp, ExampleRectification.cpp, ExampleTFT.cpp, ExampleVideoServer.cpp, ParamGUISample2.cpp, and ProjectionError.cpp.

Definition at line 1028 of file Param.cpp.

References option::has_arg, and option::name.

Referenced by BIAS::IOUtils::ParseCommandLineEvalHelp().

int Param::ParseListFile ( const std::string &  ListFileName,
std::vector< std::string > &  LinesInFile 
) [static, inherited]

Extracts lines from passed file.

The specified file is expected to contain a list of entries. Those entries are assumed to be seperated by newlines.

Parameters:
ListFileNameRoutine tries to open file with this name.
LinesInFileresult of line extraction.
Returns:
-1 if file could not be opened.
0 all good.
Examples:
ExampleMixtureOfGaussians.cpp.

Definition at line 1853 of file Param.cpp.

Referenced by CheckerBoardExtractFrame::Init(), Init(), BIAS::IOUtils::LoadImageList(), BIAS::BVWXMainFrame::LoadImages(), and BIAS::ExampleMixtureOfGaussians::OnInit().

void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const [inline, inherited]

Definition at line 384 of file Debug.hh.

int Param::ReadParameter ( const std::string &  filename) [inherited]

read values for parameters from file

Examples:
ExampleAutoCalib.cpp, ExampleGenSynthMatches.cpp, ExampleGenSynthMatchesRig.cpp, and ExampleTFT.cpp.

Definition at line 1219 of file Param.cpp.

int Param::ReadParameterXML ( const std::string &  filename) [inherited]
int Param::RegisterCallbackObject ( const std::string &  name,
ParamCallbackInterface obj 
) [inherited]
Author:
evers
Examples:
ParamGUISample1.cpp, and ParamGUISample3.cpp.

Definition at line 1813 of file Param.cpp.

void BIAS::Debug::RemoveDebugLevel ( const long int  lv) [inline, inherited]

Definition at line 370 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name) [inline, inherited]

Definition at line 377 of file Debug.hh.

void BIAS::Debug::SetDebugLevel ( const long int  lv) [inline, inherited]
void BIAS::Debug::SetDebugLevel ( const std::string &  name) [inline, inherited]

Definition at line 326 of file Debug.hh.

void BIAS::Debug::SetDebugStream ( const std::ostream &  os) [inline, inherited]

Definition at line 399 of file Debug.hh.

void Param::SetDefaults ( ) [inherited]

sets all entries to their initially (AddParam) given default values

Definition at line 1806 of file Param.cpp.

int Param::SetEnhancedFlag ( const std::string &  name,
bool  enhanced 
) [inherited]

if a parametr is marked as enhanced, it is hidden from the naive user

Definition at line 957 of file Param.cpp.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev) [inline, static, inherited]

Definition at line 425 of file Debug.hh.

int Param::SetGroupName ( const int  group_id,
const std::string &  name 
) [inherited]
int Param::SetHiddenFlag ( const std::string &  name,
bool  hidden 
) [inherited]

if a parametr is marked as hidden, it is obsolete and hidden for all users, use this for parameters overwritten by caller class

Definition at line 970 of file Param.cpp.

bool * Param::SetParamBool ( const std::string &  name,
const bool &  value 
) [inherited]

Definition at line 757 of file Param.cpp.

double * Param::SetParamDouble ( const std::string &  name,
const double &  value 
) [inherited]

Definition at line 802 of file Param.cpp.

int * Param::SetParamEnum ( const std::string &  name,
const std::string &  value 
) [inherited]

set the enum to the ID corresponding to the string 'value'

Definition at line 890 of file Param.cpp.

int * Param::SetParamEnum ( const std::string &  name,
const int &  value 
) [inherited]

set the enum to the ID 'value'

Definition at line 917 of file Param.cpp.

int Param::SetParameterWriteToFile ( const std::string &  name,
bool  writeToFile 
) [inherited]

Definition at line 944 of file Param.cpp.

int * Param::SetParamInt ( const std::string &  name,
const int &  value 
) [inherited]

Definition at line 729 of file Param.cpp.

std::string * Param::SetParamString ( const std::string &  name,
const std::string &  value 
) [inherited]

Definition at line 779 of file Param.cpp.

BIAS::Vector< double > * Param::SetParamVecDbl ( const std::string &  name,
const BIAS::Vector< double > &  value 
) [inherited]

Definition at line 830 of file Param.cpp.

BIAS::Vector< int > * Param::SetParamVecInt ( const std::string &  name,
const BIAS::Vector< int > &  value 
) [inherited]

Definition at line 860 of file Param.cpp.

int Param::SetRangeInt ( const std::string &  name,
const int  min,
const int  max 
) [virtual, inherited]

Set [Min,Max] as new range, especially usefull in derived class PramGUI.

Definition at line 1825 of file Param.cpp.

References BIAS::ParamTypeInt::max_, and BIAS::ParamTypeInt::min_.

int Param::SetShortCommand ( const std::string &  name,
const char  cmd 
) [inherited]

Add a short commandline switch to an existing parameter.

Useful for readconfig/writeconfig.

Author:
evers
Examples:
ExampleVideoServer.cpp.

Definition at line 1841 of file Param.cpp.

void BIAS::Param::SetWriteOptions ( bool  indent,
bool  comments,
bool  enhanced 
) [inline, inherited]
void Param::ShowData ( std::ostream &  os = std::cout,
int  grp = GRP_ALL,
bool  showenhanced = true 
) [inherited]

print all data in group grp including current values to os if grp = GRP_ALL, print all values if showenhanced = false, parameters marked as enhanced are not shown

Examples:
ExampleAutoCalib.cpp, and ExampleParam.cpp.

Definition at line 121 of file Param.cpp.

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const [inline, inherited]

prints all internally known debuglevels

Author:
woelk 09/2006

Definition at line 497 of file Debug.hh.

void ClickCornersFrame::ShowText ( const string  text,
int  slot 
)

Definition at line 406 of file biasClickImageCornersWx.cpp.

Referenced by CheckerboardSelected(), OnNext(), and OnPrev().

vector< int > Param::UniqueSortedGroups ( ) [inherited]

Returns a vector of all group IDs (unique) in ascending order.

Only parameters are with WriteToFile_ = true are considered.

Author:
woelk 03 2004

Definition at line 1483 of file Param.cpp.

Referenced by BIAS::ParamGUI::GetNotebook().

int Param::UpdateParameter ( int &  argc,
char *  argv[],
const std::string &  default_filename 
) [inherited]

update all arguments from command line and parameter file 1.

reads parameter from default file 2. if --readconfig is given on commandline, reads parameter from this file 3. evaluates parameter given on command line

Command line arguments take precedence over arguments from parameter file. Parameter from parameter file specified with --readconfig=fname take precedencor over parameter read from default_filename. If no parameterfile is found, the defaults are written to default_name.

Author:
woelk 09/2004
Examples:
ExampleTrackerBase.cpp.

Definition at line 985 of file Param.cpp.

Referenced by CheckerBoardExtractFrame::Init(), and Init().

void ClickCornersFrame::Usage ( )

Definition at line 262 of file biasClickImageCornersWx.cpp.

Referenced by BIAS::ClickImageCornersApp::OnInit().

void Param::Usage ( std::ostream &  os = std::cout) [inherited]
void ClickCornersFrame::Write ( )

Definition at line 377 of file biasClickImageCornersWx.cpp.

References allCoords_.

Referenced by OnSave().

int Param::WriteParameter ( const std::string &  filename) [inherited]

store complete set of parameter in file if write_comments is set, alo the help strings are written to the file if show_enhanced is set, also parameters marked as enhanced are written

Author:
??
Examples:
ExampleAutoCalib.cpp, ExampleGenSynthMatches.cpp, ExampleGenSynthMatchesRig.cpp, and ExampleTFT.cpp.

Definition at line 1531 of file Param.cpp.

int Param::WriteParameterXML ( const std::string &  filename) [inherited]
int Param::WriteRunMe ( const std::string &  filename) [inherited]

writes complete command line including program name and unknown command line options, no defaults, no params read from file

Definition at line 1773 of file Param.cpp.


Member Data Documentation

long int BIAS::Debug::_liDebugLevel [protected, inherited]

Definition at line 511 of file Debug.hh.

Referenced by BIAS::ImageBase::operator=(), and BIAS::Debug::operator=().

long int BIAS::Debug::_liNextDebugLevel [protected, inherited]

new concept, debuglevel are managed here in the debug class

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel [protected, inherited]

Definition at line 518 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream [static, protected, inherited]

Definition at line 512 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

Definition at line 114 of file biasClickImageCornersWx.cpp.

Referenced by CheckerboardSelected(), HandleImage(), Init(), and Write().

std::vector<std::string> BIAS::Param::ArgV_ [protected, inherited]

Definition at line 547 of file Param.hh.

vector<bool> BIAS::ClickCornersFrame::bImageDone_ [protected]

Definition at line 115 of file biasClickImageCornersWx.cpp.

Referenced by CheckerboardSelected(), HandleImage(), Init(), OnNext(), and OnPrev().

Definition at line 112 of file biasClickImageCornersWx.cpp.

Referenced by Init().

Definition at line 111 of file biasClickImageCornersWx.cpp.

Referenced by HandleImage(), and Init().

Definition at line 110 of file biasClickImageCornersWx.cpp.

Referenced by HandleImage(), and Init().

bool BIAS::Param::DestructorWarning_ [protected, inherited]

Definition at line 550 of file Param.hh.

std::vector<std::string> BIAS::ClickCornersFrame::fileNames_ [protected]

Definition at line 113 of file biasClickImageCornersWx.cpp.

Referenced by HandleImage(), Init(), and OnNext().

long int BIAS::Debug::GlobalDebugLevel = 0 [static, protected, inherited]

Definition at line 514 of file Debug.hh.

std::vector<std::string> BIAS::Param::GroupNames_ [protected, inherited]

Definition at line 548 of file Param.hh.

Referenced by BIAS::ParamGUI::GetNotebook().

unsigned int BIAS::ClickCornersFrame::imageNumber_ [protected]

Definition at line 117 of file biasClickImageCornersWx.cpp.

Referenced by CheckerboardSelected(), HandleImage(), Init(), OnNext(), and OnPrev().

struct option* BIAS::Param::longopts [protected, inherited]

Definition at line 549 of file Param.hh.

Definition at line 108 of file biasClickImageCornersWx.cpp.

Referenced by Init().

BIAS::Rescale<unsigned char, unsigned char> BIAS::ClickCornersFrame::rescaler_ [protected]

Definition at line 107 of file biasClickImageCornersWx.cpp.

Referenced by HandleImage().

wxFlexGridSizer* BIAS::ClickCornersFrame::Sizer_ [protected]

Definition at line 118 of file biasClickImageCornersWx.cpp.

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

bool BIAS::Param::WriteComments_ [protected, inherited]

Definition at line 553 of file Param.hh.

bool BIAS::Param::WriteEnhanced_ [protected, inherited]

Definition at line 554 of file Param.hh.

bool BIAS::Param::WriteFlagSet_ [protected, inherited]

Definition at line 555 of file Param.hh.

bool BIAS::Param::WriteIndent_ [protected, inherited]

Definition at line 552 of file Param.hh.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends