• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ rescueObjectFromPtr函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中rescueObjectFromPtr函数的典型用法代码示例。如果您正苦于以下问题:C++ rescueObjectFromPtr函数的具体用法?C++ rescueObjectFromPtr怎么用?C++ rescueObjectFromPtr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了rescueObjectFromPtr函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: SuperResolution_setInput

void SuperResolution_setInput(struct SuperResolutionPtr ptr, struct FrameSourcePtr frameSource)
{
    cv::Ptr<superres::FrameSource> tempPtr(
            static_cast<superres::FrameSource *>(frameSource.ptr));
    rescueObjectFromPtr(tempPtr);
    ptr->setInput(tempPtr);
}
开发者ID:epfl-lts2,项目名称:torch-opencv,代码行数:7,代码来源:superres.cpp


示例2: HOG_ctor

struct HOGPtr HOG_ctor(
        struct SizeWrapper win_size, struct SizeWrapper block_size,
        struct SizeWrapper block_stride, struct SizeWrapper cell_size, int nbins)
{
    return rescueObjectFromPtr(cuda::HOG::create(
            win_size, block_size, block_stride, cell_size, nbins));
}
开发者ID:AI42,项目名称:torch-opencv,代码行数:7,代码来源:cudaobjdetect.cpp


示例3: SuperResolution_setOpticalFlow

void SuperResolution_setOpticalFlow(struct SuperResolutionPtr ptr, struct DenseOpticalFlowExtPtr val)
{
    cv::Ptr<FakeOpticalFlow> tempPtr(
            static_cast<FakeOpticalFlow *>(val.ptr));
    rescueObjectFromPtr(tempPtr);
    ptr->setOpticalFlow(tempPtr);
}
开发者ID:epfl-lts2,项目名称:torch-opencv,代码行数:7,代码来源:superres.cpp


示例4: BroxOpticalFlow_ctorCuda

struct BroxOpticalFlowPtr BroxOpticalFlow_ctorCuda(
        double alpha, double gamma, double scale_factor, int inner_iterations,
        int outer_iterations, int solver_iterations)
{
    return rescueObjectFromPtr(cuda::BroxOpticalFlow::create(
            alpha, gamma, scale_factor, inner_iterations, outer_iterations, solver_iterations));
}
开发者ID:0wu,项目名称:torch-opencv,代码行数:7,代码来源:cudaoptflow.cpp


示例5: StatModel_train

bool StatModel_train(struct StatModelPtr ptr, struct TrainDataPtr trainData, int flags)
{
    cv::Ptr<ml::TrainData> trainDataPtr(static_cast<ml::TrainData *>(trainData));
    bool result = ptr->train(trainDataPtr, flags);
    rescueObjectFromPtr(trainDataPtr);
    return result;
}
开发者ID:DilipA,项目名称:torch-opencv,代码行数:7,代码来源:ml.cpp


示例6: ORB_ctorCuda

struct ORBPtr ORB_ctorCuda(
    int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel,
    int WTA_K, int scoreType, int patchSize, int fastThreshold, bool blurForDescriptor)
{
    return rescueObjectFromPtr(
               cuda::ORB::create(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel,
                                 WTA_K, scoreType, patchSize, fastThreshold, blurForDescriptor));
}
开发者ID:VisionLabs,项目名称:torch-opencv,代码行数:8,代码来源:cudafeatures2d.cpp


示例7: OpticalFlowDual_TVL1_ctorCuda

struct OpticalFlowDual_TVL1Ptr OpticalFlowDual_TVL1_ctorCuda(
        double tau, double lambda, double theta, int nscales, int warps, double epsilon,
        int iterations, double scaleStep, double gamma, bool useInitialFlow)
{
    return rescueObjectFromPtr(cuda::OpticalFlowDual_TVL1::create(
            tau, lambda, theta, nscales, warps, epsilon,
            iterations, scaleStep, gamma, useInitialFlow));
}
开发者ID:0wu,项目名称:torch-opencv,代码行数:8,代码来源:cudaoptflow.cpp


示例8: FarnebackOpticalFlow_ctorCuda

struct FarnebackOpticalFlowPtr FarnebackOpticalFlow_ctorCuda(
        int NumLevels, double PyrScale, bool FastPyramids, int WinSize,
        int NumIters, int PolyN, double PolySigma, int Flags)
{
    return rescueObjectFromPtr(cuda::FarnebackOpticalFlow::create(
            NumLevels, PyrScale, FastPyramids, WinSize, NumIters,
            PolyN, PolySigma, Flags));
}
开发者ID:0wu,项目名称:torch-opencv,代码行数:8,代码来源:cudaoptflow.cpp


示例9: createGoodFeaturesToTrackDetector

struct CornersDetectorPtr createGoodFeaturesToTrackDetector(
        int srcType, int maxCorners, double qualityLevel, double minDistance,
        int blockSize, bool useHarrisDetector, double harrisK)
{
    return rescueObjectFromPtr(cuda::createGoodFeaturesToTrackDetector(
            srcType, maxCorners, qualityLevel, minDistance,
            blockSize, useHarrisDetector, harrisK));
}
开发者ID:epfl-lts2,项目名称:torch-opencv,代码行数:8,代码来源:cudaimgproc.cpp


示例10: TrainData_ctor

