| | |
| | | dConv = pCamera->m_dConvResolution[nStageNo]; |
| | | dScan = pCamera->m_dScanResolution[nStageNo]; |
| | | if(dConv <= 0 || dScan <= 0) |
| | | return FALSE; |
| | | return FALSE; |
| | | |
| | | if (m_pRecipe != nullptr) { |
| | | CProfileInspect_Prm& profile = m_pRecipe->m_ProfilePrm; |
| | | double dConvRes = profile.m_dConvResolution[eDimension][nStageNo]; |
| | | if (dConvRes > 0.0) { |
| | | dConv = dConvRes; |
| | | } |
| | | |
| | | double dScanRes = profile.m_dScanResolution[eDimension][nStageNo]; |
| | | if (dScanRes > 0.0) { |
| | | dScan = dScanRes; |
| | | } |
| | | } |
| | | |
| | | srand((unsigned int)time(NULL)); |
| | | |
| | |
| | | |
| | | double dConv = pCamera->m_dConvResolution[g_pBase->m_nStageNo]; |
| | | if(dConv <= 0) |
| | | return FALSE; |
| | | return FALSE; |
| | | |
| | | if (m_pRecipe != nullptr) { |
| | | CProfileInspect_Prm& profile = m_pRecipe->m_ProfilePrm; |
| | | double dConvRes = profile.m_dConvResolution[emDim][g_pBase->m_nStageNo]; |
| | | if (dConvRes > 0.0) { |
| | | dConv = dConvRes; |
| | | } |
| | | } |
| | | |
| | | double dProfileAvg; |
| | | double dChamferAvg; |
| | |
| | | |
| | | double dConv = pCamera->m_dConvResolution[g_pBase->m_nStageNo]; |
| | | if(dConv <= 0) |
| | | return FALSE; |
| | | return FALSE; |
| | | |
| | | if (m_pRecipe != nullptr) { |
| | | CProfileInspect_Prm& profile = m_pRecipe->m_ProfilePrm; |
| | | double dConvRes = profile.m_dConvResolution[emDim][g_pBase->m_nStageNo]; |
| | | if (dConvRes > 0.0) { |
| | | dConv = dConvRes; |
| | | } |
| | | } |
| | | |
| | | INS_EDGE_RESULT_INFO *pResInfo = NULL; |
| | | pResInfo = m_pGlassData->GetEdgeResultInfo(emDim); |
| | |
| | | { |
| | | g_pLog->DisplayMessage(_T("%s MakeProfilePosition Res Null : Frame %d, %d,%.3f,%.3f"),PANEL_SIDE[emDim],stFrame.nFrameIdx,g_pBase->m_nStageNo,dConv,dScan); |
| | | return FALSE; |
| | | } |
| | | |
| | | if (m_pRecipe != nullptr) { |
| | | CProfileInspect_Prm& profile = m_pRecipe->m_ProfilePrm; |
| | | double dConvRes = profile.m_dConvResolution[emDim][g_pBase->m_nStageNo]; |
| | | if (dConvRes > 0.0) { |
| | | dConv = dConvRes; |
| | | } |
| | | |
| | | double dScanRes = profile.m_dScanResolution[emDim][g_pBase->m_nStageNo]; |
| | | if (dScanRes > 0.0) { |
| | | dScan = dScanRes; |
| | | } |
| | | } |
| | | |
| | | ptOffset.x = (float)((double)ptOffset.x / dConv); |
| | |
| | | |
| | | double dConvRes = pCamera->m_dConvResolution[nStageNo]; |
| | | |
| | | if (m_pRecipe != nullptr) { |
| | | CProfileInspect_Prm& profile = m_pRecipe->m_ProfilePrm; |
| | | double dProfileRes = profile.m_dConvResolution[eDim][nStageNo]; |
| | | if (dProfileRes > 0.0) { |
| | | dConvRes = dProfileRes; |
| | | } |
| | | } |
| | | //if (m_pRecipe != nullptr) { |
| | | // CProfileInspect_Prm& profile = m_pRecipe->m_ProfilePrm; |
| | | // double dProfileRes = profile.m_dConvResolution[eDim][nStageNo]; |
| | | // if (dProfileRes > 0.0) { |
| | | // dConvRes = dProfileRes; |
| | | // } |
| | | //} |
| | | |
| | | int nChipInsArea = (int)((double)pChipPrm->m_nChippingInsArea / dConvRes); |
| | | CRect rectChip = CRect(rectChamfer.CenterPoint().x, 0, rectChamfer.CenterPoint().x, rectChamfer.Height()); |