From 63439977901d54a01924ed76290931aeddbce66c Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 화, 05 7월 2022 18:16:55 +0900 Subject: [PATCH] Ongoing80 #4220 CF AOI Review 알람 추가 --- ReviewSystem/ReviewSystem/ReviewProcessor_CPJT.cpp | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/ReviewSystem/ReviewSystem/ReviewProcessor_CPJT.cpp b/ReviewSystem/ReviewSystem/ReviewProcessor_CPJT.cpp index e5c5bcf..086a65f 100644 --- a/ReviewSystem/ReviewSystem/ReviewProcessor_CPJT.cpp +++ b/ReviewSystem/ReviewSystem/ReviewProcessor_CPJT.cpp @@ -1228,7 +1228,8 @@ int nDefocusValueMin = pSignalInfo->GetDefocusValueMin(); int nDefocusValueMax = pSignalInfo->GetDefocusValueMax(); - m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview00ImageContrast = dFocusValue; + //m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview00ImageContrast = dFocusValue; + m_pRP2P->IRP2P_SetReview00ImageContrast(round(dFocusValue)); m_pRP2P->IRP2P_SetFirstReviewLeft(FALSE); m_pRP2P->IRP2P_DisplayMessage(_T("FirstReviewLeft FDC FocusValue = %.2f "), dFocusValue); @@ -1243,7 +1244,8 @@ int nDefocusValueMin = pSignalInfo->GetDefocusValueMin(); int nDefocusValueMax = pSignalInfo->GetDefocusValueMax(); - m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview01ImageContrast = dFocusValue; + //m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview01ImageContrast = dFocusValue; + m_pRP2P->IRP2P_SetReview01ImageContrast(round(dFocusValue)); m_pRP2P->IRP2P_SetFirstReviewRight(FALSE); m_pRP2P->IRP2P_DisplayMessage(_T("FirstReviewRight FDC FocusValue = %.2f "), dFocusValue); @@ -1278,7 +1280,8 @@ int nDefocusValueMin = pSignalInfo->GetDefocusValueMin(); int nDefocusValueMax = pSignalInfo->GetDefocusValueMax(); - m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview00ImageContrast = dFocusValue; + //m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview00ImageContrast = dFocusValue; + m_pRP2P->IRP2P_SetReview00ImageContrast(round(dFocusValue)); m_pRP2P->IRP2P_SetFirstReviewLeft(FALSE); m_pRP2P->IRP2P_DisplayMessage(_T("FirstReviewLeft FDC FocusValue = %.2f "), dFocusValue); @@ -1294,7 +1297,8 @@ int nDefocusValueMin = pSignalInfo->GetDefocusValueMin(); int nDefocusValueMax = pSignalInfo->GetDefocusValueMax(); - m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview01ImageContrast = dFocusValue; + //m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview01ImageContrast = dFocusValue; + m_pRP2P->IRP2P_SetReview01ImageContrast(round(dFocusValue)); m_pRP2P->IRP2P_SetFirstReviewRight(FALSE); m_pRP2P->IRP2P_DisplayMessage(_T("FirstReviewRight FDC FocusValue = %.2f "), dFocusValue); @@ -1412,7 +1416,8 @@ int nDefocusValueMin = pSignalInfo->GetDefocusValueMin(); int nDefocusValueMax = pSignalInfo->GetDefocusValueMax(); - m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview00ImageContrast = dFocusValue; + //m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview00ImageContrast = dFocusValue; + m_pRP2P->IRP2P_SetReview00ImageContrast(round(dFocusValue)); m_pRP2P->IRP2P_SetFirstReviewLeft(FALSE); m_pRP2P->IRP2P_DisplayMessage(_T("FirstReviewLeft FDC FocusValue = %.2f "), dFocusValue); @@ -1427,7 +1432,8 @@ int nDefocusValueMin = pSignalInfo->GetDefocusValueMin(); int nDefocusValueMax = pSignalInfo->GetDefocusValueMax(); - m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview01ImageContrast = dFocusValue; + //m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview01ImageContrast = dFocusValue; + m_pRP2P->IRP2P_SetReview01ImageContrast(round(dFocusValue)); m_pRP2P->IRP2P_SetFirstReviewRight(FALSE); m_pRP2P->IRP2P_DisplayMessage(_T("FirstReviewRight FDC FocusValue = %.2f "), dFocusValue); @@ -1483,7 +1489,8 @@ int nDefocusValueMin = pSignalInfo->GetDefocusValueMin(); int nDefocusValueMax = pSignalInfo->GetDefocusValueMax(); - m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview00ImageContrast = dFocusValue; + //m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview00ImageContrast = dFocusValue; + m_pRP2P->IRP2P_SetReview00ImageContrast(round(dFocusValue)); m_pRP2P->IRP2P_SetFirstReviewLeft(FALSE); m_pRP2P->IRP2P_DisplayMessage(_T("FirstReviewLeft FDC FocusValue = %.2f "), dFocusValue); @@ -1498,7 +1505,8 @@ int nDefocusValueMin = pSignalInfo->GetDefocusValueMin(); int nDefocusValueMax = pSignalInfo->GetDefocusValueMax(); - m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview01ImageContrast = dFocusValue; + //m_pRP2P->IRP2P_GetCurrentGlassResult()->nReview01ImageContrast = dFocusValue; + m_pRP2P->IRP2P_SetReview01ImageContrast(round(dFocusValue)); m_pRP2P->IRP2P_SetFirstReviewRight(FALSE); m_pRP2P->IRP2P_DisplayMessage(_T("FirstReviewRight FDC FocusValue = %.2f "), dFocusValue); @@ -3831,13 +3839,15 @@ dXValue = float((pImageBufferByte[nH*nWidth + nW + nStep] - pImageBufferByte[nH*nWidth + nW])*(pImageBufferByte[nH*nWidth + nW + nStep] - pImageBufferByte[nH*nWidth + nW])); dYValue = float((pImageBufferByte[(nH + nStep)*nWidth + nW] - pImageBufferByte[nH*nWidth + nW])*(pImageBufferByte[(nH + nStep)*nWidth + nW] - pImageBufferByte[nH*nWidth + nW])); dCurr = sqrt(dXValue + dYValue); - break; + //break; dSum += dCurr; } } dFocus = dSum / double(nCalWidth*nCalHeight); + if (dFocus >= 10.0) dFocus = 10.0; + return dFocus; //#3524_210902_LYW_MOD END //Origin -- Gitblit v1.9.3