Get the texture color and display in polydata by sliding the mouse

I’m a newbie in vtk, I’m facing a problem now, I have a stl model, I have projectedTexture mapping on it, now I’m trying to pass the mouse, read the texture color of the mouse position and display it, I think it should be The texture is converted into a scalar, and then the coordinates are obtained through pick to obtain its scalar value. How should I do it? best wishes!