Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
size_y = 300
# circle
cricle_phantom = circle([size_y, size_x], [50, 50], 30, 1)
pyc.imshow(cricle_phantom, 'phantom1')
# ellipse
ellipse_phantom = ellipse([200, 200], [50, 50], [11, 31], 1, np.radians(18.0))
pyc.imshow(ellipse_phantom, 'phantom2')
# my_shepp_logan
my_shepp_logan = shepp_logan_numpy([size_y, size_x])
pyc.imshow(my_shepp_logan, 'my_shepp_logan')
# pyconrad shepp logan
_ = pyc.ClassGetter('edu.stanford.rsl.tutorial.phantoms')
shepp_conrad = _.SheppLogan(size_x, True).as_numpy()
pyc.imshow(shepp_conrad, 'shepp_conrad')
# difference
abs_diff = np.abs(my_shepp_logan - shepp_conrad)
pyc.imshow(abs_diff, 'diff')
print('difference: ', np.sum(abs_diff))