This is a python implementation for stitching images by automatically searching for overlap region.
from src.main import main
from src.utils.visualizer import result_visualize
merged_image, cand = main(
image1=image1, # The first image to be combined
image2=image2, # The second image to be combined
min_overlap=(5, 5), # The minimum overlap region
verbose=False, # Whether to print the log
)
result_visualize(
image1=image1, # The first image to be combined
image2=image2, # The second image to be combined
merged_image=merged_image, # The output image
cand=cand, # The parameters
)
The results using CIFAR-10
are shown below. I would refer you to tutorial.ipynb
for detailed results.
Figure 1. The example of input images. The red area represents an empty region. This application can combine these images while considering their rotation.
Figure 2. The preprocessed input images. This rotation process is necessary to accurately combine the images. The green frame represents the overlap region between the input images.
Figure 4. The overview of this application in limited case.
This application is designed based on the overlap region's width
Figure 5. The overview of this application.
However, the above approach is not always applicable, specifically when
💙 If you like this app, give it a ⭐ and share it with friends!
💥 For questions or issues, feel free to open an issue. I appreciate your feedback and look forward to hearing from you!