amaazetools 0.2.1__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {amaazetools-0.2.1/amaazetools.egg-info → amaazetools-0.2.3}/PKG-INFO +1 -1
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools/dicom.py +5 -3
- {amaazetools-0.2.1 → amaazetools-0.2.3/amaazetools.egg-info}/PKG-INFO +1 -1
- {amaazetools-0.2.1 → amaazetools-0.2.3}/pyproject.toml +1 -1
- {amaazetools-0.2.1 → amaazetools-0.2.3}/LICENSE +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/MANIFEST.in +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/README.md +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools/__init__.py +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools/edge_detection.py +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools/mesh_segmentation.py +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools/svi.py +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools/trimesh.py +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools.egg-info/SOURCES.txt +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools.egg-info/dependency_links.txt +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools.egg-info/requires.txt +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/amaazetools.egg-info/top_level.txt +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/setup.cfg +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/setup.py +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/src/cextensions.c +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/src/memory_allocation.c +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/src/memory_allocation.h +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/src/mesh_operations.c +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/src/mesh_operations.h +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/src/svi_computations.c +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/src/svi_computations.h +0 -0
- {amaazetools-0.2.1 → amaazetools-0.2.3}/src/vector_operations.h +0 -0
|
@@ -876,7 +876,7 @@ def seg_adjacency_matrix(u):
|
|
|
876
876
|
return M,X,Y
|
|
877
877
|
|
|
878
878
|
|
|
879
|
-
def surfacing_subproc(filename,directory,iso_level,write_gif=False,
|
|
879
|
+
def surfacing_subproc(filename,directory,iso_level,write_gif=False,mirror=False):
|
|
880
880
|
|
|
881
881
|
print('Loading '+filename+'...')
|
|
882
882
|
M = np.load(os.path.join(directory,filename))
|
|
@@ -909,7 +909,7 @@ def surfacing_subproc(filename,directory,iso_level,write_gif=False,miror=False):
|
|
|
909
909
|
|
|
910
910
|
|
|
911
911
|
|
|
912
|
-
def surface_bones_parallel(directory, iso=2500, write_gif=False,error_fname='./surfacing_errors.csv',ncores='all'):
|
|
912
|
+
def surface_bones_parallel(directory, iso=2500, write_gif=False, mirror=False, error_fname='./surfacing_errors.csv',ncores='all'):
|
|
913
913
|
""" parallelized implementation of surface_bones with also surfacing error support.
|
|
914
914
|
Processes all npz files in directory creating surface and saving to a ply file.
|
|
915
915
|
|
|
@@ -921,6 +921,8 @@ def surface_bones_parallel(directory, iso=2500, write_gif=False,error_fname='./s
|
|
|
921
921
|
Iso level to be used for surfacing.
|
|
922
922
|
write_gif : bool (optional), default=False
|
|
923
923
|
Whether to output rotating gifs for each object. Requires mayavi, which can be hard to install.
|
|
924
|
+
mirror : bool (optional), default=False
|
|
925
|
+
Whether to mirror bones when surfacing.
|
|
924
926
|
error_fname
|
|
925
927
|
|
|
926
928
|
Returns
|
|
@@ -941,7 +943,7 @@ def surface_bones_parallel(directory, iso=2500, write_gif=False,error_fname='./s
|
|
|
941
943
|
else:
|
|
942
944
|
num_cores =multiprocessing.cpu_count()
|
|
943
945
|
|
|
944
|
-
errs = Parallel(n_jobs=num_cores)(delayed(surfacing_subproc)(f,directory,iso,write_gif) for f in fnames)
|
|
946
|
+
errs = Parallel(n_jobs=num_cores)(delayed(surfacing_subproc)(f,directory,iso,mirror,write_gif) for f in fnames)
|
|
945
947
|
|
|
946
948
|
errs = np.array(errs)
|
|
947
949
|
errs = errs[errs!='0']
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|