|
|
|
@ -325,6 +325,7 @@ int ImageResultJudge::ResultJudge(std::shared_ptr<ImageAllResult> pImageResult)
|
|
|
|
float At = pParam->paramArr[j].area;
|
|
|
|
float At = pParam->paramArr[j].area;
|
|
|
|
float Et = pParam->paramArr[j].energy;
|
|
|
|
float Et = pParam->paramArr[j].energy;
|
|
|
|
float hj = pParam->paramArr[j].hj;
|
|
|
|
float hj = pParam->paramArr[j].hj;
|
|
|
|
|
|
|
|
float hj_max = pParam->paramArr[j].hj_max;
|
|
|
|
float Len = pParam->paramArr[j].length;
|
|
|
|
float Len = pParam->paramArr[j].length;
|
|
|
|
float md = pParam->paramArr[j].density;
|
|
|
|
float md = pParam->paramArr[j].density;
|
|
|
|
float area_max = pParam->paramArr[j].area_max;
|
|
|
|
float area_max = pParam->paramArr[j].area_max;
|
|
|
|
@ -386,7 +387,7 @@ int ImageResultJudge::ResultJudge(std::shared_ptr<ImageAllResult> pImageResult)
|
|
|
|
BOOL_TO_STR(flen >= Len), flen, BOOL_TO_ThanLess(flen > Len), Len);
|
|
|
|
BOOL_TO_STR(flen >= Len), flen, BOOL_TO_ThanLess(flen > Len), Len);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if( config_qx_type == CONFIG_QX_NAME_POL_Cell && area_max > 0)
|
|
|
|
if(area_max > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(detArea > area_max)
|
|
|
|
if(detArea > area_max)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -399,6 +400,19 @@ int ImageResultJudge::ResultJudge(std::shared_ptr<ImageAllResult> pImageResult)
|
|
|
|
BOOL_TO_STR(detArea > area_max), detArea, BOOL_TO_ThanLess(detArea > area_max), area_max);
|
|
|
|
BOOL_TO_STR(detArea > area_max), detArea, BOOL_TO_ThanLess(detArea > area_max), area_max);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(hj_max > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(grayDis > hj_max)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nerrortype = 0;
|
|
|
|
|
|
|
|
result = true;
|
|
|
|
|
|
|
|
bNG_Status = false;
|
|
|
|
|
|
|
|
bYS_Status = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
pQxLog->AddCheckstr(PrintLevel_4, DET_LOG_LEVEL_3, "PolCell_HJ_Max", "%s -> %f %s %f ",
|
|
|
|
|
|
|
|
BOOL_TO_STR(grayDis > hj_max), grayDis, BOOL_TO_ThanLess(grayDis > hj_max), hj_max);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!result)
|
|
|
|
if (!result)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|