Skip to content

Commit

Permalink
activeSegmentation: fix compilation with yarp devel
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Saponaro committed Jan 9, 2018
1 parent 71338d1 commit 9b63377
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/activeSegmentation/src/library/src/activeSeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ bool ActiveSeg::configure(ResourceFinder &rf)
/**********************************************************/
ActiveSeg::Error ActiveSeg::getSegWithFixation( const IplImage *img, IplImage* &seg, SegInfo &info )
{
YARP_ASSERT (img);
yAssert(img);

if (info.fix_x >= img->width || info.fix_x <= 0 || info.fix_y >=img->height || info.fix_y <= 0)
{
Expand Down Expand Up @@ -132,8 +132,8 @@ inline void ActiveSeg::segmentWithFixation(IplImage *img_in, double x, double y)
/**********************************************************/
ActiveSeg::Error ActiveSeg::getTemplateFromSeg(const IplImage *img, IplImage* seg, IplImage* &tpl, SegInfo &info)
{
YARP_ASSERT (img);
YARP_ASSERT (seg);
yAssert(img);
yAssert(seg);

int top = -1;
int left = -1;
Expand Down Expand Up @@ -210,7 +210,7 @@ ActiveSeg::Error ActiveSeg::getTemplateFromSeg(const IplImage *img, IplImage* s

ActiveSeg::Error ActiveSeg::getTemplate( const IplImage *img, IplImage* &tpl, SegInfo &info )
{
YARP_ASSERT (img);
yAssert(img);
IplImage* seg = cvCloneImage(img);
ActiveSeg::Error ret;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TargetObjectRecord {

bool add(TargetObject *obj)
{
YARP_ASSERT(obj);
yAssert(obj);
TargetObjectRecord::iterator itr = findOwner(obj->owner);
if(itr != targets.end())
targets.erase(itr);
Expand Down

0 comments on commit 9b63377

Please sign in to comment.