diff options
Diffstat (limited to 'UVtools.Core/Layer/Layer.cs')
-rw-r--r-- | UVtools.Core/Layer/Layer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.Core/Layer/Layer.cs b/UVtools.Core/Layer/Layer.cs index 8d84864..205e925 100644 --- a/UVtools.Core/Layer/Layer.cs +++ b/UVtools.Core/Layer/Layer.cs @@ -242,7 +242,7 @@ namespace UVtools.Core using (var nonZeroMat = new Mat()) { CvInvoke.FindNonZero(mat, nonZeroMat); - NonZeroPixelCount = (uint)nonZeroMat.Rows / 2; + NonZeroPixelCount = (uint)nonZeroMat.Height; BoundingRectangle = CvInvoke.BoundingRectangle(nonZeroMat); } |