update 部分结果图添加宏定义控制

dev_lsy
liusiyang 3 months ago
parent cb1df89aab
commit a2030f007f

@ -2952,6 +2952,7 @@ int ImgCheckAnalysisy::AI_Detect_QX()
}
// 仅在调试模式下保存 AI_Qx_MaskList,并限制数量
#ifdef SAVE_RESIMG
if (DetImgInfo_shareP->bDebugsaveImg && pDetAIResult->AI_Qx_MaskList.size() < 200)
{
std::shared_ptr<ImageAllResult::AI_Det_MaskImg> temAIresult = std::make_shared<ImageAllResult::AI_Det_MaskImg>();
@ -2960,6 +2961,7 @@ int ImgCheckAnalysisy::AI_Detect_QX()
temAIresult->AI_mask = outimg;
pDetAIResult->AI_Qx_MaskList.push_back(temAIresult);
}
#endif
{
std::shared_ptr<ImageAllResult::AI_Det_MaskImg> temAIresult = std::make_shared<ImageAllResult::AI_Det_MaskImg>();
@ -3138,6 +3140,7 @@ int ImgCheckAnalysisy::AI_Detect_127Cell()
AIresult.copyTo(AIresultMask(result->roi), AIresult);
}
#ifdef SAVE_RESIMG
{
std::shared_ptr<ImageAllResult::AI_Det_MaskImg> temAIresult = std::make_shared<ImageAllResult::AI_Det_MaskImg>();
temAIresult->roi = result->roi;
@ -3145,6 +3148,7 @@ int ImgCheckAnalysisy::AI_Detect_127Cell()
temAIresult->AI_mask = outimg;
pDetAIResult->AI_Qx_MaskList.push_back(temAIresult);
}
#endif
{
std::shared_ptr<ImageAllResult::AI_Det_MaskImg> temAIresult = std::make_shared<ImageAllResult::AI_Det_MaskImg>();

Loading…
Cancel
Save