After testing E_Distance.SaveGroupedFaceEncodings

This commit is contained in:
2022-08-07 12:29:46 -07:00
parent 2158b4cfc2
commit daf5f428b9
57 changed files with 2626 additions and 660 deletions

View File

@ -30,9 +30,9 @@ public sealed class FaceEncoding : DisposableObject, ISerializable
int? row = (int?)info.GetValue(nameof(_Encoding.Rows), typeof(int));
int? column = (int?)info.GetValue(nameof(_Encoding.Columns), typeof(int));
if (row is null)
throw new Exception($"{nameof(row)} is null");
throw new ArgumentNullException(nameof(row));
if (column is null)
throw new Exception($"{nameof(column)} is null");
throw new ArgumentNullException(nameof(column));
_Encoding = new Matrix<double>(array, row.Value, column.Value);
}