Skip to content

Commit

Permalink
removed topIsLow from yarpview
Browse files Browse the repository at this point in the history
  • Loading branch information
randaz81 committed Oct 17, 2024
1 parent 8f12186 commit b590f07
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/yarpview/plugin/ImagePort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ void InputCallback::onRead(yarp::sig::ImageOf<yarp::sig::PixelRgba> &img)
j+=4;
}*/

if (img.topIsLowIndex()) {
if (1)
{
memcpy(tmpBuf, rawImg, imgSize);
} else {
}
else
{ //flip the image along the y axis
for(int x = 0; x < s.height(); x++) {
memcpy(tmpBuf + x * img.getRowSize(),
rawImg + (s.height() - x - 1) * img.getRowSize(),
Expand Down

0 comments on commit b590f07

Please sign in to comment.