-
Notifications
You must be signed in to change notification settings - Fork 8
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
ENH: added benchmark for ITK ResampleImageFilter #56
Conversation
The benchmark includes support for 1D/2D/3D images, common interpolators (Linear, Nearest, BSpline), common registration transforms and their combinations (Affine, BSpline, Euler, Similarity, Translation, Identity) and other options to fully benchmark Resample for registration tasks.
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.
Excellent work!
// | ||
// Command line argument "-i" "Linear" ["Nearest"] ["BSpline"] | ||
// Command line argument "-soi" controls spline order interpolator for the BSpline interpolator. | ||
// For "-i" "BSpline" the 0th - 5th order splines are supported, the default 3th. |
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.
3th -> 3rd
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.
Thanks, I will fix the typos.
} | ||
|
||
//------------------------------------------------------------------------------ | ||
// This helper function completely define the transform[s] |
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.
define: defines ?
} | ||
|
||
//------------------------------------------------------------------------------ | ||
// This helper function completely set the single transform |
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.
set: sets ?
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.
This is awesome @dpshamonin !
As per the ITK style (section C of the Appendix in [1]), I'd rather:
- Align the loop/conditional statements to the curly brackets.
- Try to remove the white spaces before the loop/conditional statements and the brackets.
- Remove the unnecessary
//---------------------------------------
comment lines.
- In order to embrace C++11, use range-based loops.
- Although, this has also been on my ToDo list for a long, long time, many of the main program's argument processing/checking functions could be re-used by other testing/benchmarking code, so I guess one day or another it would be useful to create a utils class to gather all this.
Thanks.
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 good enough to me!
@jhlegarreta |
Great! ✨ |
Thanks Dennis. |
🥇 Thanks, @dpshamonin ! |
Great! this is awesome, but now the filtering label takes quite a bit of time.
Should we create a separate label and CMake option for for Resample? Opened #59 |
The benchmark includes support for 1D/2D/3D images,
common interpolators (Linear, Nearest, BSpline),
common registration transforms and their combinations
(Affine, BSpline, Euler, Similarity, Translation, Identity)
and other options to fully benchmark Resample for registration tasks.