function center

Shifts the brightest pixel in X to the center.

Syntax
result = center(X)

Arguments
X:   A matrix.