Skip to content

Commit

Permalink
[shapeDescriptor]: use helper function iplToMat
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Saponaro committed Sep 26, 2016
1 parent 5bbb694 commit b6827ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapeDescriptor/src/DescriptorThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ void ShapeDescriptorThread::run2d()
ImageOf<PixelBgr> &outAnnotatedYarp = outAnnotatedImgPort.prepare();
outAnnotatedYarp.resize(outAnnotatedMat.cols,
outAnnotatedMat.rows);
outAnnotatedMat.copyTo( cv::cvarrToMat(static_cast<IplImage*>(outAnnotatedYarp.getIplImage())) );
outAnnotatedMat.copyTo(iplToMat(outAnnotatedYarp));
outAnnotatedImgPort.setEnvelope(tsRaw);
outAnnotatedImgPort.write();
}
Expand Down

0 comments on commit b6827ca

Please sign in to comment.