Currently, the extract centerline module allows the removal of branches by clicking on the endpoints.
I would like to know if it’s possible to do the same task using a set of input coordinates (coordinates of
endpoints/free ends or junction points) specified by the user.
Yes, you can get index of a control point based on its position and remove it by calling methods of the markups node.
I have the indices of the position using
I am not sure how to do this. May I know if examples are available to understand how this can be done?
These should be all fairly straightforward and it is hard to guess where you might have stuck. Please share the script that you are trying to use and indicate where it does not work as expected.