I am quite new to Opencv and DIP in general so needed bit of help in stitching of two images.The problem background is , there are two pieces which have their adhesives/glue torn apart from two joined pieces of plastic. This is the image of "glue" on the base 

As the background of the the images is not same , so I read that its not possible to do stitching(because different features). And these two pieces are like jigsaw pieces which needs to rotated , so the problem is not straightforward like panaroma stitching. So my question is , how do I join such images together , it would be really helpful if i could have some guidance. Thanks in advance :)
I was thinking of finding the white color countours and then keeping one image fixed , rotating the other one and finding area of merged countours, also storing the angle of what I rotate. Area would become least when there would be perfect match.
↧