本文整理汇总了C++中ioHandler类的典型用法代码示例。如果您正苦于以下问题:C++ ioHandler类的具体用法?C++ ioHandler怎么用?C++ ioHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ioHandler类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: bool
const bool complete) const
# else
bool homographyEstimatorBase::parameters::writeMS(ioHandler& handler,
const bool complete) const
# endif
{
bool b = true;
if (complete) {
b = handler.writeBegin();
}
if (b) {
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && transformEstimator::parameters::write(handler,false);
# else
bool (transformEstimator::parameters::* p_writeMS)(ioHandler&,const bool) const =
transformEstimator::parameters::writeMS;
b = b && (this->*p_writeMS)(handler,false);
# endif
if (complete) {
b = b && handler.writeEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:30,代码来源:ltiHomographyEstimatorBase.cpp
示例2: bool
const bool complete) const
# else
bool shClassifier::parameters::writeMS(ioHandler& handler,
const bool complete) const
# endif
{
bool b = true;
if (complete) {
b = handler.writeBegin();
}
if (b) {
b=b && lti::write(handler, "numberOfBins",numberOfBins);
b=b && lti::write(handler, "binVector",binVector);
b=b && lti::write(handler, "minimum",minimum);
b=b && lti::write(handler, "maximum",maximum);
b=b && lti::write(handler, "autoBounds", autoBounds);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && supervisedInstanceClassifier::parameters::write(handler,false);
# else
bool (supervisedInstanceClassifier::parameters::* p_writeMS)(ioHandler&,const bool) const =
supervisedInstanceClassifier::parameters::writeMS;
b = b && (this->*p_writeMS)(handler,false);
# endif
if (complete) {
b = b && handler.writeEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:35,代码来源:ltiSHClassifier.cpp
示例3: bool
const bool complete) const
# else
bool ioFunctor::parameters::writeMS(ioHandler& handler,
const bool complete) const
# endif
{
bool b = true;
if (complete) {
b = handler.writeBegin();
}
if (b) {
lti::write(handler,"filename",filename);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && functor::parameters::write(handler,false);
# else
bool (functor::parameters::* p_writeMS)(ioHandler&,const bool) const =
functor::parameters::writeMS;
b = b && (this->*p_writeMS)(handler,false);
# endif
if (complete) {
b = b && handler.writeEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:31,代码来源:ltiIOFunctor.cpp
示例4: bool
bool labelAdjacencyMap::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
lti::read(handler,"minColors",minColors);
lti::read(handler,"thePalette",thePalette);
lti::read(handler,"neighborhood",neighborhood);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && functor::parameters::read(handler,false);
# else
bool (functor::parameters::* p_readMS)(ioHandler&,const bool) =
functor::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:32,代码来源:ltiLabelAdjacencyMap.cpp
示例5: bool
bool homography8DofEstimator::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && homographyEstimatorBase::parameters::read(handler,false);
# else
bool (homographyEstimatorBase::parameters::* p_readMS)
(ioHandler&,const bool)=
homographyEstimatorBase::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:30,代码来源:ltiHomography8DofEstimator.cpp
示例6: bool
bool SOFM2D::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
lti::read(handler,"area",area);
lti::read(handler,"sizeX",sizeX);
lti::read(handler,"sizeY",sizeY);
lti::read(handler,"calculateSize",calculateSize);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && SOFM::parameters::read(handler,false);
# else
bool (SOFM::parameters::* p_readMS)(ioHandler&,const bool) =
SOFM::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:33,代码来源:ltiSOFM2D.cpp
示例7: bool
const bool complete) const
# else
bool sffs::parameters::writeMS(ioHandler& handler,
const bool complete) const
# endif
{
bool b = true;
if (complete) {
b = handler.writeBegin();
}
if (b) {
usedCostFunction->write(handler,false);
// lti::write(handler,"classifier",classifier->getTypeName());
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && featureSelector::parameters::write(handler,false);
# else
bool (featureSelector::parameters::* p_writeMS)(ioHandler&,const bool) const =
featureSelector::parameters::writeMS;
b = b && (this->*p_writeMS)(handler,false);
# endif
if (complete) {
b = b && handler.writeEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:33,代码来源:ltiSffs.cpp
示例8: switch
const bool complete) const
# else
bool distanceTransform::parameters::writeMS(ioHandler& handler,
const bool complete) const
# endif
{
bool b = true;
if (complete) {
b = handler.writeBegin();
}
if (b) {
switch(distance) {
case EightNeighborhood:
lti::write(handler, "distance","EightNeighborhood");
break;
case FourNeighborhood:
lti::write(handler, "distance","FourNeighborhood");
break;
case EuclideanSqr:
lti::write(handler, "distance","EuclideanSqr");
break;
case Euclidean:
lti::write(handler, "distance","Euclidean");
break;
case EightSED:
lti::write(handler,"distance","EightSED");
break;
case EightSEDSqr:
lti::write(handler,"distance","EightSEDSqr");
break;
case FourSED:
lti::write(handler,"distance","FourSED");
break;
case FourSEDSqr:
lti::write(handler,"distance","FourSEDSqr");
break;
default:
lti::write(handler, "distance","EightNeighborhood");
break;
}
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && morphology::parameters::write(handler,false);
# else
bool (morphology::parameters::* p_writeMS)(ioHandler&,const bool) const =
morphology::parameters::writeMS;
b = b && (this->*p_writeMS)(handler,false);
# endif
if (complete) {
b = b && handler.writeEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:60,代码来源:ltiDistanceTransform.cpp
示例9: bool
bool histogramRGBL::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
lti::read(handler,"smooth",smooth);
lti::read(handler,"normalize",normalize);
lti::read(handler,"cells",cells);
lti::read(handler,"considerAllData",considerAllData);
lti::read(handler,"ignoreValue",ignoreValue);
lti::read(handler,"kernel",kernel);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && globalFeatureExtractor::parameters::read(handler,false);
# else
bool (globalFeatureExtractor::parameters::* p_readMS)(ioHandler&,const bool) =
globalFeatureExtractor::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:35,代码来源:ltiHistogramRGBL.cpp
示例10: bool
bool sigmoidKernel::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
b=b && lti::read(handler, "kappa", kappa);
b=b && lti::read(handler, "theta", theta);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && kernelFunctor<double>::parameters::read(handler,false);
# else
bool (kernelFunctor<double>::parameters::* p_readMS)(ioHandler&,const bool) =
kernelFunctor<double>::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:30,代码来源:ltiSigmoidKernel.cpp
示例11: bool
bool kNearestNeighFilter::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
lti::read(handler,"kernelSize",kernelSize);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && filter::parameters::read(handler,false);
# else
bool (filter::parameters::* p_readMS)(ioHandler&,const bool) =
filter::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:30,代码来源:ltiKNearestNeighFilter.cpp
示例12: bool
bool fastViewer::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
lti::read(handler, "topleft" ,topleft);
lti::read(handler, "noBorder" ,noBorder);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && viewerBase::parameters::read(handler,false);
# else
bool (viewerBase::parameters::* p_readMS)(ioHandler&,const bool) =
viewerBase::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:30,代码来源:ltiFastViewer.cpp
示例13: bool
bool medianCut::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
lti::read(handler,"preQuant",preQuant);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && colorQuantization::parameters::read(handler,false);
# else
bool (colorQuantization::parameters::* p_readMS)(ioHandler&,const bool) =
colorQuantization::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:30,代码来源:ltiMedianCut.cpp
示例14: bool
bool regionMerge::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
lti::read(handler,"threshold",threshold);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && functor::parameters::read(handler,false);
# else
bool (functor::parameters::* p_readMS)(ioHandler&,const bool) =
functor::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:30,代码来源:ltiRegionMerge.cpp
示例15: bool
bool huMoments::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
lti::read(handler,"scaling",scaling);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && globalFeatureExtractor::parameters::read(handler,false);
# else
bool (globalFeatureExtractor::parameters::* p_readMS)(ioHandler&,const bool) =
globalFeatureExtractor::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:30,代码来源:ltiHuMoments.cpp
示例16: bool
bool binomialDistribution::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
lti::read(handler,"sampleSize",sampleSize);
lti::read(handler,"events",events);
lti::read(handler,"confidence",confidence);
lti::read(handler,"accuracy",accuracy);
lti::read(handler,"baseProbability",baseProbability);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && discreteRandomDistribution::parameters::read(handler,false);
# else
bool (discreteRandomDistribution::parameters::* p_readMS)(ioHandler&,const bool) =
discreteRandomDistribution::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:34,代码来源:ltiBinomialDistribution.cpp
示例17: read
// read method
bool MLP::read(ioHandler& handler,const bool complete) {
bool b(true);
if (complete) {
b = handler.readBegin();
}
// read the standard data (output and parameters)
supervisedInstanceClassifier::read(handler,false);
if (b) {
if (lti::read(handler,"inputs",inputs) &&
lti::read(handler,"outputs",outputs)) {
if (lti::read(handler,"weights",weights)) {
b = initWeights(true); // initialize internal state keeping
// the weights...
} else {
initWeights(false,-1,1);
b = false;
}
} else {
b = false;
}
}
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:32,代码来源:ltiMLP.cpp
示例18: switch
const bool complete) const
# else
bool MLP::parameters::writeMS(ioHandler& handler,
const bool complete) const
# endif
{
bool b = true;
if (complete) {
b = handler.writeBegin();
}
if (b) {
switch(trainingMode) {
case SteepestDescent:
lti::write(handler,"trainingMode","SteepestDescent");
break;
case ConjugateGradients:
lti::write(handler,"trainingMode","ConjugateGradients");
break;
default:
lti::write(handler,"trainingMode","SteepestDescent");
};
lti::write(handler,"batchMode",batchMode);
lti::write(handler,"momentum",momentum);
lti::write(handler,"hiddenUnits",hiddenUnits);
lti::write(handler,"learnrate",learnrate);
lti::write(handler,"maxNumberOfEpochs",maxNumberOfEpochs);
lti::write(handler,"stopError",stopError);
className classNamer;
unsigned int i;
for (i=0;i<activationFunctions.size();++i) {
lti::write(handler,"activationFunctorType",
classNamer.get(*activationFunctions[i]));
lti::write(handler,"functor",*activationFunctions[i]);
}
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && supervisedInstanceClassifier::parameters::write(handler,false);
# else
bool (supervisedInstanceClassifier::parameters::* p_writeMS)(ioHandler&,const bool) const =
supervisedInstanceClassifier::parameters::writeMS;
b = b && (this->*p_writeMS)(handler,false);
# endif
if (complete) {
b = b && handler.writeEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:59,代码来源:ltiMLP.cpp
示例19: bool
bool MLP::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
std::string str;
lti::read(handler,"trainingMode",str);
if (str == "ConjugateGradients") {
trainingMode = ConjugateGradients;
} else {
trainingMode = SteepestDescent;
}
lti::read(handler,"batchMode",batchMode);
lti::read(handler,"momentum",momentum);
lti::read(handler,"hiddenUnits",hiddenUnits);
lti::read(handler,"learnrate",learnrate);
lti::read(handler,"maxNumberOfEpochs",maxNumberOfEpochs);
lti::read(handler,"stopError",stopError);
unsigned int i;
for (i=0;i<activationFunctions.size();++i) {
delete activationFunctions[i];
}
const int layers = hiddenUnits.size()+1;
activationFunctions.resize(layers);
std::string className;
for (i=0;i<activationFunctions.size();++i) {
lti::read(handler,"activationFunctorType",className);
activationFunctions[i] = objFactory.newInstance(className);
lti::read(handler,"functor",*activationFunctions[i]);
}
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && supervisedInstanceClassifier::parameters::read(handler,false);
# else
bool (supervisedInstanceClassifier::parameters::* p_readMS)(ioHandler&,const bool) =
supervisedInstanceClassifier::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:58,代码来源:ltiMLP.cpp
示例20: if
bool hessianFunctor::parameters::readMS(ioHandler& handler,
const bool complete)
# endif
{
bool b = true;
if (complete) {
b = handler.readBegin();
}
if (b) {
std::string str;
lti::read(handler,"kernelType",str);
if (str == "Ando") {
kernelType = Ando;
} else if (str == "OGD") {
kernelType = OGD2;
} else if (str == "Classic") {
kernelType = Classic;
} else if (str == "Sobel") {
kernelType = Sobel;
} else if (str == "Prewitt") {
kernelType = Prewitt;
} else if (str == "Robinson") {
kernelType = Robinson;
} else if (str == "Kirsch") {
kernelType = Kirsch;
} else if (str == "Harris") {
kernelType = Harris;
} else if (str == "Hessian") {
kernelType = Hessian;
} else {
kernelType = Hessian;
handler.setStatusString("Unknown kernel type");
b = false;
}
lti::read(handler,"kernelSize",kernelSize);
lti::read(handler,"kernelVariance",kernelVariance);
}
# ifndef _LTI_MSC_6
// This is the standard C++ code, which MS Visual C++ 6 is not able to
// compile...
b = b && transform::parameters::read(handler,false);
# else
bool (transform::parameters::* p_readMS)(ioHandler&,const bool) =
transform::parameters::readMS;
b = b && (this->*p_readMS)(handler,false);
# endif
if (complete) {
b = b && handler.readEnd();
}
return b;
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:58,代码来源:ltiHessianFunctor.cpp
注:本文中的ioHandler类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论