예제 #1
0
파일: Map.cs 프로젝트: zanker99/emgucv
 /// <inheritdoc/>
 protected override void DisposeObject()
 {
     if (_sharedPtr != IntPtr.Zero)
     {
         RegInvoke.cveMapRelease(ref _sharedPtr);
     }
 }
예제 #2
0
 /// <inheritdoc/>
 protected override void DisposeObject()
 {
     if (_ptr != IntPtr.Zero)
     {
         RegInvoke.cveMapAffineRelease(ref _ptr);
         _mapPtr = IntPtr.Zero;
     }
 }
예제 #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);
         }
 }
예제 #4
0
 /// <inheritdoc/>
 protected override void DisposeObject()
 {
     if (_ptr != IntPtr.Zero)
     {
         RegInvoke.cveMapperGradProjRelease(ref _ptr);
         _mapperPtr = IntPtr.Zero;
     }
 }
예제 #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);
 }
예제 #6
0
 /// <summary>
 /// Create a mapper for affine motion
 /// </summary>
 public MapperGradAffine()
 {
     _ptr = RegInvoke.cveMapperGradAffineCreate(ref _mapperPtr);
 }
예제 #7
0
 /// <summary>
 /// Create a gradient mapper for a projective transformation
 /// </summary>
 public MapperGradProj()
 {
     _ptr = RegInvoke.cveMapperGradProjCreate(ref _mapperPtr);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #11
0
 /// <summary>
 /// Create gradient mapper for a translation
 /// </summary>
 public MapperGradShift()
 {
     _ptr = RegInvoke.cveMapperGradShiftCreate(ref _mapperPtr);
 }
예제 #12
0
 /// <summary>
 /// Create a mapper for euclidean motion
 /// </summary>
 public MapperGradEuclid()
 {
     _ptr = RegInvoke.cveMapperGradEuclidCreate(ref _mapperPtr);
 }