Commit 7d4d44e0 authored by Jamie Mcclelland's avatar Jamie Mcclelland

fixed minor bug when initialising similarity measure and checking if a...

fixed minor bug when initialising similarity measure and checking if a similarity measure has been set
parent ebf37a15
......@@ -635,10 +635,11 @@ void reg_base<T>::InitialiseSimilarity()
{
// SET THE DEFAULT MEASURE OF SIMILARITY IF NONE HAS BEEN SET
if(this->measure_nmi==NULL &&
this->measure_multichannel_nmi==NULL &&
this->measure_ssd==NULL &&
this->measure_dti==NULL &&
this->measure_lncc==NULL &&
this->measure_lncc==NULL){
this->measure_kld==NULL){
this->measure_nmi=new reg_nmi;
for(int i=0;i<this->inputReference->nt;++i)
this->measure_nmi->SetActiveTimepoint(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment