本文整理汇总了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;未经允许,请勿转载。 |
请发表评论