How to find certain line pattern on image

Hi @crackwitz,

I have one more question related to this topic. In some situations “split line” looks like this:

example

I want to find the beginning and the end of the “split line”.

The profile of of this line (with selected searched points) looks like this:

profile_selected_points

I tried to make this line smoother (by rolling average) and then make a gradient from it, but after smoothing the line the point in which the function’s value increase changes its position on the x value.

Do you have any idea how to get those points?