OpenStitching / stitching

A Python package for fast and robust Image Stitching
Apache License 2.0
1.93k stars 148 forks source link

How can I fix "On entry to DLASCLS parameter number 4 had an illegal value" #158

Closed phamkhactu closed 9 months ago

phamkhactu commented 9 months ago

I have images. Then I config for stitch image.

stitcher = Stitcher(detector="sift", 
                    confidence_threshold=0.0001,
                    range_width=1,nfeatures=1000,
                    crop=False,
                    wave_correct_kind="no")

panorama = stitcher.stitch(images) 

I get error:

On entry to DLASCLS parameter number  4 had an illegal value

Maybe it comes from a litter point matching. I not sure that.

Do you give me some advance?

lukasalexanderweber commented 9 months ago

Can you run stitcher.stitch_verbose(images) and analyse the intermediate results?

phamkhactu commented 9 months ago

Hi @lukasalexanderweber,

After researching, I have another problem and question:

  1. with config crop is True or False, it cause a lot of affect in image: test bottom

  2. After that, I have 2 image have order, I want to merge. If I keep orig config, perhaps stitch merge them by horizontal. How to stitch it follow vertical. c1 bottom

Here is my configs:

stitcher = Stitcher( 
                    detector="sift", 
                    confidence_threshold=0.0001,
                    nfeatures=1000,
                    range_width=1,
                    crop=False
                    )
lukasalexanderweber commented 9 months ago

Is 1 the upper a result without cropping and the lower with cropping? I don't understand the second part

phamkhactu commented 9 months ago

yes upper as you understand, the second part, I want to combine 2 image for vertical, I hope result stitch as below: 09_result

lukasalexanderweber commented 9 months ago

Do you get an Error? Have you tried wave_correct_kind="vert"?

phamkhactu commented 9 months ago

Do you get an Error? Have you tried wave_correct_kind="vert"?

No, I don't get any error, but as you see that the stitch maybe omit some region on ceiling? for example the first picture in second part I asked you before? Do you have any suggestion?

lukasalexanderweber commented 9 months ago

I still don't completely understand your problem