#pragma once enum CellSide {CS_RIGHT, CS_TOP, CS_BOTTOM/*, CS_LEFT*/}; #define LOCAL_PEAK_PERIOD 10 BYTE LocalMinima(int *pProjection, int x, int width); BYTE LocalMaxima(int *pProjection, int x, int width); int LocalMinimaAddr(int *pProjection, int x, int width); int AFX_EXT_API BOE_Linecheck(int* boe_line, BYTE* pImage, int imageWidth, int imageHeight, CRect* ROI_Rect, int nSide, int nThreshold_Dam2, int nThreshold_Dam1, int nDam2_Distance, int nDam2_Dam1_Distance, int nDam1_Distance); ////image¿Í parameter(roi, side, threshold, distance)¸¦ ÀÔ·Â¹Þ¾Æ boe_line[6] ¹è¿­ ¹× return(line °³¼ö) Ãâ·Â ////OUTPUT //return °ª : °ËÃâÇÑ LineÀÇ °³¼ö. 3 ¹Ì¸¸ : DAM2 Reflow ÆÇÁ¤, 4~5 : DAM1 Reflow ÆÇÁ¤, 6 : no Reflow ÆÇÁ¤ / -1 : image not loaded, -2 : roi setting error, -3 : roi length error, -5 : select wrong side //boe_line : Line ÁÂÇ¥ Ãâ·Â ¹è¿­. DAM#2 ¹Ù±ù 2 Lines, DAM#2, DAM#1 ¼øÀ¸·Î ÁÂÇ¥°¡ ÀúÀåµÊ(Áï, PatternÀ» ±âÁØÀ¸·Î ¹Ù±ùÂʺÎÅÍ ÀúÀå) ////INPUT //pImage : Input Image. GrayScale Image¸¦ ÀÔ·ÂÀ¸·Î ¹ÞÀ½ //imageWidth, imageHeight : Image Å©±â. //ROI_Rect : °Ë»ç ¿µ¿ª ¼³Á¤ //nSide : CS_RIGHT(vertical 0->dam2->dam1->pattern), CS_TOP(horizontal 0->dam2->dam1->pattern), CS_BOTTOM(horizontal 0->pattern->dam1->dam2) //nThreshold_Dam2 : threshold dam2 //nThreshold_Dam1 : threshold dam1 //nDam2_Distance : dam2 distance //nDam2_Dam1_Distance : dam2-dam1 distance //nDam1_Distance : dam1 distance CString AFX_EXT_API Reflow_Judge(int LineCheck); ////BOE_LineCheck MethodÀÇ Return °ªÀ» Åä´ë·Î ÆÇÁ¤À» StringÀ¸·Î Ãâ·Â //LineCheck : °ËÃâÇÑ LineÀÇ °³¼ö, BOE_Linecheck ¸Þ¼ÒµåÀÇ Return °ª //return °ª : 3 ¹Ì¸¸ : "DAM2 Reflow", "DAM1 Reflow", 6 : "no Reflow" / -1 : "image not loaded", -2 : "roi setting error", -3 : "roi length error", -5 : "select wrong side" int BOE_Linecheck_Side0(int* boe_line, BYTE* pImage, int imageWidth, int imageHeight, CRect* ROI_Rect, int th2, int th3, int dist0, int dist1, int dist2, int dist3, int dist4); int BOE_Linecheck_Side1(int* boe_line, BYTE* pImage, int imageWidth, int imageHeight, CRect* ROI_Rect, int th2, int th3, int dist0, int dist1, int dist2, int dist3, int dist4); int BOE_Linecheck_Side2(int* boe_line, BYTE* pImage, int imageWidth, int imageHeight, CRect* ROI_Rect, int th2, int th3, int dist0, int dist1, int dist2, int dist3, int dist4);