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

Add to sirf classes #13

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Add to sirf classes #13

wants to merge 10 commits into from

Conversation

paskino
Copy link
Contributor

@paskino paskino commented Nov 8, 2018

Work in progress

paskino added 10 commits July 27, 2018 10:26
added: copy, conjugate
closes Hackathon-SIRF/#7
notice that it's not taking into consideration
#2 (comment)
for MR images dot operator calculates the inner product with conjugate
by itself.
changed AcquisitionModel to inherit from object.
@KrisThielemans
Copy link
Member

@paskino, any reason why this isn't a PR to the main repo?

@paskino
Copy link
Contributor Author

paskino commented Nov 13, 2018

I believe Matthias and I were busy trying to tidy up also the other bits of integration of cil/sirf. I guess I should do that.

Copy link
Contributor

@evgueni-ovtchinnikov evgueni-ovtchinnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to test copy:

diff = acq_data.copy() - acq_data.clone()
print('norm of acq_data.copy() - acq_data.clone(): %e' % diff.norm()

@@ -150,6 +150,19 @@ def main():

back_projected_image_as_array = back_projected_image.as_array()
show_2D_array('Backprojection', back_projected_image_as_array[z,:,:])

acq_model.direct(image, 0, 4, simulated_data)
# simulated_data = acq_model.forward(image, 0, 4)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lines 155-157 are not needed

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

Successfully merging this pull request may close these issues.

3 participants