There are two images in this question. I want to overlay the img1
over img2
to see where they match and I want to do it manually:
img1 = Import["1.png"];
img2 = Import["2.png"];
Manipulate[
ImageCompose[img2, SetAlphaChannel[ColorNegate@img1, 0.5], {x, y}],
{{x, 0}, 0, 1000, 1}, {{y, 0}, 0, 1000, 1}]
This works for me, but I would like to align the two images by clicking and dragging one of the images over the other. How can I achieve this? I tried using a construct such as:
DynamicModule[{pt = {0,0}},
ClickPane[ImageCompose[img1,img2,pt], (pt=#)&
]
]
But it does not work, and even if it works, I have to click rather than drag one image over the other.