Python Forum
Keeping Intersection of an Image Only
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keeping Intersection of an Image Only
#1
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:    
Final Image:    

Is there a way to program this in Python?

Thank you!
Reply
#2
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.
Reply
#3
Sorry, I just thought I posted the first one in the wrong thread.
Reply
#4
we can move threads
Recommended Tutorials:
Reply
#5
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Keeping up with IDEs and Virtual Environments... bytecrunch 7 2,514 Sep-05-2022, 08:04 PM
Last Post: snippsat
  Keeping a value the same despite changing the variable it was equated to TheTypicalDoge 2 1,461 Mar-13-2022, 10:50 PM
Last Post: Yoriz
  Problem keeping the window up benlyboy 11 4,149 Jan-24-2020, 02:12 AM
Last Post: tamilselvisubbiah
  merging lists, dedup and keeping order, in older pythons Skaperen 3 3,166 Oct-19-2018, 01:30 AM
Last Post: ODIS
  help with keeping score W3BL3Y 2 6,264 Apr-29-2018, 01:12 PM
Last Post: W3BL3Y
  Finding the intersection of interpolated curves Tina 1 4,160 Mar-23-2017, 05:33 PM
Last Post: zivoni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020