We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58e3c7e commit 08a5f0aCopy full SHA for 08a5f0a
tools/oculus_client.cpp
@@ -45,10 +45,10 @@ void signalHandler(int signo) {
45
}
46
47
double mean_image_intensity( const liboculus::ImageData &imageData ) {
48
- double f;
+ double f=0;
49
for ( int r = 0; r < imageData.nRanges(); ++r ) {
50
for ( int a = 0; a < imageData.nBeams(); ++a ) {
51
- f += imageData.at_uint32(a,r);
+ f += imageData.at_uint32(a, r);
52
53
54
f /= (imageData.nRanges() * imageData.nBeams());
0 commit comments