Opencv : Add/merge/combine 'only Part' Of Image A To Image B
I have checked out some already answered questions regarding adding(combining/merging) two images withOpenCV. But my question is a bit different here. I want to add/merge/combine o
Solution 1:
Your questions is not very clear - you don't specify exactly what you know about the input images.
Assuming that you somehow identify the regions to cut in both images (and this is the hard part), then it becomes a trivial compositing procedure. The basic algorithm uses a "matte", i.e. an black/white image of the same size as the original one, white in the first image's (background) areas to keep, and black elsewhere. You multiply the first image by the matte, and the second one by the matte's negative, and you sum the results.
Post a Comment for "Opencv : Add/merge/combine 'only Part' Of Image A To Image B"