@@ -1038,7 +1038,7 @@ class Mosaic(object):
1038
1038
def __init__ (
1039
1039
self , aligner , shape , channels = None , ffp_path = None , dfp_path = None ,
1040
1040
flip_mosaic_x = False , flip_mosaic_y = False , barrel_correction = None ,
1041
- verbose = False
1041
+ pastefunc = utils . pastefunc_blend , verbose = False
1042
1042
):
1043
1043
self .aligner = aligner
1044
1044
self .shape = tuple (shape )
@@ -1049,6 +1049,7 @@ def __init__(
1049
1049
self .dtype = aligner .metadata .pixel_dtype
1050
1050
self ._load_correction_profiles (dfp_path , ffp_path )
1051
1051
self .verbose = verbose
1052
+ self .pastefunc = pastefunc
1052
1053
1053
1054
def _sanitize_channels (self , channels ):
1054
1055
all_channels = range (self .aligner .metadata .num_channels )
@@ -1149,7 +1150,7 @@ def assemble_channel(self, channel, out=None):
1149
1150
sys .stdout .flush ()
1150
1151
img = self .aligner .reader .read (c = channel , series = si )
1151
1152
img = self .correct_illumination (img , channel )
1152
- utils .paste (out , img , position , func = utils . pastefunc_blend )
1153
+ utils .paste (out , img , position , func = self . pastefunc )
1153
1154
# Memory-conserving axis flips.
1154
1155
if self .flip_mosaic_x :
1155
1156
for i in range (len (out )):
0 commit comments