Skip to content

Commit e08b376

Browse files
authored
Merge pull request #1232 from MouseLand/3d_stitching_1127
read image as 3d if stitch_threshold > 0 credit @Harrison-Oatman
2 parents 7e194bc + 17b4d2c commit e08b376

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cellpose/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ def _evaluate_cellposemodel_cli(args, logger, imf, device, pretrained_model, nor
206206
z_axis = args.z_axis
207207

208208
for image_name in tqdm(image_names, file=tqdm_out):
209-
if args.do_3D:
209+
if args.do_3D or args.stitch_threshold > 0.:
210+
logger.info('loading image as 3D zstack')
210211
image = io.imread_3D(image_name)
211212
if channel_axis is None:
212213
channel_axis = 3

0 commit comments

Comments
 (0)