How to use the pyconrad.ClassGetter function in pyconrad

To help you get started, we’ve selected a few pyconrad examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github csyben / PYRO-NN / deep_ct_reconstruction / ct_reconstruction / helpers / phantoms / circle.py View on Github external
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))

pyconrad

Python wrapper for CONRAD (https://www5.cs.fau.de/conrad/), a framework for cone beam radiography

GPL-3.0
Latest version published 4 years ago

Package Health Score

39 / 100
Full package analysis