How to export Markups point coordinates as another coordinate system

When I use the Markup function in the Slicer to label a point and export the coordinates as json, the red box and coordinate value are saved.

I found that the coordinates are in the LPS coordinate system. However, I need the coordinates of the yellow box. Can anyone tell me how to export those coordinates or how I can convert the LPS coordinates to yellow box coordinates?

This should help: https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#get-volume-voxel-coordinates-from-markup-control-point-ras-coordinates