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
[WIP]: Use hamming window function #51
Conversation
The test fails as Travis uses VTK 5.8 which does not have the `ImageSincInterpolator'. |
Aside from the test failure, LGTM |
d435a0c
to
793bc5d
Compare
793bc5d
to
8ad8d2e
Compare
@jwiggins Thanks for reviewing. But I had misunderstood the requirement (might be 🎱 effect), which was to change the |
Oh... Yes, that's something else entirely. I'm happy to review that change when it comes. I'm the guilty party that wrote it 😅 |
@@ -18,7 +18,7 @@ | |||
POINTER_MAP = {'move': 'hand', 'resize': 'size left'} | |||
MIN_GAUSSIAN_STD = 2.0 | |||
GAUSSIAN_RADIUS_STD_SCALE = 50.0 | |||
MAX_GAUSSIAN_NUM_SAMPLES = 256 | |||
MAX_NUM_SAMPLES = 256 |
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 like MIN_GAUSSIAN_STD
and GAUSSIAN_RADIUS_STD_SCALE
can be removed now, no?
Just noticed that you pushed those changes to this PR... Other than the orphaned constants, LGTM! |
MIN_GAUSSIAN_STD = 2.0 | ||
GAUSSIAN_RADIUS_STD_SCALE = 50.0 | ||
MAX_GAUSSIAN_NUM_SAMPLES = 256 | ||
MAX_NUM_SAMPLES = 256 | ||
GAUSSIAN_MINIMUM_RADIUS = 0.03 |
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.
It would be nice to have a smaller minimum radius. If the radius is too small I get weird behavior. Making this 0.005
seems to work fine
@dmsurti As you mentioned in the discussion elsewhere, the naming needs an update. One piece of feedback that we got was that @jwiggins, any opinions about the naming? |
Yeah... PS: Your patriotically-numbered private issue is leaking into this public repo 😉 |
😇 Nothing to see here... |
|
Both |
Just go with |
Lots of renaming... LGTM. |
No objections here - I agree that the localized behaviour (having the window go to zero) makes more sense. |
class GaussianOpacityNode(OpacityNode): | ||
""" An `OpacityNode` with a non-zero radius and a Gaussian shape. | ||
class WindowOpacityNode(OpacityNode): | ||
""" An `OpacityNode` with a non-zero radius and a Hamming shape. |
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.
Hamming -> Hanning
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.
A couple other comments need updating as well
👍 A bit more work will be required to accomplish the requested task, but it's good to get the renaming work done. I expect that we'll be updating the window used again within the next couple days. |
[WIP]: Use hamming window function
This provides the hamming windowed sinc interpolation method for image data
TBD