Anti-crosstalk is weakened for red. Crosstalk from red pixels is dimmer, so the background value should be reduced less to compensate. The expressions below are for the left eye view, compensating for crosstalk from the right-eye view. W weakens the anti-crosstalk for parts of the screen where crosstalk is less. The screen is divided into 16 horizontal bands.
Rows are the y.
In stereo on IBM workstations there are only 496 lines on the screen, or 492 lines on Silicon Graphics Inc. workstations, not the usual 1024. Really the rows are indexed in 1024-line frame buffer memory as the top 496 lines for the left eye and the bottom 496 lines for the right eye, but translation to that indexing scheme is straightforward. The corresponding right-eye pixel PxyRc produces the crosstalk. For the StereoGraphics CrystalEye right eye view compensate for crosstalk from the left eye view by exchanging L and R in the expressions above. The worst-case was an image covering the screen with no background showing through.