struct TrainDataPtr TrainData_ctor(
        struct TensorWrapper samples, int layout, struct TensorWrapper responses,
        struct TensorWrapper varIdx, struct TensorWrapper sampleIdx,
        struct TensorWrapper sampleWeights, struct TensorWrapper varType)
{
    return rescueObjectFromPtr(ml::TrainData::create(
            samples.toMat(), layout, responses.toMat(), varIdx.toMat(),
            sampleIdx.toMat(), sampleWeights.toMat(), varType.toMat()));
}
开发者ID:0wu,项目名称:torch-opencv,代码行数:9,代码来源:ml.cpp


示例11: SVM_trainAuto

bool SVM_trainAuto(
        struct SVMPtr ptr, struct TrainDataPtr data, int kFold, struct ParamGridPtr Cgrid,
        struct ParamGridPtr gammaGrid, struct ParamGridPtr pGrid, struct ParamGridPtr nuGrid,
        struct ParamGridPtr coeffGrid, struct ParamGridPtr degreeGrid, bool balanced)
{
    cv::Ptr<ml::TrainData> dataPtr(static_cast<ml::TrainData *>(data));
    rescueObjectFromPtr(dataPtr);

    return ptr->trainAuto(
            dataPtr, kFold, Cgrid, gammaGrid, pGrid,
            nuGrid, coeffGrid, degreeGrid, balanced);
}
开发者ID:0wu,项目名称:torch-opencv,代码行数:12,代码来源:ml.cpp


示例12: StatModel_calcError

struct TensorPlusFloat StatModel_calcError(
        struct StatModelPtr ptr, struct TrainDataPtr data, bool test, struct TensorWrapper resp)
{
    cv::Ptr<ml::TrainData> dataPtr(static_cast<ml::TrainData *>(data));
    TensorPlusFloat retval;

    MatT resp_mat = resp.toMatT();
    retval.val = ptr->calcError(dataPtr, test, resp_mat);
    new(&retval.tensor) TensorWrapper(resp_mat);
    rescueObjectFromPtr(dataPtr);
    return retval;
}
开发者ID:0wu,项目名称:torch-opencv,代码行数:12,代码来源:ml.cpp


示例13: StereoSGBM_ctor

struct StereoSGBMPtr StereoSGBM_ctor(
	int minDisparity, int numDisparities, int blockSize,
	int P1, int P2, int disp12MaxDiff, int preFilterCap,
	int uniquenessRatio, int speckleWindowSize,
	int speckleRange, int mode)
{
    return rescueObjectFromPtr(
		cv::StereoSGBM::create(
			minDisparity, numDisparities, blockSize, P1, P2,
			disp12MaxDiff, preFilterCap, uniquenessRatio,
			speckleWindowSize, speckleRange, mode));
}
开发者ID:0wu,项目名称:torch-opencv,代码行数:12,代码来源:calib3d.cpp


示例14: findCirclesGrid

struct TensorPlusBool findCirclesGrid(
	struct TensorWrapper image, struct SizeWrapper patternSize,
	struct TensorWrapper centers, int flags,
  struct SimpleBlobDetectorPtr blobDetector)
{
    cv::Ptr<cv::FeatureDetector> blobDetectorPtr(
      static_cast<cv::SimpleBlobDetector *>(blobDetector.ptr));
    rescueObjectFromPtr(blobDetectorPtr);

    struct TensorPlusBool result;
    MatT centers_mat = centers.toMatT();

    result.val = cv::findCirclesGrid(
		  image.toMat(), patternSize, centers_mat, flags, blobDetectorPtr);
    new(&result.tensor) TensorWrapper(centers_mat);
    return result;
}
开发者ID:0wu,项目名称:torch-opencv,代码行数:17,代码来源:calib3d.cpp


示例15: Boost_ctor

struct BoostPtr Boost_ctor()
{
    return rescueObjectFromPtr(ml::Boost::create());
}
开发者ID:0wu,项目名称:torch-opencv,代码行数:4,代码来源:ml.cpp


示例16: createSuperResolution_BTVL1_CUDA

struct SuperResolutionPtr createSuperResolution_BTVL1_CUDA()
{
    return rescueObjectFromPtr(superres::createSuperResolution_BTVL1_CUDA());
}
开发者ID:epfl-lts2,项目名称:torch-opencv,代码行数:4,代码来源:superres.cpp


示例17: createOptFlow_PyrLK_CUDA

struct PyrLKOpticalFlowPtr createOptFlow_PyrLK_CUDA()
{
    return rescueObjectFromPtr(superres::createOptFlow_PyrLK_CUDA());
}
开发者ID:epfl-lts2,项目名称:torch-opencv,代码行数:4,代码来源:superres.cpp


示例18: createFrameSource

struct FrameSourcePtr createFrameSource()
{
    return rescueObjectFromPtr(superres::createFrameSource_Empty());
}
开发者ID:epfl-lts2,项目名称:torch-opencv,代码行数:4,代码来源:superres.cpp


示例19: createOptFlow_Brox_CUDA

struct BroxOpticalFlowPtr createOptFlow_Brox_CUDA()
{
    return rescueObjectFromPtr(superres::createOptFlow_Brox_CUDA());
}
开发者ID:epfl-lts2,项目名称:torch-opencv,代码行数:4,代码来源:superres.cpp


示例20: createOptFlow_DualTVL1_CUDA

struct DualTVL1OpticalFlowPtr createOptFlow_DualTVL1_CUDA()
{
    return rescueObjectFromPtr(superres::createOptFlow_DualTVL1_CUDA());
}
开发者ID:epfl-lts2,项目名称:torch-opencv,代码行数:4,代码来源:superres.cpp



注:本文中的rescueObjectFromPtr函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ reseatable函数代码示例发布时间:2022-05-30
下一篇:
C++ reschedule函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap