Skip to content

Commit

Permalink
Merge pull request #562 from shimat/RenderBlobs_bugfix
Browse files Browse the repository at this point in the history
BlobRenderer: draw MaxX and MaxY pixels
  • Loading branch information
shimat authored Nov 7, 2018
2 parents 2009f15 + add3e15 commit ee26146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenCvSharp.Blob/BlobRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public static unsafe void PerformOne(LabelData labels, CvBlob blob, Mat imgSrc,
var pSrc = imgSrc.GetGenericIndexer<Vec3b>();
var pDst = imgDst.GetGenericIndexer<Vec3b>();

for (int r = blob.MinY; r < blob.MaxY; r++)
for (int r = blob.MinY; r <= blob.MaxY; r++)
{
for (int c = blob.MinX; c < blob.MaxX; c++)
for (int c = blob.MinX; c <= blob.MaxX; c++)
{
if (labels[r, c] == blob.Label)
{
Expand Down

0 comments on commit ee26146

Please sign in to comment.