Skip to content

Commit

Permalink
Be consistent in RGB channel notation for ogre2 segmentation camera (#…
Browse files Browse the repository at this point in the history
…419)

Signed-off-by: Ashton Larkin <[email protected]>
  • Loading branch information
adlarkin authored Sep 22, 2021
1 parent 8e7c876 commit 064bdf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ogre2/src/Ogre2SegmentationCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ void Ogre2SegmentationCamera::LabelMapFromColoredBuffer(
for (uint32_t j = 0; j < width; ++j)
{
auto index = (i * width + j) * 3;
auto r = this->dataPtr->buffer[index + 2];
auto r = this->dataPtr->buffer[index];
auto g = this->dataPtr->buffer[index + 1];
auto b = this->dataPtr->buffer[index];
auto b = this->dataPtr->buffer[index + 2];

// get color 24 bit unique id, we don't multiply it by 255 like before
// as they are not normalized we read it from the buffer in
Expand Down

0 comments on commit 064bdf5

Please sign in to comment.