-
Notifications
You must be signed in to change notification settings - Fork 29
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
Zoom image from template method for ImageData #1285
Zoom image from template method for ImageData #1285
Conversation
…mplate' into zoom_image_from_template
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some comments, but in addition,
-
there are some weird/unnecessary white-space differences. Please fix/ remove (see the diff on github). Some of this might be caused by editor conventions with tabs vs spaces, but even your own code doesn't like sensible in places.
-
add a line to CHANGES.md
Hey Kris, Are there any specific unit tests that I should add or is it enough that they (probably) exist in STIR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still see strange inconsistent indentation in the C/C++ files, but as we currently don't have a way to enforce this, I'm prepared to accept it.
@evgueni-ovtchinnikov want to review? |
@samdporter could conceivably add a Python test (e.g. zoom, test if geometric_info is the same). Not sure how easy it is, and a lot of this is untested anyway, but I'd appreciate it :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see my comments for cstir.cpp line 1513 and STIR.py line 699
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok
I was thinking that perhaps I'll get on the python test next week. Sorry for the delay |
@@ -176,10 +176,8 @@ void* cSTIR_newObject(const char* name) | |||
return NEW_OBJECT_HANDLE(RayTracingMatrix); | |||
if (sirf::iequals(name, "SPECTUBMatrix")) | |||
return NEW_OBJECT_HANDLE(SPECTUBMatrix); | |||
#if STIR_VERSION >= 050100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably fine to remove this since STIR_REQUIRED_VERSION
in cmake is currently 6.0
Changes in this pull request
Added method for
ImageData
to zoom image using geometrical information from a template imageTesting performed
ImageData
zoomed usingzoom_image_from_template()
andzoom_image()
with manually calculated arguments (although dimensions will be different).zoom_image
using stir pythonRelated issues
Checklist before requesting a review
Contribution Notes
Please read and adhere to the contribution guidelines.
Please tick the following: