From ff0a38d6af118f34933ce4aa5cce14374bee557b Mon Sep 17 00:00:00 2001 From: Mahesh Madhav Date: Tue, 3 Sep 2024 05:11:44 +0000 Subject: [PATCH] Fix function definition and comment to match cpp file --- src/lstm/networkio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lstm/networkio.h b/src/lstm/networkio.h index a5e7a80be4..6fb80e5f5d 100644 --- a/src/lstm/networkio.h +++ b/src/lstm/networkio.h @@ -92,7 +92,8 @@ class TESS_API NetworkIO { // pixel: the value of the pixel from the image (in one channel) // black: the pixel value to map to the lowest of the range of *this // contrast: the range of pixel values to stretch to half the range of *this. - void SetPixel(int t, int f, int pixel, float black, float contrast); + // inv_contrast: one over the contrast, to save a divide + void SetPixel(int t, int f, int pixel, float black, float inv_contrast); // Converts the array to a Pix. Must be pixDestroyed after use. Image ToPix() const; // Prints the first and last num timesteps of the array for each feature.