We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I've generated a contour map which gives me a black and white image with edges that are 1 px thick. I'm trying to figure out a quick way to get the position t (percentage of the whole curve length 0 to 1) of the bezier curve where the underlying pixel is white. So far it tried iterating through the whole curve with various precisions for t (1/100, 1/1000, 1/10000) but because its not a linear interpolation sometimes the pixel is not detected because the step was too large at that particular section of the curve. My other thought is to rasterize the curve and compare the pixel arrays to find the intersections and then get the position t from the x,y values. But I'm not sure how to do that or even if its a good approach.
Let me know if you have any ideas.