Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment for image sequence #6768

Open
roshan-g20 opened this issue Oct 8, 2023 · 7 comments
Open

Alignment for image sequence #6768

roshan-g20 opened this issue Oct 8, 2023 · 7 comments

Comments

@roshan-g20
Copy link

Is your feature request related to a problem? Please describe.

Actually I use evaluate sequence filter a lot of times to merge down photos, but after merging them into single file they're misaligned when the source photos are taken handheld, and that's the problem for me.

Describe the solution you'd like

I'd like the developers to create a alignment tool for imagemagick which imports source images, aligns them in all possible directions/axis, gives user the option in different levels (integer) to control how many points on source images to scan (details to scan for aligning with other image), then after alignment crop the rest of the sides which are not the part of the image, and after all this process, the images should be saved in either a format which will save the images as different layers like xcf or tiff etc or give user the option to save images differently as per their input names.

Describe alternatives you've considered

I've visited the snibgo page for image alignment but it was for windows, I have 0.01% knowledge of coding but I did understand that there script made by him was for windows, his page links:
https://im.snibgo.com/simpalign.htm
https://im.snibgo.com/alignpnt.htm

I've earlier tried to put the image sequence uncompressed in a video file using Ffmpeg and then stabilize the whole video using vidstab filter, then extract the individual uncompressed frames, and then use it in evaluate sequence filter, but neither the video was ever created and neither stabilized,
Alternative options are using python etc but I avoid it they're too complicated for me 😅,
So I want imagemagick to have this feature by itself so that I won't have to wonder here and there

Additional context

No response

@snibgo
Copy link

snibgo commented Oct 8, 2023

I'd like the developers to create a alignment tool ...

Such a tool exists: https://wiki.panotools.org/Align_image_stack . See https://hugin.sourceforge.io/download/ for downloads. This isn't part of ImageMagick. It is a specialist, high-level solution.

Yes, I show a variety of low-level techniques that can be used with ImageMagick. But the overall problem is quite difficult. For example, modern camera lenses have radial distortion (barrel or pincushion, and chromatic aberration) on the assumption that this will be corrected in digital post-processing. Align_image_stack automatically finds the appropriate corrections for this.

@roshan-g20
Copy link
Author

Hi developer,
I've used this align_image_stack via cli for image alignment but it generates output tiff files in quantity of input files which are around 40to 43mb, and they're generated by taking too much time, I've used options to downscale image by a large amount and a less grid size for faster processing but due to this there are misalignments, large sized too many tiff files etc, I've used this code (align_image_stack -a 0 -v -i -x -y -z -S -A -C -c 4 -s 4 -g 1 --use-given-order --align-to-first *.jpg), and I don't know what to do with that pto file option as it will be compatible with hugin itself, but I want every thing to be CLI based and fast, this method tough works but takes too much time I'd like imagemagick to do it by itself as I ultimately use imagemagick and sometimes enfuse for my purpose
Thanks

@snibgo
Copy link

snibgo commented Oct 9, 2023

... and they're generated by taking too much time ...

... this method tough works but takes too much time I'd like imagemagick to do it by itself ...

Why do you think that code created within ImageMagick would do the work faster than align_image_stack?

@roshan-g20
Copy link
Author

... and they're generated by taking too much time ...

... this method tough works but takes too much time I'd like imagemagick to do it by itself ...

Why do you think that code created within ImageMagick would do the work faster than align_image_stack?

Why can't ImageMagick handle this task, given its reputation as a powerful image manipulation program?
ImageMagick boasts a substantial user base and a dedicated team of skilled developers who could undoubtedly implement this feature with optimized code for faster processing and improved alignment. I'm hopeful that they will add this feature in the near future.
Personally, I'm a fan of ImageMagick, and I believe it would be ideal for this task better than align_image_stack which generates numerous large files instead of consolidating them into a single TIFF or exporting individually aligned and cropped images in various formats, ImageMagick's performance, especially in tasks like astrophotography or burst shooting (with 50-100 photos per burst @ 12MP), is exceptionally fast due to its use of 8 threads and substantial RAM utilization. My only problem is its inability to automatically align handheld/misaligned photos, which is a missing feature I hope they'll address soon. 😭🥲

@fmw42
Copy link

fmw42 commented Oct 9, 2023

The Imagemagick developers are very busy. They have other full time jobs. So enhancement requests have lower priority than fixing bugs. They may not get around to doing a significant task such as this for a while and there is no guarantee they will decide to do it. Feel free to implement this yourself and contribute it to Imagemagick.

@roshan-g20
Copy link
Author

The Imagemagick developers are very busy. They have other full time jobs. So enhancement requests have lower priority than fixing bugs. They may not get around to doing a significant task such as this for a while and there is no guarantee they will decide to do it. Feel free to implement this yourself and contribute it to Imagemagick.

I'm noob to coding& programming languages, I can just invoke and use ImageMagick and Ffmpeg from terminal by getting codes from Google💀, I'm just capable of contributing my suggestions nothing more than that 😅

@fmw42
Copy link

fmw42 commented Oct 9, 2023

Suggestions are welcome. But implementation may be a while off and at the discretion of the developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants