Segmentation from curved plane by markup points

thank you for your response. Yes in fact, I probably mis explained my target, here it is in image :


Also I have a second question : how can I make relative threshold (percentage) based on a local maximum ? : Thank you very much for your help