Python Forum

Full Version: Keeping Intersection of an Image Only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to take a black and white image, place red lines over the top and keep only the part of the red line that intersects with the black.

Original Image: [attachment=449]
Final Image: [attachment=451]

Is there a way to program this in Python?

Thank you!
don't post the same question in multiple threads. We read them all. If your's hasn't been responded to right away, it may because someone is trying to solve before responding.
Multiple posts are clutter.
Sorry, I just thought I posted the first one in the wrong thread.
we can move threads
I figured it out. I just search every pixel and if it is black I draw a line in a canvas at that same coordinate. It replicates the image, leaving only the black portion. This is exactly what I want.