A method for blending a first image and a second image having overlapping fields of view, comprising: receiving a first image and a first set of camera parameters which were used when capturing the first image, and a second image and a second set of camera parameters which were used when capturing the second image, wherein the first image and the second image are aligned with each other, wherein the first image and the second image have fields of view which overlap in an overlapping region (402, 502) of the first and the second image and which do not overlap in a non-overlapping region (404a, 404b, 504a, 504b) of each of the first and the second image, and wherein the overlapping region (402, 502) has a first portion (402a, 502a) and a second portion (404b, 505b) which are adjacent to each other such that a boundary (406, 506) is defined between the first portion (402a, 502a) and the second portion (404b, 505b), the first portion (402a, 502b) further being adjacent to the non-overlapping region (404a, 504a) of the first image but not to the non-overlapping region (404b, 504b) of the second image, and the second portion further being adjacent to the non-overlapping region (404b, 504b) of the second image but not to the non-overlapping region (404a, 504a) of the first image, blending the first image and the second image in a blending region, characterized by selecting the blending region (406, 506) as those pixels in the overlapping region (402, 502) which are closer than a distance from the boundary (406, 506) between the first portion (402a, 502a) and the second portion (402b, 502b), wherein the distance is selected based on similarity between the first set of camera parameters and the second set of camera parameters such that the distance decreases with increasing similarity. receiving a first image and a first set of camera parameters which were used when capturing the first image, and a second image and a second set of camera parameters which were used when capturing the second image, wherein the first image and the second image are aligned with each other, wherein the first image and the second image have fields of view which overlap in an overlapping region (402, 502) of the first and the second image and which do not overlap in a non-overlapping region (404a, 404b, 504a, 504b) of each of the first and the second image, and wherein the overlapping region (402, 502) has a first portion (402a, 502a) and a second portion (404b, 505b) which are adjacent to each other such that a boundary (406, 506) is defined between the first portion (402a, 502a) and the second portion (404b, 505b), the first portion (402a, 502b) further being adjacent to the non-overlapping region (404a, 504a) of the first image but not to the non-overlapping region (404b, 504b) of the second image, and the second portion further being adjacent to the non-overlapping region (404b, 504b) of the second image but not to the non-overlapping region (404a, 504a) of the first image, blending the first image and the second image in a blending region, characterized by selecting the blending region (406, 506) as those pixels in the overlapping region (402, 502) which are closer than a distance from the boundary (406, 506) between the first portion (402a, 502a) and the second portion (402b, 502b), wherein the distance is selected based on similarity between the first set of camera parameters and the second set of camera parameters such that the distance decreases with increasing similarity.