amaazetools 0.2.5__tar.gz → 0.2.6__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.5/amaazetools.egg-info → amaazetools-0.2.6}/PKG-INFO +1 -1
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/dicom.py +10 -2
- {amaazetools-0.2.5 → amaazetools-0.2.6/amaazetools.egg-info}/PKG-INFO +1 -1
- {amaazetools-0.2.5 → amaazetools-0.2.6}/pyproject.toml +1 -1
- {amaazetools-0.2.5 → amaazetools-0.2.6}/LICENSE +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/MANIFEST.in +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/README.md +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/__init__.py +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/edge_detection.py +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/mesh_segmentation.py +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/svi.py +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/trimesh.py +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools.egg-info/SOURCES.txt +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools.egg-info/dependency_links.txt +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools.egg-info/requires.txt +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools.egg-info/top_level.txt +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/setup.cfg +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/setup.py +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/src/cextensions.c +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/src/memory_allocation.c +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/src/memory_allocation.h +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/src/mesh_operations.c +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/src/mesh_operations.h +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/src/svi_computations.c +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/src/svi_computations.h +0 -0
- {amaazetools-0.2.5 → amaazetools-0.2.6}/src/vector_operations.h +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#Utilities for processing dicom volumes
|
|
2
2
|
import pandas as pd, numpy as np
|
|
3
|
+
import datetime
|
|
3
4
|
import matplotlib.pyplot as plt
|
|
4
5
|
import pydicom as dicom
|
|
5
6
|
import scipy.ndimage as ndimage
|
|
@@ -382,7 +383,11 @@ def surface_bones(directory, iso=2500, write_gif=False, mirror=False):
|
|
|
382
383
|
mesh.flip_normals()
|
|
383
384
|
|
|
384
385
|
#Write to ply file
|
|
385
|
-
mesh_filename = os.path.join(directory,filename[:-4]+'_iso%d'%iso_level)
|
|
386
|
+
#mesh_filename = os.path.join(directory,filename[:-4]+'_iso%d'%iso_level)
|
|
387
|
+
date_time = datetime.now().strftime("%Y%m%d_%H%M")
|
|
388
|
+
basename = os.path.splitext(filename)[0] # If we are ever concerned about varying filing extension lengths
|
|
389
|
+
mesh_filename = os.path.join(directory, basename + '_iso%d' % iso_level + '_original_' + date_time)
|
|
390
|
+
|
|
386
391
|
print('Saving mesh to '+mesh_filename+'...')
|
|
387
392
|
mesh.to_ply(mesh_filename+'.ply')
|
|
388
393
|
|
|
@@ -898,7 +903,10 @@ def surfacing_subproc(filename,directory,iso_level,write_gif=False,mirror=False)
|
|
|
898
903
|
mesh.flip_normals()
|
|
899
904
|
|
|
900
905
|
#Write to ply file
|
|
901
|
-
mesh_filename = os.path.join(directory,filename[:-4]+'_iso%d'%iso_level)
|
|
906
|
+
#mesh_filename = os.path.join(directory,filename[:-4]+'_iso%d'%iso_level) #This is the old one
|
|
907
|
+
date_time = datetime.now().strftime("%Y%m%d_%H%M")
|
|
908
|
+
basename = os.path.splitext(filename)[0] # If we are ever concerned about varying filing extension lengths
|
|
909
|
+
mesh_filename = os.path.join(directory, basename + '_iso%d' % iso_level + '_original_' + date_time)
|
|
902
910
|
print('Saving mesh to '+mesh_filename+'...')
|
|
903
911
|
mesh.to_ply(mesh_filename+'.ply')
|
|
904
912
|
|
|
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
|