Ask Your Question
0

Mimick Photoshop Clone Tool

asked 2014-01-22 19:59:04 -0600

MRDaniel gravatar image

Something to think about. Using OpenCV, how would you replicate photoshop's clone tool? Is it a point classifier? Does it use histograms? Watershed/graphcut?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-23 04:34:11 -0600

I would suggest the following steps

  1. Couple a mouse handler to your mousepointer for a specific window, let it store all points that you click forming a contour and draw it while you are doing it.
  2. Open an image in a window and draw the desired contour on the copy image.
  3. Based on the contour, create a mask that can cut out the selection.
  4. Now use that roi to place it somewhere else, could also be under mousepoint.
  5. Make use of opacity options for a perfect blending.
edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-01-22 19:59:04 -0600

Seen: 236 times

Last updated: Jan 23 '14