G'MIC Align layers, need help to get it work

@David_Tschumperle

Btw, should i fill the bug report, or do you let me know when it will be fixed ?

No need to fill a bug report, I’m aware of the issue now :slight_smile:
Anyway, can’t say when it will be fixed.

Ok, no problem, just please let me know when it will be fixed.
Thanks

That should be fixed now, at least for the rigid alignment
(which is a bit misnamed, because it actually only manages translations, not scaling).

If you are using G’MIC 2.8.0+, just try the ‘Update filters’ button, and see if that works for you.

1 Like

Hi,

yes, now it’s perfect.

Thank you very much for such a quick work.

1 Like

Dear David, it does not work for me, also after the update. GIMP 2.10.14, G’MIC 2.9.0 on Windows. Preview shows the right alignment, but the output layers are not aligned.

Hello @Wladimir_K

Just out of curiosity, I have just tested myself this filter.
I also run G’MIC 2.9 with GIMP 2.10.18 (on Windows 10).

To test this filter I have downloaded the ZIP with 3 jpeg images: see 3° message of Komodo Martin, on this same thread, where he posts his link on Nextcloud (GMIC-Align).

On my setup it works.
In that all 3 layers are correctly aligned.

@Wladimir_K Welcome to the forum!

Sometimes update doesn’t work. Try again later.

Please tell us where you got GIMP and G’MIC from. Usually the source, how you downloaded and installed it, plus the OS, makes a difference.

I downloaded the G’MIC from this site: Download GMIC latest release

GIMP was downloaded from the gimp.org

It was just normal windows installation

I have win 10 x64

Maybe I’m doing smth. wrong. I’he tryed all possible setups, Rigid, Non-Rigid, smoothness from 0 to 1, it does nothing. The resulting layers are just equal to the input layers, their position did not change.

Just to be sure : have you set the Input mode to All layers for this filter ?
One could easily forget it and get no result at all.

Hello @David_Tschumperle

Just tested on:
Windows 10 (64 bit)
GIMP 2.10.18
tested both G’MIC 2.9 and G’MIC 2.8.4

I have downloaded the GMIC_ALIGN zip file from this same post in order to have a commun base to check the 3 jpeg images within this folder.

With both 2.9 and 2.8.4 G’MIC versions the 3 layers (jpeg of the zip) are not cropped.
When you check with GIMP the result, the 3 layers look aligned though (but are not cropped to make them fit).
In the past I recall they were also cropped to fit them.

I’he set input mode to “all visible layers”.
I found also an interesting issue, the alignment works sometimes for images which was previously edited by Hugin’s software.
If I take the *.jpg images directly from my camera, the alignmet doesn’t work. Here you can try my set: https://drive.google.com/open?id=1p__ckKxdzL6yYpssZx-oPKg01meJOXWm

Thanks @Wladimir_K for providing me the data to reproduce the bug.
It seems the phase correlation method I’m using for registering the images doesn’t work quite well with large images. I’ve made a fix, and currently generating the filter update with it.

Maybe you could check in a few minutes (10-15 maybe), by refreshing your filters, and try the filter again, with the rigid mode.
Waiting for your feedback :slight_smile:

Hello @Wladimir_K

Just downloaded your jpeg images.
Tested with GIMP 2.10.18 - G’mic 2.9 (Windows 10 - 64 bit).

I had to compress them otherwise, with their full size G’MIC “choked” by trying to apply the filter (CPU I7 + 8 Gb RAM) :slight_smile:
In short, Gimp was “freezing” due to the task ahead.

As usual, the output of the images show them correctly “aligned” but they are not “cropped” to make them fit. (in the past it was different but I may be wrong…)

As it is David’s help is mandatory here :slight_smile:

Here is my screenshot:

I’m not sure they was cropped before, but in any case, I don’t think that auto-cropping is a desirable behavior here.

hello @David_Tschumperle

I don’t think that auto-cropping is a desirable behavior here.

You are the real expert here :slight_smile: :slight_smile:

In the past, for this topic, I have recorded a video tutorial as regards this filter (G’MIC version 2.8.3). The goal was to take a look of it when needed.

Here it is is (I can’t drag this mp4 here because it is not “recognized” as valid format):

If you take a look at the very end of this video you will notice that the 3 jpeg images are cropped to make them fit.
As it is now, this filter is perfectly fine for me.
I was just curious myself about the change in its behaviour :slight_smile:

But anyway, thanks a lot for your help. It is really appreciated! :slight_smile:

Now it works!
Thank you a lot for your work!

1 Like

I’m using G’MIC 3.0.0, with the Align Layers having a latest update of 1 november 2020

I’m also getting the mentioned earlier behavior of the preview working nicely, but not the end result… did this error somehow come back perhaps?

Ah I think I’ve found the reason for why it wasn’t working for me: the overal size of the various images I was aligning (from various x-ray machines in my case) was too different. Cropping beforehand helped. Still odd that the preview did work correctly though, right

1 Like