LstTitles.push_back( "vol1"); LstValues.push_back( std::to_string(TP+FP) ); \
LstTitles.push_back( "vol2"); LstValues.push_back( std::to_string(TP+FN) ); \
if ((TP==0) && (FP==0) && (FN==0)) { \
- LstTitles.push_back( "_dice"); LstValues.push_back( "---" ); \
+ LstTitles.push_back( "_dice"); LstValues.push_back( "-1" ); \
}else { \
+ double tmp; \
tmp = 2 * (double)TP / (2 * (double)TP + (double)FP + (double)FN ); \
LstTitles.push_back( "dice"); LstValues.push_back( std::to_string(tmp) ); \
}
// (the one provided in the attribute 'type' of the tag 'input')
printf("EED ImageMaskDice::Process Start .. \n");
-
+ long int tpAll=0 ,fpAll=0 ,fnAll=0 ;
+
if ( (bbGetInputIn1()!=NULL) && (bbGetInputIn2()!=NULL) )
{
int ext[6];
(dimY1==dimY2) &&
(dimZ1==dimZ2) )
{
- long int tpAll=0 ,fpAll=0 ,fnAll=0 ;
DEF_POINTER_IMAGE_VTK_CREA(vMA,ssMA,pMA,stMA,bbGetInputIn1())
DEF_POINTER_IMAGE_VTK_CREA(vMM,ssMM,pMM,stMM,bbGetInputIn2())
long int i,size=dimX1*dimY1*dimZ1;
GETVALUE2_VTK_CREA(vMM,pMM,stMM,i)
ACUMULATE(vMA, vMM, tpAll, fpAll, fnAll)
} // for
- double tmp;
- std::vector<std::string> LstTitles;
- std::vector<std::string> LstValues;
- INSERTINVECTOR(tpAll,fpAll,fnAll)
- bbSetOutputLstTitles(LstTitles);
- bbSetOutputLstValues(LstValues);
+// INSERTINVECTOR(tpAll,fpAll,fnAll)
+// bbSetOutputLstTitles(LstTitles);
+// bbSetOutputLstValues(LstValues);
} else {
printf ("EED Warning... creaSDRAVisu VolumeMassDice::Process Size of images are not the same. \n");
} // if dimXYZ I MA MM
}// if
printf("EED ImageMaskDice::Process .. End \n");
+ std::vector<std::string> LstTitles;
+ std::vector<std::string> LstValues;
+ INSERTINVECTOR(tpAll,fpAll,fnAll)
+ bbSetOutputLstTitles(LstTitles);
+ bbSetOutputLstValues(LstValues);
+
+
}
//=====