give it a solution tu use [convert -normalize] but ignore any edges of a image ?
for example:
only calculate 85% (yellow part) of the image and ignore 15% of the edges.
the result have to be like my image out.jpg, (but with the edges !!) .
my example image in.jpg , white or black areas (edges) can significantly skew the calculation of color balance if not ignored.
the wrong output is the same like the in-file

greetings from Switzerland
pet