mippy 2.20.2__tar.gz → 2.20.4__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.
- {mippy-2.20.2 → mippy-2.20.4}/PKG-INFO +1 -1
- {mippy-2.20.2 → mippy-2.20.4}/mippy/improcess.py +1 -1
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/philips_fallback.py +12 -2
- {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/PKG-INFO +1 -1
- {mippy-2.20.2 → mippy-2.20.4}/LICENSE +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/README.md +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/__init__.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/application.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/fileio.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/html.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/launcher.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/16_colors.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/blue.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/colours_roman.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/cyan.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/fire.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/green.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/green_fire_blue.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/hi_lo.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/ice.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/magenta.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/phase.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/physics.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/rainbow.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/red.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/red_green.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/spectrum.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/yellow.csv +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/math.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/__init__.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/anon.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/io.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/SIEMENS.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/__init__.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/ge_fallback.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/implementations.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/siemens_fallback.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/syngo_mr_xa20a.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/syngo_mr_xa31a.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/mrenhanced.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/mrspectroscopy.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/pixel.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/reading.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/siemens.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/xml.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/misc.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mlogging.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mviewer/__init__.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mviewer/config +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/mviewer/module_main.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/add.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/brain_bw.xbm +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/brain_orange.ico +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/common.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/dcmdjpeg_linux +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/dcmdjpeg_mac +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/dcmdjpeg_win.exe +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/ellipse_roi.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/freehand_roi.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/line_roi.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/mrs.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_circle.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_ellipse.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_freehand.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_line.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_rectangular.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_rectangular_ab.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/splash11.jpg +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/splash20.bmp +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/splash20.jpg +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/splash3.jpg +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/square_roi.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/subtract.png +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/splash.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/threading.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy/viewing.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/SOURCES.txt +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/dependency_links.txt +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/requires.txt +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/top_level.txt +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/scripts/_mippy.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/scripts/install_mippy.bat +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/scripts/install_mippy.py +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/scripts/mippy.bat +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/setup.cfg +0 -0
- {mippy-2.20.2 → mippy-2.20.4}/setup.py +0 -0
|
@@ -63,7 +63,7 @@ def find_object_geometry(image,subpixel=True,search_region=None,threshold=None,i
|
|
|
63
63
|
ellipse_val = best_ellipse.fun
|
|
64
64
|
rectangle_val = best_rectangle.fun
|
|
65
65
|
|
|
66
|
-
if ellipse_val
|
|
66
|
+
if ellipse_val <= rectangle_val:
|
|
67
67
|
result = best_ellipse.x
|
|
68
68
|
shapetype='ellipse'
|
|
69
69
|
elif ellipse_val > rectangle_val:
|
|
@@ -27,6 +27,16 @@ def get_image_orientation(dicom_ds):
|
|
|
27
27
|
print("ORIENTATION NOT DETECTED", orient)
|
|
28
28
|
return "UNKNOWN"
|
|
29
29
|
|
|
30
|
+
def is_number(s):
|
|
31
|
+
"""
|
|
32
|
+
Tests if a string is readable as a number
|
|
33
|
+
"""
|
|
34
|
+
try:
|
|
35
|
+
float(s)
|
|
36
|
+
except ValueError:
|
|
37
|
+
return False
|
|
38
|
+
return True
|
|
39
|
+
|
|
30
40
|
def get_sequence_type(dicom_ds):
|
|
31
41
|
try:
|
|
32
42
|
seq = dicom_ds.PulseSequenceName
|
|
@@ -324,10 +334,10 @@ def get_image_filter(dicom_ds):
|
|
|
324
334
|
|
|
325
335
|
def get_uniformity_correction(dicom_ds):
|
|
326
336
|
try:
|
|
327
|
-
syncra = dicom_ds[0x2005,0x10a1].value
|
|
337
|
+
syncra = str(dicom_ds[0x2005,0x10a1].value).upper()
|
|
328
338
|
except KeyError:
|
|
329
339
|
syncra = ''
|
|
330
|
-
imtype = dicom_ds.ImageType
|
|
340
|
+
imtype = str(dicom_ds.ImageType).upper()
|
|
331
341
|
clear = False
|
|
332
342
|
sense = False
|
|
333
343
|
|
|
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
|
|
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
|
|
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
|
|
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
|