image-align icon indicating copy to clipboard operation
image-align copied to clipboard

How to align this two image

Open Juddd opened this issue 6 years ago • 2 comments

I have dig your project some times. I can use your code by Cmake method and no building method both. But it give a bad result for me. Maybe this is a disturb issues but I hope to get you help still if you are available. And it very very similar your this project

If I have a such empty paper, then I write some text on it,then I deform it in Photoshop. So I get such result. Now hope this result image align that empty paper. I mean this is my expected. Actually I can do it almost by other language. I just not very familiar the OpenCV. This is my try by Mathematica

Before Align

After Align

But I have to implement it by c++ and OpenCV now. Could you give me a hand?

Juddd avatar Sep 07 '17 17:09 Juddd

Hi, not sure if I correctly understand what you are trying to accomplish. To align the images, the images already need to be 'close' in a sense that the transformation that you are searching for is small. I doubt that this is true for your input images. You might be better off to first find a coarse transformation using a feature based approach, then fine-tune that transformation using image-align.

cheind avatar Sep 10 '17 16:09 cheind

In my case, this image is tpl and this image is target. Is it correct?And little confusion,after I run a.align(w, 30, 0.003);. Where is the result? Is should not have a imwrite to give a output to the local disk?

Juddd avatar Sep 10 '17 17:09 Juddd