Skip to content

Commit

Permalink
#5 The timing of ndi should include conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
carljohnsen committed Mar 7, 2024
1 parent b41402e commit d324edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processing_steps/0900_generate_gauss_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def gauss_kernel(sigma):
Image.fromarray(toint((np.max(np.abs(result),axis=2)!=0).astype(float))).save(f'{output_dir}/{sample}-gauss-yz-nonzero.png')

if verify: # generate ndimage comparison
control = (implant_mask>0).astype(internal_type)
start = timeit.default_timer()
control = (implant_mask>0).astype(internal_type)
for _ in tqdm(range(reps), desc='ndimage repititions'):
control[:] = ndi.gaussian_filter(control, sigma_voxels, mode='constant', cval=0)
control[implant_mask] = 1 # Illuminate
Expand Down

0 comments on commit d324edc

Please sign in to comment.