| | |
| | | return findResult; |
| | | } |
| | | |
| | | /*< LYW 20211013 - #3671 Delete Start >*/ |
| | | // step2. edge find |
| | | if (FindAlignEdge(findResult)==1) |
| | | { |
| | | return findResult; |
| | | } |
| | | // if (FindAlignEdge(findResult) == 1) |
| | | // { |
| | | // return findResult; |
| | | // } |
| | | /*< LYW 20211013 - #3671 Delete End >*/ |
| | | |
| | | |
| | | return findResult; |
| | | } |
| | |
| | | CCHImageData tempImage; |
| | | CCHImageProcess::ImageNormalize(&resultImage, &m_BlobImage, 0, 255); |
| | | |
| | | if (findResult.dMatchValue<m_findParam.dMatchRate) |
| | | { |
| | | findResult.nResultCode = AlignMatch_LowScore; |
| | | return 0; |
| | | } |
| | | /*< LYW 20211013 - #3671 Delete Start >*/ |
| | | // if (findResult.dMatchValue < m_findParam.dMatchRate) |
| | | // { |
| | | // findResult.nResultCode = AlignMatch_LowScore; |
| | | // return 0; |
| | | // } |
| | | /*< LYW 20211013 - #3671 Delete End >*/ |
| | | |
| | | // step5. Make Result 이미지 |
| | | findResult.nResultCode = AlignMatch_Success; |
| | |
| | | m_ResultImage.DrawRectangle(CPoint((int)(dResultX+0.5), (int)(dResultY+0.5)), CPoint((int)(dResultX+m_pTempImage->GetWidth()+0.5), (int)(dResultY+m_pTempImage->GetHeight()+0.5)), RGB(255,255,255), 2); |
| | | } |
| | | |
| | | /*< LYW 20211013 - #3671 ADD Start >*/ |
| | | if (findResult.dMatchValue < m_findParam.dMatchRate) |
| | | { |
| | | findResult.nResultCode = AlignMatch_LowScore; |
| | | return 0; |
| | | } |
| | | /*< LYW 20211013 - #3671 ADD End >*/ |
| | | return 1; |
| | | } |
| | | |