Skip to content

Bug in cvSetImageROItoBlob #39

@GoogleCodeExporter

Description

@GoogleCodeExporter
The width and height of the resulting ROI are off by one.  The inline code 
right now is:

inline void cvSetImageROItoBlob(IplImage *img, CvBlob const *blob)
  {
    cvSetImageROI(img, cvRect(blob->minx, blob->miny, blob->maxx-blob->minx+1, blob->maxy-blob->miny+1));
  };


The correct code should be:

inline void cvSetImageROItoBlob(IplImage *img, CvBlob const *blob)
  {
    cvSetImageROI(img, cvRect(blob->minx, blob->miny, blob->maxx-blob->minx+1, blob->maxy-blob->miny+1));
  };


Original issue reported on code.google.com by m...@adornably.com on 15 Jul 2013 at 9:39

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions