DelphiͼÏñ´¦Àí ͼÏñ¸ß˹ģºý´¦Àí£¨¸Ä½ø°æ£©
ÎÒÔÚÎÄÕ¡¶DelphiͼÏñ´¦Àí -- ͼÏñ¾í»ý¼°¸ß˹ģºý¡·ÖУ¬½éÉÜÁËÀûÓÃͨÓõÄͼÏñ¾í»ý¹ý³Ì¶ÔͼÏñ½øÐиß˹ģºý´¦Àí£¬Æä´¦ÀíЧ¹û»¹²»´í£¬´¦ÀíСÐÍͼÏñʱ¸Ð¾õÒ²»¹ÐУ¬µ«ÊÇ´¦Àí½Ï´óͼÏñʱµÄËٶȻ¹ÊÇÏÓÂý£¬ÔÚÎÒµÄP4 2.8G¡¢1GÄÚ´æµÄ»úÆ÷É϶ÔǧÍòÏñËØͼÏñ½øÐÐQ=3£¬R=5µÄ¸ß˹ģºý´¦Àí£¬²»°üÀ¨Í¼Ïñ×°ÔغÍÇ°ÆÚÊý¾Ýת»»£¬ºÄʱ´ï8600msÒÔÉÏ£¬Ëä¾¼¸´ÎÐ޸ģ¬Æä´¦ÀíËÙ¶ÈʼÖյò»µ½Ã÷ÏÔÌá¸ß£¬Ö÷ÒªÔÒò»¹ÊDzÉÓÃͨÓþí»ý¹ý³Ì´¦ÀíµÄÎÊÌ⣺ÓÃR=5µÃµ½µÄ¾í»ýÄ£°åΪ11*11ÏñËØ£¬Ò»¸öÏñËØÓÐ4¸ö·ÖÁ¿£¨32λARGB£©£¬¶Ôÿ¸öÏóËرØÐë×÷11*11*4=484¸ö³Ë·¨¡¢484¸ö¼Ó·¨¼°4¸ö³ý·¨£¬×îºó»¹µÃ×÷4¸ö·ÖÁ¿ÊÇ·ñ³¬½çµÄÅжϴ¦Àí£¬Ïë²»Âý¶¼ÄÑÀ²£¡Èç¹û²»ÊDzÉÓÃBASM¶¨µãÊý´¦Àí´úÂ룬Æä´¦ÀíËٶȸüÊÇÄÑÒÔÏëÏó¡£
ÎÒÔÚÍøÉ϶à´Î²éÕÒͼÏñ¸ß˹ģºýµÄÓÅ»¯Ëã·¨£¬²»ÉÙËã·¨ºÍ´¦Àí·½Ê½£¬°üÀ¨´úÂëÓÅ»¯»¹²»ÈçÎÒµÄÄǸö¸ß˹ģºý´¦Àí¹ý³Ì£¬Ê¹ÎÒºÜʧÍû¡£Ç°Ìì²éÕÒÆäËü×ÊÁÏʱ£¬ÔÚ¹úÍâij¸öÍøÕ¾ÉÏ·¢ÏÖ½éÉÜͼÏñ¸ß˹ģºý´¦Àí·½·¨Ê±ËƺõÓë³£¹æµÄËã·¨ÓÐËù²»Í¬£¬µ«¶¼Ã»ÓÐÏêϸµÄ×ÊÁÏ£¨ÒòΪ²»¶®ÍâÓºÜÉÙÉϹúÍâÍøÕ¾£¬µ«¿´Ð©¹«Ê½¡¢Î±´úÂ뻹ÊÇÐеģ©£¬ ¾¹ý·´¸´×ÁÄ¥£¬¿ÉÒÔ½«Æä´¦ÀíÁ÷³Ì¹éÄÉÈçÏ£º
1¡¢Óøø¶¨µÄÈ·¶¨QºÍ³¤¶Èsize£¬¼ÆËãÒ»¸ösize+1³¤µÄ¸ß˹·Ö²¼È¨ÊýÊý¾Ýweights£º
radius = size / 2
// ¼ÆËã³õʼÊý¾Ý
for (i = -radius; i <= radius; i ++)
{
x = i / Q;
weights[i+radius] = exp(-x * x / 2)
}
// ÇóºÍ
sum = 0
for (i = -radius; i <= radius; i ++)
{
sum += weights[i+radius]
}
// Êý¾Ý¹éÒ»£¬¼´¹éÒ»ºóµÄÊý¾ÝÖ®ºÍµÈÓÚ1
for (i = -radius; i <= radius; i ++)
{
weights[i+radius] /= sum
}
2¡¢Ê¹ÓÃweights¶ÔÔͼÏñ×÷´¹Ö±µÄÄ£ºýÔËË㣬¼´ÒÔÏñËØ(x, y)ΪÖÐÐÄ£¬¶Ô(x, y - radius)ºÍ(x, y + radius)µÄÏñËصãÓëweights¶ÔÓ¦µÄÖµÏà³ËºóÇóºÍµÃµ½ÐµÄÏñËØ£¬²¢Ð´Èëµ½Ò»¸öÁÙʱµÄͼÏñÉÏÏàÓ¦µÄµãÉÏ£¨ÒòΪÊý¾Ý½øÐÐÁ˹éÒ»´¦Àí£¬³Ë»ýºÍ²»±ØÔÙ×÷³ý·¨ÔËË㣩£»
3¡¢Ê¹ÓÃweights¶ÔÁÙʱͼÏñ×÷ˮƽµÄÄ£ºýÔËË㣬¼´ÒÔÏñËØ(x, y)ΪÖÐÐÄ£¬¶Ô(x - radius, y)ºÍ(x + radius, y)µÄÏñËصãÓëweights¶ÔÓ¦µÄÏà³ËºóÇóºÍµÃµ½ÐµÄÏñËØ£¬²¢Ð´È뵽Ŀ±êͼÏñÉÏÏàÓ¦µÄµãÉÏ¡£
´¦Àí¹ý³Ì½áÊø¡£
ÓÉÓÚÉÏÃæµÄ´¦ÀíÁ÷³ÌÖ»ÊǶÔͼÏñÿ¸öÏóËØ×÷ÁËÒ»¸ö“Ê®&rd
Ïà¹ØÎĵµ£º
½ÌÄãÓÃdelphiдµ¯´°¹ã¸æ²å¼þ
2009Äê12ÔÂ25ÈÕ ÐÇÆÚÎå 00:45
½ÌÄãÓÃdelphiдµ¯´°¹ã¸æ²å¼þ
Òý×Ó
Ä¿Ç°Ô½À´Ô½¶àµÄ¹ã¸æ²å¼þÔÚÎÒÃǵçÄÔÉÏÔú¸ùפµØ£¬Ê±²»Ê±µØµ¯³öÁîÈËÌÖÑáµÄ¹ã¸æ£¬²¢ÇÒÿµ±ÎÒÃÇ¿ª»úµÄʱºò¶¼»áµ¯³öÀ´£¬¸ãµÄºÜ¶àС²ËÖ»ÄÜÖØװϵͳ£¬
À´½â¾öÕâÁíÈËÌÖÑáµÄ¹ã¸æ£¡Ó°ÏìÎÒÃÇÉÏÍøÁÄÌ죬ÍæÓÎÏ·£¬¹¤×÷µÈµÈ……º ......
ÔÚ¿ª½²Ö®Ç°£¬Ê×ÏÈ£¬ÎÒ¼ÙÉèÄãÁ˽âʲôÊÇÃæÏò¶ÔÏó£¬Ê²Ã´ÊÇÀà¡£Èç¹û²»Á˽âµÄ»°£¬½¨ÒéÏÈÈ¥Á˽âÒ»ÏÂÏà¹Ø֪ʶ£¡
ÔÚDelphiÖУ¬×é¼þ£¬ÎÒÃÇ¿ÉÒÔ½«ËüÀí½âΪһ¸ö¸öµÄ·â×°ºÃÁ˵ŦÄܶÔÏó¿â£¬Ê¹ÓÃÕâ¸ö¿â£¬¾ÍÖ»Óüòµ¥µÄ¼¸¾ä´úÂ룬ÉõÖÁ½ö½ö¼òµ¥µÄÉèÖü¸¸öÊôÐÔ¾ÍÄÜʵÏÖijЩ
¹¦ÄÜ£¬ÎÒÃÇ¿ÉÒÔ½«×é¼þÏëÏó³ÉÈÕ³£Éú»îÖÐʹÓõÄijЩ ......
ÔÚDelphi×Ô´øµÄIndy¿Ø¼þÖÐÆäʵÊÇÌṩÁËMD2,MD4,MD5¶ÔÏóµÄ£¬ÎÒÃÇ¿ÉÒÔÖ±½ÓʹÓÃËüÃÇÀ´Íê³ÉMD5µÄÇ©ÃûËã·¨¡£¶ø²»ÐèÒªÔÙÈ¥ÕÒÆäËüµÄ
DLL»òÊÇPasÁË¡£
ÔÚUsesµ¥ÔªÖÐÒýÓà IdHashMessageDigest,IdGlobal, IdHash µ¥Ôª£¬ÔÙдÈçÏ´úÂë¼´¿ÉÒÔ´ïµ½MD5µÄʵÏÖ¡£
ʾÀý´úÂë
procedure TForm1.Button1Click(Sen ......
Ã÷Ìì¾ÍÊÇÎåÒ»½ÚÁË£¬ÐÁ¿àÁ˺ü¸¸öÔ£¬½è´Ë»ú»áÓ¦¸Ã¾¡Çé·ÅËÉÒ»·¬¡£¿ÉÊÇÏëµ½BlogºÃ¾ÃûÓÐдÎÄÕ£¬ËƺõȱЩʲôËƵġ£Õ⼸¸öÔÂÀ´ÔÚÏîÄ¿ÖÐÓÖÔö³¤ÁËÐí¶à¾Ñ飬ѧµ½Ðí¶àʵ¼ÊÓ¦ÓõÄ֪ʶ¡£²»Èç°ÑһЩ±È½ÏÓÐÓõļǼÏÂÀ´£¬¹©ÅóÓÑÃDzο¼¿ÉºÃ¡£
ÎÒÏëµ½DelphiµÄʼþ£¬ÄÇ¿ÉÕæÊǸö·½±ãµÄ¶«Î÷£¬³õѧÕßÔÚ´°ÌåÉÏÀ¼¸¸ö¿ ......
C# Delphi´¦Àí·ÖÎöQQÐÒé
¡¡´ó¼Ò˵µ½QQÐÒ鶼¾õµÃºÜÉñÃØ£¬ÊÇÒòΪQQ²»ÏñMSN»òÕßICQÐÒ鶼ÒѾ¹Ù·½¹«²¼ÁË£¬¶øQQµÄûÓй«²¼¡£Ñо¿ËüµÄÈËÒ²²»ÊÇÌرðµÄ¶à£¬ËäÈ»ÒѾÓÐÁË»ùÓÚ QQÐÒéËùд³ÉµÄµÚÈý·½Èí¼þ foicq, qq plugins for gaim, LumaQQ£¬µ«ÊÇÓÉÓÚËûÃÇÊÇ»ùÓÚ¶þ½øÖÆStreamµÄÐÒé¹ýÓÚ¸´ÔÓ£¬´ó¼ÒÔĶÁ´úÂëÒ²ÓÐÒ ......