本文整理汇总了C#中Ptr.Get方法的典型用法代码示例。如果您正苦于以下问题:C# Ptr.Get方法的具体用法?C# Ptr.Get怎么用?C# Ptr.Get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ptr
的用法示例。
在下文中一共展示了Ptr.Get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FromPtr
/// <summary>
/// Creates instance from cv::Ptr<T> .
/// ptr is disposed when the wrapper disposes.
/// </summary>
/// <param name="ptr"></param>
internal static FaceRecognizer FromPtr(IntPtr ptr)
{
if (ptr == IntPtr.Zero)
throw new OpenCvSharpException("Invalid cv::Ptr<FaceRecognizer> pointer");
var ptrObj = new Ptr<FaceRecognizer>(ptr);
var detector = new FaceRecognizer
{
recognizerPtr = ptrObj,
ptr = ptrObj.Get()
};
return detector;
}
示例2: FromPtr
/// <summary>
/// Creates instance from cv::Ptr<T> .
/// ptr is disposed when the wrapper disposes.
/// </summary>
/// <param name="ptr"></param>
internal static Feature2D FromPtr(IntPtr ptr)
{
if (ptr == IntPtr.Zero)
throw new OpenCvSharpException("Invalid cv::Ptr<Feature2D> pointer");
var ptrObj = new Ptr<Feature2D>(ptr);
var detector = new Feature2D
{
ptrObj = ptrObj,
ptr = ptrObj.Get()
};
return detector;
}
示例3: FromPtr
/// <summary>
/// Creates instance from cv::Ptr<T> .
/// ptr is disposed when the wrapper disposes.
/// </summary>
/// <param name="ptr"></param>
internal static SuperResolutionImpl FromPtr(IntPtr ptr)
{
if (ptr == IntPtr.Zero)
throw new OpenCvSharpException("Invalid FrameSource pointer");
var ptrObj = new Ptr<SuperResolution>(ptr);
var obj = new SuperResolutionImpl
{
detectorPtr = ptrObj,
ptr = ptrObj.Get()
};
return obj;
}
示例4: FromPtr
/// <summary>
/// Creates instance from cv::Ptr<T> .
/// ptr is disposed when the wrapper disposes.
/// </summary>
/// <param name="ptr"></param>
internal static DenseOpticalFlowImpl FromPtr(IntPtr ptr)
{
if (ptr == IntPtr.Zero)
throw new OpenCvSharpException("Invalid DenseOpticalFlow pointer");
var ptrObj = new Ptr<DenseOpticalFlow>(ptr);
var obj = new DenseOpticalFlowImpl
{
detectorPtr = ptrObj,
ptr = ptrObj.Get()
};
return obj;
}
示例5: RTrees
/// <summary>
/// Creates instance by raw pointer cv::ml::RTrees*
/// </summary>
protected RTrees(IntPtr p)
: base()
{
ptrObj = new Ptr<RTrees>(p);
ptr = ptrObj.Get();
}
示例6: KAZE
/// <summary>
///
/// </summary>
protected KAZE(IntPtr p)
{
ptrObj = new Ptr<KAZE>(p);
ptr = ptrObj.Get();
}
示例7: DenseFeatureDetector
/// <summary>
/// Creates instance by cv::Ptr<cv::SURF>
/// </summary>
internal DenseFeatureDetector(Ptr<DenseFeatureDetector> detectorPtr)
{
this.detectorPtr = detectorPtr;
this.ptr = detectorPtr.Get();
}
示例8: MSER
/// <summary>
/// Creates instance by raw pointer cv::MSER*
/// </summary>
protected MSER(IntPtr p)
{
ptrObj = new Ptr<MSER>(p);
ptr = ptrObj.Get();
}
示例9: AgastFeatureDetector
#pragma warning restore 1591
#region Init & Disposal
/// <summary>
///
/// </summary>
protected AgastFeatureDetector(IntPtr p)
{
ptrObj = new Ptr<AgastFeatureDetector>(p);
ptr = ptrObj.Get();
}
示例10: FromPtr
/// <summary>
/// Creates instance from cv::Ptr<T> .
/// ptr is disposed when the wrapper disposes.
/// </summary>
/// <param name="ptr"></param>
internal static DescriptorMatcher FromPtr(IntPtr ptr)
{
if (ptr == IntPtr.Zero)
throw new OpenCvSharpException("Invalid cv::Ptr<DescriptorMatcher> pointer");
var ptrObj = new Ptr<DescriptorMatcher>(ptr);
var detector = new DescriptorMatcher
{
detectorPtr = ptrObj,
ptr = ptrObj.Get()
};
return detector;
}
示例11: HausdorffDistanceExtractor
/// <summary>
///
/// </summary>
protected HausdorffDistanceExtractor(IntPtr p)
{
ptrObj = new Ptr<HausdorffDistanceExtractor>(p);
ptr = ptrObj.Get();
}
示例12: CLAHE
/// <summary>
///
/// </summary>
private CLAHE(IntPtr p)
{
ptrObj = new Ptr<CLAHE>(p);
ptr = ptrObj.Get();
}
示例13: BRISK
/// <summary>
///
/// </summary>
/// <param name="p"></param>
protected BRISK(IntPtr p)
: base()
{
ptrObj = new Ptr<BRISK>(p);
ptr = ptrObj.Get();
}
示例14: FlannBasedMatcher
/// <summary>
/// Creates instance by cv::Ptr<T>
/// </summary>
internal FlannBasedMatcher(Ptr<FlannBasedMatcher> detectorPtr)
{
this.detectorPtr = detectorPtr;
this.ptr = detectorPtr.Get();
}
示例15: ORB
/// <summary>
///
/// </summary>
protected ORB(IntPtr p)
{
ptrObj = new Ptr<ORB>(p);
ptr = ptrObj.Get();
}