Example #1
0
 /// <inheritdoc/>
 protected override void DisposeObject()
 {
     if (_sharedPtr != IntPtr.Zero)
     {
         RegInvoke.cveMapRelease(ref _sharedPtr);
     }
 }
Example #2
0
 /// <inheritdoc/>
 protected override void DisposeObject()
 {
     if (_ptr != IntPtr.Zero)
     {
         RegInvoke.cveMapAffineRelease(ref _ptr);
         _mapPtr = IntPtr.Zero;
     }
 }
Example #3
0
 /// <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);
         }
 }
Example #4
0
 /// <inheritdoc/>
 protected override void DisposeObject()
 {
     if (_ptr != IntPtr.Zero)
     {
         RegInvoke.cveMapperGradProjRelease(ref _ptr);
         _mapperPtr = IntPtr.Zero;
     }
 }
Example #5
0
 /// <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);
 }
Example #6
0
 /// <summary>
 /// Create a mapper for affine motion
 /// </summary>
 public MapperGradAffine()
 {
     _ptr = RegInvoke.cveMapperGradAffineCreate(ref _mapperPtr);
 }
Example #7
0
 /// <summary>
 /// Create a gradient mapper for a projective transformation
 /// </summary>
 public MapperGradProj()
 {
     _ptr = RegInvoke.cveMapperGradProjCreate(ref _mapperPtr);
 }
Example #8
0
 /// <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);
 }
Example #9
0
 /// <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);
 }
Example #10
0
 /// <summary>
 /// Create a mapper that calculates a similarity transformation between two images (scale, rotation, and shift)
 /// </summary>
 public MapperGradSimilar()
 {
     _ptr = RegInvoke.cveMapperGradSimilarCreate(ref _mapperPtr);
 }
Example #11
0
 /// <summary>
 /// Create gradient mapper for a translation
 /// </summary>
 public MapperGradShift()
 {
     _ptr = RegInvoke.cveMapperGradShiftCreate(ref _mapperPtr);
 }
Example #12
0
 /// <summary>
 /// Create a mapper for euclidean motion
 /// </summary>
 public MapperGradEuclid()
 {
     _ptr = RegInvoke.cveMapperGradEuclidCreate(ref _mapperPtr);
 }