Computer-implemented method for aligning at least one part of a second digital image with at least one part of a first digital image comprising the following steps: a) dividing the at least one part of the first digital image into a plurality of tiles t_fi={t_fi1,t_fi2,...,t_fin} with n being a positive integer; b) dividing the at least one part of the second digital image into a plurality of tiles t_si={t_si1,t_si2,...,t_sin}, wherein each tile t_siv with v ∈ {1,2,...n} of the plurality of tiles t_si corresponds to one respective tile t_fiv of the plurality of tiles t_fi; c) creating a plurality of correlation images fci = { fci_ 1, fci_2 ,... fci_n'} by computing the correlation between each tile t_fiν' and the corresponding tile t_siv' with v' ∈ {1,2,...n'≤n}; d) determining the position of a global maximum correlation value p_v' for each of the plurality of correlation images fci _v'; e) calculating a plurality of first offset vectors fov = {fov_1, fov_2,...,fov_ n"}, the offset vector fov_v" with v" ∈ {1,2,...n"≤n'} representing the offset between the tile t_siv" and the corresponding tile t_fiv" being calculated by considering the center position of the corresponding correlation image fci_ν" and the position of the global maximum correlation value p _v" of the respective correlation image fci_v" with v" ∈ {1,2,...n"≤n'}; and f) aligning the at least one part of the second digital image with the at least one part of the first digital image by applying the corresponding first offset vectors fov, wherein step f) comprises transforming only the position of at least one object in the tile t_siv" by applying the corresponding first offset vector fov_ v". a) dividing the at least one part of the first digital image into a plurality of tiles t_fi={t_fi1,t_fi2,...,t_fin} with n being a positive integer; b) dividing the at least one part of the second digital image into a plurality of tiles t_si={t_si1,t_si2,...,t_sin}, wherein each tile t_siv with v ∈ {1,2,...n} of the plurality of tiles t_si corresponds to one respective tile t_fiv of the plurality of tiles t_fi; c) creating a plurality of correlation images fci = { fci_ 1, fci_2 ,... fci_n'} by computing the correlation between each tile t_fiν' and the corresponding tile t_siv' with v' ∈ {1,2,...n'≤n}; d) determining the position of a global maximum correlation value p_v' for each of the plurality of correlation images fci _v'; e) calculating a plurality of first offset vectors fov = {fov_1, fov_2,...,fov_ n"}, the offset vector fov_v" with v" ∈ {1,2,...n"≤n'} representing the offset between the tile t_siv" and the corresponding tile t_fiv" being calculated by considering the center position of the corresponding correlation image fci_ν" and the position of the global maximum correlation value p _v" of the respective correlation image fci_v" with v" ∈ {1,2,...n"≤n'}; and f) aligning the at least one part of the second digital image with the at least one part of the first digital image by applying the corresponding first offset vectors fov, wherein step f) comprises transforming only the position of at least one object in the tile t_siv" by applying the corresponding first offset vector fov_ v". <EOS>