Wozu diese 10 Messpunkte? Die Abfrage wäre von der Idee:
max=0
maxpunkt =(0,0)
—
For x = 0 to Breite
..For y = 0 to Höhe
….if Luma(x,y)>max
……max = farbe(x,y)
……maxpunkt = (x,y)
—
Max Helligkeit = max
Position = maxpunkt(x,y)
Und natürlich kannst Du es auch im Lab-Raum machen, dann entfällt die Umrechnung Luma(RGB->YUV).