| | |
| | | if(nStageNo < 0 || nStageNo > 1) |
| | | nStageNo = 0; |
| | | |
| | | int nChipInsArea = (int)((double)pChipPrm->m_nChippingInsArea/pCamera->m_dConvResolution[nStageNo]); |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | int nChipInsArea = (int)((double)pChipPrm->m_nChippingInsArea / dConvRes); |
| | | CRect rectChip = CRect(rectChamfer.CenterPoint().x,0,rectChamfer.CenterPoint().x,rectChamfer.Height()); |
| | | int nCrackInsArea = (int)((double)pChipPrm->m_nCrackINsArea/pCamera->m_dConvResolution[nStageNo]); |
| | | int nCrackInsArea = (int)((double)pChipPrm->m_nCrackINsArea / dConvRes); |
| | | CRect rectCrack = CRect(rectChamfer.CenterPoint().x,0,rectChamfer.CenterPoint().x,rectChamfer.Height()); |
| | | int nBrokenInsArea = (int)((double)pChipPrm->m_nBrokenInsArea/pCamera->m_dConvResolution[nStageNo]); |
| | | int nBrokenInsArea = (int)((double)pChipPrm->m_nBrokenInsArea / dConvRes); |
| | | CRect rectBroken = CRect(rectChamfer.CenterPoint().x,0,rectChamfer.CenterPoint().x,rectChamfer.Height()); |
| | | |
| | | rectChip.InflateRect(align_4byte(nChipInsArea)/2,0); |