98fcbb8769a94fb8d62297b33bec0b669febf7bc,medpy/io/header.py,,get_pixel_spacing,#Any#,20
Before Change
@return the image"s pixel spacing
@rtype tuple
try:
return __get_pixel_spacing_nibabel(hdr)
except Exception: pass
try:
return __get_pixel_spacing_pydicom(hdr)
except Exception: pass
try:
return __get_pixel_spacing_itk(hdr)
except Exception: pass
After Change
@rtype tuple
try:
if __is_header_nibabel(hdr):
return __get_pixel_spacing_nibabel(hdr)
elif __is_header_pydicom(hdr):
return __get_pixel_spacing_pydicom(hdr)
elif __is_header_itk(hdr):
return __get_pixel_spacing_itk(hdr)
else:
raise Exception()
except Exception:
raise AttributeError("The provided header {} is of unknown type or does not support queries for pixel spacing.".format(type(hdr)))
def get_offset(hdr):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: loli/medpy
Commit Name: 98fcbb8769a94fb8d62297b33bec0b669febf7bc
Time: 2013-05-27
Author: oskar.maier@googlemail.com
File Name: medpy/io/header.py
Class Name:
Method Name: get_pixel_spacing
Project Name: loli/medpy
Commit Name: 98fcbb8769a94fb8d62297b33bec0b669febf7bc
Time: 2013-05-27
Author: oskar.maier@googlemail.com
File Name: medpy/io/header.py
Class Name:
Method Name: set_pixel_spacing
Project Name: albermax/innvestigate
Commit Name: 9a5d9828d3cfd2378a40a9b218ed654a05f2b35f
Time: 2018-04-16
Author: work.alber.maximilian@gmail.com
File Name: innvestigate/analyzer/base.py
Class Name: AnalyzerNetworkBase
Method Name: compile_analyzer