wangzhizhou / Fish-eye-Image-Correction-Code

This is my paper "Correction of single circular fisheye image" related program code
249 stars 103 forks source link

How to stitch the images in ImagesForTest /8 #14

Open scottcali opened 4 months ago

scottcali commented 4 months ago

Hi,

How to stitch the images in ImagesForTest /8?

I got the error stitch fails.

Many thanks!

-Scott

scottcali commented 4 months ago

Can't stitch images, error code = 1

scottcali commented 4 months ago

It looks like how to find CircleParameter is the key that can stich those images.

scottcali commented 4 months ago

To stitch the images in ImagesForTest /9, if I use the orginal size, the width stitched image = 35708 which is more than SHRT_MAX=2^(31)=32768, that fails: opencv 4.9.0 file - modules/imgproc/src/imwarp line 1744 CV_Assert( dst.cols < SHRT_MAX && dst.rows < SHRT_MAX && src.cols < SHRT_MAX && src.rows < SHRT_MAX );

Later if I resize the images in ImagesForTest /9 to 80% of original size, I got the same error "Can't stitch images, error code = 1"

I can stitch the images in ImagesForTest /1, which are smaller.

scottcali commented 4 months ago

Later if I resize the images in ImagesForTest /9 to 50% of original size, it works. But the results is not looking right ...

scottcali commented 4 months ago

corrected0 corrected1 corrected2 corrected3 panorama

scottcali commented 4 months ago

Use these pamameters to stitch the images in ImagesForTest /9 N_slider_value = 5; thresholdValue_slider_value = 24;

scottcali commented 4 months ago

Use these pamameters to stitch the images in ImagesForTest /8 with 50% resize: N_slider_value = 15; thresholdValue_slider_value = 6;

Failed:

corrected0 corrected1 corrected2 corrected3