⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ltkshaperecoconfig.cpp

📁 An open source handwriting recongnition package!!!
💻 CPP
📖 第 1 页 / 共 2 页
字号:
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: getShapeSet
* DESCRIPTION	: returns the shape set to be used for training/recognition
* ARGUMENTS		: 
* RETURNS		: shape set to be used for training/recognition
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
* ************************************************************************************/

const string& LTKShapeRecoConfig::getShapeSet()
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered LTKShapeRecoConfig::getShapeSet"  << endl;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting LTKShapeRecoConfig::getShapeSet with return value " <<
        m_shapeSet  << endl;

	return m_shapeSet;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: getProfile
* DESCRIPTION	: returns the profile to be used for training/recognition
* ARGUMENTS		: 
* RETURNS		: profile to be used for training/recognition
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
*************************************************************************************/

const string& LTKShapeRecoConfig::getProfile()
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered LTKShapeRecoConfig::getProfile"  << endl;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting LTKShapeRecoConfig::getProfile with return value " <<
        m_profile  << endl;

	return m_profile;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: getShapeRecognizerName
* DESCRIPTION	: returns the name of the shape recognizer being used
* ARGUMENTS		: 
* RETURNS		: name of the shape recognizer being used
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
* ************************************************************************************/

const string& LTKShapeRecoConfig::getShapeRecognizerName()
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered LTKShapeRecoConfig::getShapeRecognizerName"  << endl;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting LTKShapeRecoConfig::getShapeRecognizerName with return value " <<
        m_shapeRecognizerName  << endl;

	return m_shapeRecognizerName;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: getNumShapes
* DESCRIPTION	: returns the number of shapes in the recognition problem
* ARGUMENTS		: 
* RETURNS		: number of shapes in the recognition problem
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
* ************************************************************************************/

int LTKShapeRecoConfig::getNumShapes()
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered LTKShapeRecoConfig::getNumShapes"  << endl;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting LTKShapeRecoConfig::getNumShapes with return value " << m_numShapes << endl;

	return m_numShapes;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: setLipiRoot
* DESCRIPTION	: sets the root directory of the lipi tool kit
* ARGUMENTS		: lipiRootStr - root directory of the lipi tool kit
* RETURNS		: SUCCESS on successful set operation
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
* ************************************************************************************/

int LTKShapeRecoConfig::setLipiRoot(const string& lipiRootStr)
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered LTKShapeRecoConfig::setLipiRoot"  << endl;

	this->m_lipiRoot = lipiRootStr;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "m_lipiRoot = " << m_lipiRoot  << endl;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting LTKShapeRecoConfig::setLipiRoot"  << endl;

	return SUCCESS;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: setShapeSet
* DESCRIPTION	: sets the shape set to be used for training/recognition
* ARGUMENTS		: shapeSetStr - shape set to be used for training/recognition
* RETURNS		: SUCCESS on successful set operation
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
*************************************************************************************/

int LTKShapeRecoConfig::setShapeSet(const string& shapeSetStr)
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered LTKShapeRecoConfig::setShapeSet"  << endl;

	this->m_shapeSet = shapeSetStr;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "m_shapeSet = " << m_shapeSet  << endl;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting LTKShapeRecoConfig::setShapeSet"  << endl;

	return SUCCESS;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: setProfile
* DESCRIPTION	: sets the profile to be used for training/recognition
* ARGUMENTS		: profileStr - profile to be used for training/recognition
* RETURNS		: SUCCESS on successful set operation
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
*************************************************************************************/

int LTKShapeRecoConfig::setProfile(const string& profileStr)
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered LTKShapeRecoConfig::setProfile"  << endl;

	this->m_profile = profileStr;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "m_profile = " << m_profile  << endl;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting LTKShapeRecoConfig::setProfile"  << endl;

	return SUCCESS;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: setShapeRecognizerName
* DESCRIPTION	: sets the name of the shape recognizer to be used for training/recognition
* ARGUMENTS		: shapeRecognizerName - name of the shape recognizer to be used for training/recognition
* RETURNS		: SUCCESS on successful set operation
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
* ************************************************************************************/

int LTKShapeRecoConfig::setShapeRecognizerName(const string& shapeRecognizerName)
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered LTKShapeRecoConfig::setShapeRecognizerName"  << endl;

	this->m_shapeRecognizerName = shapeRecognizerName;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "m_shapeRecognizerName = " << m_shapeRecognizerName  << endl;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting LTKShapeRecoConfig::setShapeRecognizerName"  << endl;

	return SUCCESS;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: setNumShapes
* DESCRIPTION	: sets the number of shapes in the recongition problem
* ARGUMENTS		: numShapes - number of shapes in the recongition problem
* RETURNS		: SUCCESS on successful set operation
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
* ************************************************************************************/

int LTKShapeRecoConfig::setNumShapes(int numShapes)
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered LTKShapeRecoConfig::setNumShapes"  << endl;

	this->m_numShapes = numShapes;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "m_numShapes = " << m_numShapes  << endl;

	if(m_numShapes <= 0)
	{
		LOG( LTKLogger::LTK_LOGLEVEL_ERR) <<
            "Invalid value for number of shapes : " << m_numShapes << endl;

		LTKReturnError(EINVALID_NUM_OF_SHAPES)
		//return ECONFIG_FILE_OPEN_ERR; // Error while reading project.cfg 

		//throw LTKException("m_numShapes cannot be less than or equal to zero");
	}

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting LTKShapeRecoConfig::setNumShapes"  << endl;

	return SUCCESS;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: ~LTKShapeRecoConfig
* DESCRIPTION	: destructor
* ARGUMENTS		: 
* RETURNS		: 
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
* ************************************************************************************/

LTKShapeRecoConfig::~LTKShapeRecoConfig()
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Entered destructor of LTKShapeRecoConfig"  << endl;

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<  
        "Exiting destructor of LTKShapeRecoConfig"  << endl;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -