Skip to content

Commit

Permalink
Merge pull request #365 from lasp/feature/1308-cob-fix
Browse files Browse the repository at this point in the history
correct the COB to be in the middle of a pixel
  • Loading branch information
thibaudteil authored Dec 12, 2024
2 parents 390971b + 62765bf commit 4104e3e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ void CenterOfBrightness::updateState(uint64_t currentSimNanos)
cobBuffer.valid = true;
cobBuffer.timeTag = this->sensorTimeTag;
cobBuffer.cameraID = imageBuffer.cameraID;
cobBuffer.centerOfBrightness[0] = cobData.first[0];
cobBuffer.centerOfBrightness[1] = cobData.first[1];
cobBuffer.centerOfBrightness[0] = cobData.first[0] + 0.5;
cobBuffer.centerOfBrightness[1] = cobData.first[1] + 0.5;
cobBuffer.pixelsFound = static_cast<int32_t> (locations.size());
}
cobBuffer.rollingAverageBrightness = averageBrightnessNew;
Expand Down

0 comments on commit 4104e3e

Please sign in to comment.