Convert image x,y to threejs co-ordinate

Hello All,

I am new with threejs. I have been successful in converting an image in 3D. Using raycasting, I was able to track mouse and take necessary actions.

Now, my requirement has changed, instead of mouse, user wants to give manual input (X,Y) of the image co-ordinates.

My problem is I am unable to convert that X,Y with the threejs co-ordinate.

Any help will be much appreciated.

Thanks And Regards,
Rupak Banerjee.

these two examples might help