Skip to content

Commit ee26146

Browse files
authored
Merge pull request shimat#562 from shimat/RenderBlobs_bugfix
BlobRenderer: draw MaxX and MaxY pixels
2 parents 2009f15 + add3e15 commit ee26146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenCvSharp.Blob/BlobRenderer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public static unsafe void PerformOne(LabelData labels, CvBlob blob, Mat imgSrc,
5656
var pSrc = imgSrc.GetGenericIndexer<Vec3b>();
5757
var pDst = imgDst.GetGenericIndexer<Vec3b>();
5858

59-
for (int r = blob.MinY; r < blob.MaxY; r++)
59+
for (int r = blob.MinY; r <= blob.MaxY; r++)
6060
{
61-
for (int c = blob.MinX; c < blob.MaxX; c++)
61+
for (int c = blob.MinX; c <= blob.MaxX; c++)
6262
{
6363
if (labels[r, c] == blob.Label)
6464
{

0 commit comments

Comments
 (0)