Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read data in mayo_rec #8

Open
Hznnn opened this issue Jul 15, 2020 · 1 comment
Open

Read data in mayo_rec #8

Hznnn opened this issue Jul 15, 2020 · 1 comment

Comments

@Hznnn
Copy link

Hznnn commented Jul 15, 2020

if validation:
            fi = DATA_FOLDER + 'L286_FD_3_1.CT.0002.0201.2015.12.22.18.22.49.651226.358225786.npy'
        else:
            fi = file_loader.next_file()
        data = np.load(fi)
        phantom = space.element(np.rot90(data, -1))
        phantom /= 1000.0  # convert go g/cm^3
        data = operator(phantom)
        data = np.exp(-data * mu_water)
        noisy_data = odl.phantom.poisson_noise(data * photons_per_pixel) / photons_per_pixel

Is the CT_value or pixel_array in data?

@adler-j
Copy link
Owner

adler-j commented Jul 20, 2020

It's post-exp so I'd assume it is pixel_array, but I'm honestly not sure about the definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants