Author |
Topic |
|
jrpcguru
USA
266 Posts |
Posted - Sep 26 2023 : 19:30:47
|
I created a multi-page TIF file to illustrate my problem and your website would not let me attach the file, probably because it was 55meg. This file would have shown the source images, step by step, that yielded the problem. I've attached 3 .JPG which show the result of trying to use JoinBitmaps.
The source images, page 1 and 2, are scans of different sections of a newsletter that is too big to fit on the scanner. Since the help file says that StripOverlap requires less than 50%, I cropped each page to minimize the overlap.
I use the following code: ImageEnView1.IEBitmap.JoinBitmaps( iIEBitmap1, iIEBitmap2, false, clWhite, true, 0.5, 1 ); // (I've tried other values for MinEquality and Coverage) I've also tried different degrees of overlap.
The sample images for stitching.JPG is the result. Clearly something isn't working right.
Is there a way to automatically align the two images vertically, before stitching them together?
It appears that the overlap area is reversed with the right hand image showing on the left side of the overlap.
The demo apparently cuts apart a single image, then reassembles it while removing overlap. In the real world, I need to make multiple scans of a large object like this newsletter and stitch the pages together so they appear like the original. I can do this in Photoshop Elements, but I really want my scanning program to be able to scan several sections and assemble them properly.
I'm using D10.3 and IE12.5.0.
J.R. |
|
xequte
38609 Posts |
Posted - Sep 27 2023 : 19:02:17
|
Hi JR
The JoinBitmaps() method does not support offset images like this, unfortunately. This is more of a task for stitching, but stitching fails here with ERR_NEED_MORE_IMGS. We are investigating whether that can be improved.
Nigel Xequte Software www.imageen.com
|
|
|
jrpcguru
USA
266 Posts |
Posted - Sep 27 2023 : 19:47:02
|
I expected that JoinBitmaps would not support an offset image. It is nearly impossible to scan multiple sections of a large object without having an offset, so I wonder if there is a separate step that I haven't found in ImageEn that will align them so that JoinBitmaps can do its magic? Or maybe some fancy code to accomplish the alignment? My sample images make alignment easy with the borders, but trying to do it with a mouse wouldn't work well.
J.R. |
|
|
xequte
38609 Posts |
Posted - Sep 28 2023 : 18:52:24
|
Hi JR
I think the improvements we are making to stitching will be a better solution for you. However your images will probably need more overlap to work successfully.
Email me if you want to beta test it.
Nigel Xequte Software www.imageen.com
|
|
|
jrpcguru
USA
266 Posts |
Posted - Sep 28 2023 : 19:20:43
|
I'm glad to hear you are working on improvements.
I tried several degrees of overlap, since the help file suggested there were limits to the overlap. The result in my case was positively weird, since the overlap from the left image was added to the right of the overlap from the right image. I started with the original separate page scans which probably had a 50% overlap and shrank the overlap down via cropping, and never found anything that worked. I'm hoping my failure is because of the lack of vertical alignment.
I'm curious what the current version of JoinBitmaps was designed to do? It works well for combining front and back of a check, but when you added the overlap removal, I'm having trouble figuring what problem was addressed? I sure hope this does become a slick new feature since it would sure be handy to be able to scan large documents and stitch them back together, all within my scanning program.
J.R. |
|
|
xequte
38609 Posts |
Posted - Sep 30 2023 : 17:23:42
|
Hi JR
If there is offset then you'll need to use stitching rather than joining. We are working on improvements to that now.
Nigel Xequte Software www.imageen.com
|
|
|
|
Topic |
|
|
|