There sure are multiple ways to achieve this. Some of them would be :
GLSL
extract the pixel colors using a TOPto CHOP and either use some python expression or use the Crop option directly in the TOPto CHOP to grab the sample you need
use a Crop TOP to isolate the pixel you need and then use the TOPto CHOP to get the pixel values
…