Drop cv:: prefix from cv::String used inside the cv namespace
This commit is contained in:
@@ -626,7 +626,7 @@ void RandomizedTree::write(std::ostream &os) const
|
||||
}
|
||||
|
||||
|
||||
void RandomizedTree::savePosteriors(cv::String url, bool append)
|
||||
void RandomizedTree::savePosteriors(String url, bool append)
|
||||
{
|
||||
std::ofstream file(url.c_str(), (append?std::ios::app:std::ios::out));
|
||||
for (int i=0; i<num_leaves_; i++) {
|
||||
@@ -641,7 +641,7 @@ void RandomizedTree::savePosteriors(cv::String url, bool append)
|
||||
file.close();
|
||||
}
|
||||
|
||||
void RandomizedTree::savePosteriors2(cv::String url, bool append)
|
||||
void RandomizedTree::savePosteriors2(String url, bool append)
|
||||
{
|
||||
std::ofstream file(url.c_str(), (append?std::ios::app:std::ios::out));
|
||||
for (int i=0; i<num_leaves_; i++) {
|
||||
@@ -915,7 +915,7 @@ printf("RTreeClassifier::write: num_quant_bits_=%i\n", num_quant_bits_);
|
||||
tree_it->write(os);
|
||||
}
|
||||
|
||||
void RTreeClassifier::saveAllFloatPosteriors(cv::String url)
|
||||
void RTreeClassifier::saveAllFloatPosteriors(String url)
|
||||
{
|
||||
printf("[DEBUG] writing all float posteriors to %s...\n", url.c_str());
|
||||
for (int i=0; i<(int)trees_.size(); ++i)
|
||||
@@ -923,7 +923,7 @@ void RTreeClassifier::saveAllFloatPosteriors(cv::String url)
|
||||
printf("[DEBUG] done\n");
|
||||
}
|
||||
|
||||
void RTreeClassifier::saveAllBytePosteriors(cv::String url)
|
||||
void RTreeClassifier::saveAllBytePosteriors(String url)
|
||||
{
|
||||
printf("[DEBUG] writing all byte posteriors to %s...\n", url.c_str());
|
||||
for (int i=0; i<(int)trees_.size(); ++i)
|
||||
@@ -932,7 +932,7 @@ void RTreeClassifier::saveAllBytePosteriors(cv::String url)
|
||||
}
|
||||
|
||||
|
||||
void RTreeClassifier::setFloatPosteriorsFromTextfile_176(cv::String url)
|
||||
void RTreeClassifier::setFloatPosteriorsFromTextfile_176(String url)
|
||||
{
|
||||
std::ifstream ifs(url.c_str());
|
||||
|
||||
|
@@ -465,7 +465,7 @@ namespace cv{
|
||||
|
||||
void OneWayDescriptor::Initialize(int pose_count, IplImage* frontal, const char* feature_name, int norm)
|
||||
{
|
||||
m_feature_name = cv::String(feature_name);
|
||||
m_feature_name = String(feature_name);
|
||||
CvRect roi = cvGetImageROI(frontal);
|
||||
m_center = rect_center(roi);
|
||||
|
||||
@@ -482,7 +482,7 @@ namespace cv{
|
||||
Initialize(pose_count, frontal, feature_name, 1);
|
||||
return;
|
||||
}
|
||||
m_feature_name = cv::String(feature_name);
|
||||
m_feature_name = String(feature_name);
|
||||
CvRect roi = cvGetImageROI(frontal);
|
||||
m_center = rect_center(roi);
|
||||
|
||||
@@ -1287,8 +1287,8 @@ namespace cv{
|
||||
|
||||
}
|
||||
|
||||
OneWayDescriptorBase::OneWayDescriptorBase(CvSize patch_size, int pose_count, const cv::String &pca_filename,
|
||||
const cv::String &train_path, const cv::String &images_list, float _scale_min, float _scale_max,
|
||||
OneWayDescriptorBase::OneWayDescriptorBase(CvSize patch_size, int pose_count, const String &pca_filename,
|
||||
const String &train_path, const String &images_list, float _scale_min, float _scale_max,
|
||||
float _scale_step, int pyr_levels,
|
||||
int pca_dim_high, int pca_dim_low)
|
||||
: m_pca_dim_high(pca_dim_high), m_pca_dim_low(pca_dim_low), scale_min(_scale_min), scale_max(_scale_max), scale_step(_scale_step)
|
||||
@@ -2080,8 +2080,8 @@ namespace cv{
|
||||
m_part_id = 0;
|
||||
}
|
||||
|
||||
OneWayDescriptorObject::OneWayDescriptorObject(CvSize patch_size, int pose_count, const cv::String &pca_filename,
|
||||
const cv::String &train_path, const cv::String &images_list, float _scale_min, float _scale_max, float _scale_step, int pyr_levels) :
|
||||
OneWayDescriptorObject::OneWayDescriptorObject(CvSize patch_size, int pose_count, const String &pca_filename,
|
||||
const String &train_path, const String &images_list, float _scale_min, float _scale_max, float _scale_step, int pyr_levels) :
|
||||
OneWayDescriptorBase(patch_size, pose_count, pca_filename, train_path, images_list, _scale_min, _scale_max, _scale_step, pyr_levels)
|
||||
{
|
||||
m_part_id = 0;
|
||||
@@ -2145,7 +2145,7 @@ namespace cv{
|
||||
|
||||
void readPCAFeatures(const FileNode &fn, CvMat** avg, CvMat** eigenvectors, const char* postfix)
|
||||
{
|
||||
cv::String str = cv::String ("avg") + postfix;
|
||||
String str = String ("avg") + postfix;
|
||||
CvMat* _avg = reinterpret_cast<CvMat*> (fn[str].readObj());
|
||||
if (_avg != 0)
|
||||
{
|
||||
@@ -2153,7 +2153,7 @@ namespace cv{
|
||||
cvReleaseMat(&_avg);
|
||||
}
|
||||
|
||||
str = cv::String ("eigenvectors") + postfix;
|
||||
str = String ("eigenvectors") + postfix;
|
||||
CvMat* _eigenvectors = reinterpret_cast<CvMat*> (fn[str].readObj());
|
||||
if (_eigenvectors != 0)
|
||||
{
|
||||
@@ -2166,8 +2166,8 @@ namespace cv{
|
||||
* OneWayDescriptorMatcher *
|
||||
\****************************************************************************************/
|
||||
|
||||
OneWayDescriptorMatcher::Params::Params( int _poseCount, Size _patchSize, cv::String _pcaFilename,
|
||||
cv::String _trainPath, cv::String _trainImagesList,
|
||||
OneWayDescriptorMatcher::Params::Params( int _poseCount, Size _patchSize, String _pcaFilename,
|
||||
String _trainPath, String _trainImagesList,
|
||||
float _minScale, float _maxScale, float _stepScale ) :
|
||||
poseCount(_poseCount), patchSize(_patchSize), pcaFilename(_pcaFilename),
|
||||
trainPath(_trainPath), trainImagesList(_trainImagesList),
|
||||
@@ -2271,7 +2271,7 @@ namespace cv{
|
||||
|
||||
void OneWayDescriptorMatcher::read( const FileNode &fn )
|
||||
{
|
||||
base = new OneWayDescriptorObject( params.patchSize, params.poseCount, cv::String (), cv::String (), cv::String (),
|
||||
base = new OneWayDescriptorObject( params.patchSize, params.poseCount, String (), String (), String (),
|
||||
params.minScale, params.maxScale, params.stepScale );
|
||||
base->Read (fn);
|
||||
}
|
||||
|
@@ -617,7 +617,7 @@ void LDetector::read(const FileNode& objnode)
|
||||
clusteringDistance = (int)objnode["clustering-distance"];
|
||||
}
|
||||
|
||||
void LDetector::write(FileStorage& fs, const cv::String& name) const
|
||||
void LDetector::write(FileStorage& fs, const String& name) const
|
||||
{
|
||||
WriteStructContext ws(fs, name, CV_NODE_MAP);
|
||||
|
||||
@@ -707,7 +707,7 @@ FernClassifier::FernClassifier(const std::vector<std::vector<Point2f> >& points,
|
||||
}
|
||||
|
||||
|
||||
void FernClassifier::write(FileStorage& fs, const cv::String& objname) const
|
||||
void FernClassifier::write(FileStorage& fs, const String& objname) const
|
||||
{
|
||||
WriteStructContext ws(fs, objname, CV_NODE_MAP);
|
||||
|
||||
@@ -1228,7 +1228,7 @@ nstructs(_nstructs), structSize(_structSize), nviews(_nviews),
|
||||
compressionMethod(_compressionMethod), patchGenerator(_patchGenerator)
|
||||
{}
|
||||
|
||||
FernDescriptorMatcher::Params::Params( const cv::String& _filename )
|
||||
FernDescriptorMatcher::Params::Params( const String& _filename )
|
||||
{
|
||||
filename = _filename;
|
||||
}
|
||||
@@ -1476,7 +1476,7 @@ void PlanarObjectDetector::read(const FileNode& node)
|
||||
}
|
||||
|
||||
|
||||
void PlanarObjectDetector::write(FileStorage& fs, const cv::String& objname) const
|
||||
void PlanarObjectDetector::write(FileStorage& fs, const String& objname) const
|
||||
{
|
||||
WriteStructContext ws(fs, objname, CV_NODE_MAP);
|
||||
|
||||
|
Reference in New Issue
Block a user