| | |
| | | case DefectLoc_RCUTChip: str = _T("RCUTChip"); break; |
| | | } |
| | | |
| | | int nDefectSize = pInsDefect->m_nDefectRScale; |
| | | strFile.Format(_T("%s\\%03d_%s_%s_%s.jpg"),m_strDefectFolder,pInsDefect->m_nGlassDefectIdx,g_pBase->m_strHPanelID,PANEL_SIDE[(DimensionDir)pDefect->m_nSideLoc],str); |
| | | |
| | | CRect rectDefect; |
| | | |
| | | rectDefect.left = DEFECTIMAGE_WIDTH/2-pInsDefect->m_sPixelWidth/2; |
| | | rectDefect.right = DEFECTIMAGE_WIDTH/2+pInsDefect->m_sPixelWidth/2; |
| | | rectDefect.top = DEFECTIMAGE_HEIGHT/2-pInsDefect->m_sPixelHeight/2; |
| | |
| | | if(pDefect->m_DefectLoc == DefectLoc_Chamfer || pDefect->m_DefectLoc == DefectLoc_Profile) |
| | | continue; |
| | | |
| | | if (pDefect->m_DefectLoc == DefectLoc_KDist || pDefect->m_DefectLoc == DefectLoc_RCUTChip) |
| | | if (pDefect->m_DefectLoc == DefectLoc_Hole || pDefect->m_DefectLoc == DefectLoc_KDist || pDefect->m_DefectLoc == DefectLoc_RCUTChip) |
| | | continue; |
| | | |
| | | rectOrg = pDefect->m_Defect.s_DefectRect; |