Skip to content

Commit

Permalink
correct the COB to be in the middle of a pixel
Browse files Browse the repository at this point in the history
We were using the top left corner of the pixel before leading to biases in the filter.
  • Loading branch information
tteil committed Nov 6, 2024
1 parent efc9a56 commit ee0d72f
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 ee0d72f

Please sign in to comment.