|
|
@ -619,9 +619,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Normalization |
|
|
for (int dx = x; dx < xlimit; dx++) |
|
|
for (int dx = x; dx < xlimit; dx++) |
|
|
{ |
|
|
{ |
|
|
int luminance = GetLuminance(rowSpan[dx], this.luminanceLevels); |
|
|
int luminance = GetLuminance(rowSpan[dx], this.luminanceLevels); |
|
|
|
|
|
histogram[luminance]++; |
|
|
// This is safe. The index maxes out to the span length.
|
|
|
|
|
|
Unsafe.Add(ref histogramBase, luminance)++; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|