Curves from image sampler


I am trying to get the curves from an image using image-sampler. I reduce the image to black and white so I can get 0 and 1 values and then try to group them but the result is not even close to what I want. My idea is to get a similar texture to the one on the picture but based on lines.

any ideas? I think that I am not following the right path to solve this.
thank you (917.9 KB)

Have you come across Rooster?