Skip to content

Commit cb89ac3

Browse files
committed
fix comment
1 parent 1fc449a commit cb89ac3

File tree

1 file changed

+4
-2
lines changed
  • src/OpenCvSharp/Modules/core/Mat

1 file changed

+4
-2
lines changed

src/OpenCvSharp/Modules/core/Mat/Mat.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ public static Mat FromPixelData(int rows, int cols, MatType type, IntPtr data, l
299299
}
300300

301301
/// <summary>
302-
/// constructor for matrix headers pointing to user-allocated data
302+
/// Constructor for matrix headers pointing to user-allocated data.
303+
/// **Do not use this constructor directly.** Please use <see cref="Mat.FromPixelData"/> instead.
304+
/// This constructor was removed from the public API because the introduction of <c>nint</c> in .NET caused overload resolution confusion.
303305
/// </summary>
304306
/// <param name="rows">Number of rows in a 2D array.</param>
305307
/// <param name="cols">Number of columns in a 2D array.</param>
@@ -320,7 +322,7 @@ protected Mat(int rows, int cols, MatType type, Array data, long step = 0)
320322
}
321323

322324
/// <summary>
323-
/// constructor for matrix headers pointing to user-allocated data
325+
/// Constructor for matrix headers pointing to user-allocated data.
324326
/// </summary>
325327
/// <param name="rows">Number of rows in a 2D array.</param>
326328
/// <param name="cols">Number of columns in a 2D array.</param>

0 commit comments

Comments
 (0)