/// <inheritdoc/> protected override void DisposeObject() { if (_sharedPtr != IntPtr.Zero) { RegInvoke.cveMapRelease(ref _sharedPtr); } }
/// <inheritdoc/> protected override void DisposeObject() { if (_ptr != IntPtr.Zero) { RegInvoke.cveMapAffineRelease(ref _ptr); _mapPtr = IntPtr.Zero; } }
/// <summary> /// Constructor providing explicit values /// </summary> /// <param name="linTr">Linear part of the affine transformation</param> /// <param name="shift">Displacement part of the affine transformation</param> public MapAffine(IInputArray linTr, IInputArray shift) { using (InputArray iaLinTr = linTr.GetInputArray()) using (InputArray iaShift = shift.GetInputArray()) { _ptr = RegInvoke.cveMapAffineCreate(iaLinTr, iaShift, ref _mapPtr); } }
/// <inheritdoc/> protected override void DisposeObject() { if (_ptr != IntPtr.Zero) { RegInvoke.cveMapperGradProjRelease(ref _ptr); _mapperPtr = IntPtr.Zero; } }
/// <summary> /// Create a transformation that consists on a simple displacement /// </summary> /// <param name="shift">A transformation.</param> public MapShift(MCvPoint2D64f shift) { _ptr = RegInvoke.cveMapShiftCreate(ref shift, ref _mapPtr); }
/// <summary> /// Create a mapper for affine motion /// </summary> public MapperGradAffine() { _ptr = RegInvoke.cveMapperGradAffineCreate(ref _mapperPtr); }
/// <summary> /// Create a gradient mapper for a projective transformation /// </summary> public MapperGradProj() { _ptr = RegInvoke.cveMapperGradProjCreate(ref _mapperPtr); }
/// <summary> /// Create a transformation that consists on a projective transformation /// </summary> /// <param name="projTr"></param> public MapProjec(IInputArray projTr) { using (InputArray iaProjTr = projTr.GetInputArray()) _ptr = RegInvoke.cveMapProjecCreate(iaProjTr, ref _mapPtr); }
/// <summary> /// Create a mapper using a gaussian pyramid /// </summary> /// <param name="baseMapper">The base mapper</param> public MapperPyramid(IMapper baseMapper) { _ptr = RegInvoke.cveMapperPyramidCreate(baseMapper.MapperPtr, ref _mapperPtr); }
/// <summary> /// Create a mapper that calculates a similarity transformation between two images (scale, rotation, and shift) /// </summary> public MapperGradSimilar() { _ptr = RegInvoke.cveMapperGradSimilarCreate(ref _mapperPtr); }
/// <summary> /// Create gradient mapper for a translation /// </summary> public MapperGradShift() { _ptr = RegInvoke.cveMapperGradShiftCreate(ref _mapperPtr); }
/// <summary> /// Create a mapper for euclidean motion /// </summary> public MapperGradEuclid() { _ptr = RegInvoke.cveMapperGradEuclidCreate(ref _mapperPtr); }