seung-lab / euclidean-distance-transform-3d

Euclidean distance & signed distance transform for multi-label 3D anisotropic images using marching parabolas.
GNU General Public License v3.0
239 stars 37 forks source link

fix: try using long int instead of int in key locations #24

Closed william-silversmith closed 4 years ago

william-silversmith commented 4 years ago

Trying to fix seg fault on huge arrays.

Resolves #23

william-silversmith commented 4 years ago

This allowed me to run the following script to completion:

import numpy as np
import edt

field = np.ones( (3000, 3000, 800), dtype=np.bool)
edt.edt(field, black_border=True)