[libcamera-devel] [PATCH] ipa: libipa: histogram: Fix typo

Kieran Bingham kieran.bingham at ideasonboard.com
Tue Aug 31 11:19:50 CEST 2021


On 31/08/2021 10:18, Laurent Pinchart wrote:
> "weighted", derived from the verb "to weight", comes from Middle English
> weight, weiȝte, weght, wight, from Old English wiht, ġewiht, from
> Proto-Germanic *wihtiz, from Proto-Indo-European *weǵʰ-. In none of
> those does the t come before the h.


Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>


> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
>  src/ipa/libipa/histogram.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ipa/libipa/histogram.cpp b/src/ipa/libipa/histogram.cpp
> index fb1eb2a2f0b1..4d94571f903a 100644
> --- a/src/ipa/libipa/histogram.cpp
> +++ b/src/ipa/libipa/histogram.cpp
> @@ -139,7 +139,7 @@ double Histogram::interQuantileMean(double lowQuantile, double highQuantile) con
>  		double freq = (cumulative_[bin + 1] - cumulative_[bin])
>  			* (std::min(p_next, highPoint) - lowPoint);
>  
> -		/* Accumulate weigthed bin */
> +		/* Accumulate weighted bin */
>  		sumBinFreq += bin * freq;
>  		/* Accumulate weights */
>  		cumulFreq += freq;
> 


More information about the libcamera-devel mailing list