-
Notifications
You must be signed in to change notification settings - Fork 118
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: Add Active Registration Model metrics #450
base: main
Are you sure you want to change the base?
Conversation
Kasper Marstal and Stefan Klein "Active registration models", Proc. SPIE 10133, Medical Imaging 2017: Image Processing, 101330Y (24 February 2017); https://doi.org/10.1117/12.2254356)
Mhm, I disabled the metrics by default because of the external dependency on boost. Seems like it still tries to find boost even though the metrics are disabled. Will fix this. |
} | ||
|
||
template <class F> | ||
typename boost::result_of<F()>::type callstatismoImpl(F f) const { |
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.
Maybe decltype(F())
, instead of boost::result_of
?
float noiseVariance, | ||
double modelVarianceRetained | ||
) { | ||
statismo::StatisticalModel<Representer>* model_statismo = callstatismoImpl(boost::bind(&ImplType::BuildNewModel, this->m_impl, SampleDataStructureList, surrogateTypes, conditioningInfo, noiseVariance, modelVarianceRetained)); |
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.
Instead of boost::bind
, maybe use std::bind
...?
typedef MeshType DatasetType; | ||
|
||
// An unordered map is used to cache pointid for corresonding points | ||
typedef boost::unordered_map<PointType, unsigned> PointCacheType; |
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.
Instead of boost::unordered_map
, maybe use std::unordered_map
...?
This PR adds an intensity penalty metric and a shape penalty metric inspired by Active Appearance Models. The metrics are disabled by default.
Kasper Marstal and Stefan Klein "Active registration models", Proc. SPIE 10133, Medical Imaging 2017: Image Processing, 101330Y (24 February 2017); https://doi.org/10.1117/12.2254356).