예제 #1
0
 /// <summary>
 /// Release the unmanaged memory associated with this object
 /// </summary>
 protected override void DisposeObject()
 {
     if (_ptr != IntPtr.Zero && _needDispose)
     {
         CcmInvoke.cveColorCorrectionModelRelease(ref _ptr);
     }
 }
예제 #2
0
 /// <summary>
 /// Color Correction Model.
 /// </summary>
 /// <param name="src">Detected colors of ColorChecker patches; the color type is RGB not BGR, and the color values are in [0, 1];</param>
 /// <param name="color">The Built-in color card</param>
 public ColorCorrectionModel(Mat src, ColorChecker color)
 {
     _ptr         = CcmInvoke.cveColorCorrectionModelCreate(src, color);
     _needDispose = true;
 }