<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;CUIDSXo-eyp7ImA9Wx9bEE0.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177</id><updated>2011-02-18T12:32:58.453+08:00</updated><title>OpenCV</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>54</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;CEEERXwzeCp7ImA9Wx9UGUg.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-7625566393129163684</id><published>2011-02-17T22:20:00.001+08:00</published><updated>2011-02-17T22:23:24.280+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-17T22:23:24.280+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Productions'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>Eyes Detection using OpenCV</title><content type='html'>&lt;pre class="brush: cpp"&gt;#include "cv.h"
#include "highgui.h"

#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;assert.h&amp;gt;
#include &amp;lt;math.h&amp;gt;
#include &amp;lt;float.h&amp;gt;
#include &amp;lt;limits.h&amp;gt;
#include &amp;lt;time.h&amp;gt;
#include &amp;lt;ctype.h&amp;gt;


// Create a string that contains the exact cascade name
const char* cascade_name =
    "C:/OpenCV2.0/data/haarcascades/haarcascade_frontalface_alt.xml";
    
const char* cascade_name_e =
    "C:/OpenCV2.0/data/haarcascades/haarcascade_eye.xml";
/*    "haarcascade_profileface.xml";*/


// Function prototype for detecting and drawing an object from an image
void detect_and_draw( IplImage* image );
void detect_eyes(IplImage *img,CvHaarClassifierCascade* 
cascade_e,CvRect* face);

// Main function, defines the entry point for the program.
int main( int argc, char** argv )
{

    // Create a sample image
    IplImage *img = cvLoadImage("face.jpg",1);

    // Call the function to detect and draw the face positions
    detect_and_draw(img);

    // Wait for user input before quitting the program
    cvWaitKey(0);

    // Release the image
    cvReleaseImage(&amp;img);
    
    // Destroy the window previously created with filename: "result"
    cvDestroyWindow("result");

    // return 0 to indicate successfull execution of the program
    return 0;
}

// Function to detect and draw any faces that is present in an image
void detect_and_draw( IplImage* img )
{

    // Create memory for calculations
    static CvMemStorage* storage = 0;

    // Create a new Haar classifier
    static CvHaarClassifierCascade* cascade = 0;
    static CvHaarClassifierCascade* cascade_e = 0;

    int scale = 1;

    // Create a new image based on the input image
    IplImage* temp = cvCreateImage( cvSize(img-&amp;gt;width/scale,img-&amp;gt;height/scale), 8, 3 );

    // Create two points to represent the face locations
    CvPoint pt1, pt2;
    int i;

    // Load the HaarClassifierCascade
    cascade = (CvHaarClassifierCascade*)cvLoad( cascade_name, 0, 0, 0 );
    cascade_e = (CvHaarClassifierCascade*)cvLoad( cascade_name_e, 0, 0, 0 );
    
    // Check whether the cascade has loaded successfully. Else report and error and quit
    if( !cascade )
    {
        fprintf( stderr, "ERROR: Could not load classifier cascade\n" );
        return;
    }
    
    // Allocate the memory storage
    storage = cvCreateMemStorage(0);

    // Create a new named window with title: result
    cvNamedWindow( "result", 1 );

    // Clear the memory storage which was used before
    cvClearMemStorage( storage );

    // Find whether the cascade is loaded, to find the faces. If yes, then:
    if( cascade )
    {

        // There can be more than one face in an image. So create a growable sequence of faces.
        // Detect the objects and store them in the sequence
        CvSeq* faces = cvHaarDetectObjects( img, cascade, storage,
                                            1.1, 2, CV_HAAR_DO_CANNY_PRUNING,
                                            cvSize(40, 40) );

        // Loop the number of faces found.
        for( i = 0; i &amp;lt; (faces ? faces-&amp;gt;total : 0); i++ )
        {
           // Create a new rectangle for drawing the face
            CvRect* r = (CvRect*)cvGetSeqElem( faces, i );

            // Find the dimensions of the face,and scale it if necessary
            pt1.x = r-&amp;gt;x*scale;
            pt2.x = (r-&amp;gt;x+r-&amp;gt;width)*scale;
            pt1.y = r-&amp;gt;y*scale;
            pt2.y = (r-&amp;gt;y+r-&amp;gt;height)*scale;
            
            detect_eyes(img,cascade_e, r);
            // Draw the rectangle in the input image
            cvRectangle( img, pt1, pt2, CV_RGB(255,0,0), 3, 8, 0 );
            
            
        }
    }

    // Show the image in the window named "result"
    cvShowImage( "result", img );

    // Release the temp image created.
    cvReleaseImage( &amp;temp );
}

void detect_eyes(IplImage *img,CvHaarClassifierCascade* 
cascade_e,CvRect* face)
{
    int i;
    CvMemStorage* storage = 0;
    
    // Allocate the memory storage
    storage = cvCreateMemStorage(0);

    // Clear the memory storage which was used before
    cvClearMemStorage( storage );    
    /* Set the Region of Interest: estimate the eyes' position */
    cvSetImageROI(
        img,                    /* the source image */
        cvRect(
            face-&amp;gt;x,            /* x = start from leftmost */
            face-&amp;gt;y + (face-&amp;gt;height/5.5), /* y = a few pixels from the top */
            face-&amp;gt;width,        /* width = same width with the face */
            face-&amp;gt;height/2.0    /* height = 1/2 of face height */
        )
    );   
    
    /* detect the eyes */
    CvSeq *eyes = cvHaarDetectObjects(
        img,            /* the source image, with the
                           estimated location defined */
        cascade_e,      /* the eye classifier */
        storage,        /* memory buffer */
        1.15, 3, 0,     /* tune for your app */
        cvSize(25, 15)  /* minimum detection scale */
    );    
    
    /* draw a rectangle for each detected eye */
    for( i = 0; i &amp;lt; (eyes ? eyes-&amp;gt;total : 0); i++ ) {
        /* get one eye */
        CvRect *eye = (CvRect*)cvGetSeqElem(eyes, i);
       
        /* draw a red rectangle */
        cvRectangle(
            img,
            cvPoint(eye-&amp;gt;x, eye-&amp;gt;y),
            cvPoint(eye-&amp;gt;x + eye-&amp;gt;width, eye-&amp;gt;y + eye-&amp;gt;height),
            CV_RGB(0, 0, 255),
            1, 8, 0
        );
    }   
    cvResetImageROI(img);  
}    
&lt;/pre&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-ucmUPAdI-Nc/TV0udAbfS7I/AAAAAAAAAOA/fKUVXxqshwU/s1600/result.JPG" imageanchor="1" style=""&gt;&lt;img border="0" height="320" width="222" src="http://3.bp.blogspot.com/-ucmUPAdI-Nc/TV0udAbfS7I/AAAAAAAAAOA/fKUVXxqshwU/s320/result.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-7625566393129163684?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/7625566393129163684/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/eyes-detection-using-opencv.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7625566393129163684?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7625566393129163684?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/eyes-detection-using-opencv.html' title='Eyes Detection using OpenCV'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-ucmUPAdI-Nc/TV0udAbfS7I/AAAAAAAAAOA/fKUVXxqshwU/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIDSX09fip7ImA9Wx9UGUg.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-2584978164488957764</id><published>2011-02-17T22:07:00.002+08:00</published><updated>2011-02-17T22:22:58.366+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-17T22:22:58.366+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Productions'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>Face Detection using OpenCV</title><content type='html'>&lt;div style="border-collapse: collapse; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;目標檢測方法最初由Paul Viola [Viola01]提出，並由Rainer Lienhart [Lienhart02]對這一方法進行了改善. 首先，利用樣本（大約幾百幅樣本圖片）的 harr 特征進行分類器訓練，得到一個級聯的boosted分類器。&lt;wbr&gt;&lt;/wbr&gt;訓練樣本分為正例樣本和反例樣本，&lt;wbr&gt;&lt;/wbr&gt;其中正例樣本是指待檢目標樣本(例如人臉或汽車等)，&lt;wbr&gt;&lt;/wbr&gt;反例樣本指其它任意圖片，&lt;wbr&gt;&lt;/wbr&gt;所有的樣本圖片都被歸一化為同樣的尺寸大小(例如，20x20)&lt;wbr&gt;&lt;/wbr&gt;。&lt;/span&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;分類器訓練完以後，就可以應用於輸入圖像中的感興趣區域(&lt;wbr&gt;&lt;/wbr&gt;與訓練樣本相同的尺寸)的檢測。檢測到目標區域(汽車或人臉)&lt;wbr&gt;&lt;/wbr&gt;分類器輸出為1，否則輸出為0。為了檢測整副圖像，&lt;wbr&gt;&lt;/wbr&gt;可以在圖像中移動搜索視窗，檢測每一個位置來確定可能的目標。 為了搜索不同大小的目標物體，分類器被設計為可以進行尺寸改變，&lt;wbr&gt;&lt;/wbr&gt;這樣比改變待檢圖像的尺寸大小更為有效。所以，&lt;wbr&gt;&lt;/wbr&gt;為了在圖像中檢測未知大小的目標物體，&lt;wbr&gt;&lt;/wbr&gt;掃描程式通常需要用不同比例大小的搜索視窗對圖片進行幾次掃描。&lt;/span&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;分類器中的“級聯”&lt;wbr&gt;&lt;/wbr&gt;是指最終的分類器是由幾個簡單分類器級聯組成。在圖像檢測中，&lt;wbr&gt;&lt;/wbr&gt;被檢視窗依次通過每一級分類器， 這樣在前面幾層的檢測中大部分的候選區域就被排除了，&lt;wbr&gt;&lt;/wbr&gt;全部通過每一級分類器檢測的區域即為目標區域。 目前支持這種分類器的boosting技術有四種： Discrete Adaboost, Real Adaboost, Gentle Adaboost and Logitboost。"boosted" 即指級聯分類器的每一層都可以從中選取一個boosting演算&lt;wbr&gt;&lt;/wbr&gt;法(權重投票)，並利用基礎分類器的自我訓練得到。&lt;wbr&gt;&lt;/wbr&gt;基礎分類器是至少有兩個葉結點的決策樹分類器。 Haar特征是基礎分類器的輸入，主要描述如下。&lt;wbr&gt;&lt;/wbr&gt;目前的演算法主要利用下面的Harr特徵。&lt;/span&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 21px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;a href="http://www.opencv.org.cn/index.php/Image:Haarfeatures.png" style="background-color: initial; color: #002bb8; text-decoration: none;" target="_blank" title="Image:Haarfeatures.png"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img alt="Image:Haarfeatures.png" height="213" longdesc="http://www.opencv.org.cn/index.php/Image:Haarfeatures.png" src="http://www.opencv.org.cn/images/0/07/Haarfeatures.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; vertical-align: middle;" width="354" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;a href="http://www.opencv.org.cn/index.php/Cv%E6%A8%A1%E5%BC%8F%E8%AF%86%E5%88%AB#cvHaarDetectObjects" style="color: #074d8f;" target="_blank"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;說明參考來源&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;span class="Apple-style-span" style="color: #074d8f; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://opencv.willowgarage.com/wiki/FaceDetection" style="color: #074d8f;" target="_blank"&gt;程式碼來源&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre class="brush: cpp"&gt;#include "cv.h"
#include "highgui.h"

#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;assert.h&amp;gt;
#include &amp;lt;math.h&amp;gt;
#include &amp;lt;float.h&amp;gt;
#include &amp;lt;limits.h&amp;gt;
#include &amp;lt;time.h&amp;gt;
#include &amp;lt;ctype.h&amp;gt;


// Create a string that contains the exact cascade name
const char* cascade_name =
    "C:/OpenCV2.0/data/haarcascades/haarcascade_frontalface_alt.xml";
/*    "haarcascade_profileface.xml";*/


// Function prototype for detecting and drawing an object from an image
void detect_and_draw( IplImage* image );

// Main function, defines the entry point for the program.
int main( int argc, char** argv )
{

    // Create a sample image
    IplImage *img = cvLoadImage("face.jpg",1);

    // Call the function to detect and draw the face positions
    detect_and_draw(img);

    // Wait for user input before quitting the program
    cvWaitKey(0);

    // Release the image
    cvReleaseImage(&amp;amp;img);
    
    // Destroy the window previously created with filename: "result"
    cvDestroyWindow("result");

    // return 0 to indicate successfull execution of the program
    return 0;
}

// Function to detect and draw any faces that is present in an image
void detect_and_draw( IplImage* img )
{

    // Create memory for calculations
    static CvMemStorage* storage = 0;

    // Create a new Haar classifier
    static CvHaarClassifierCascade* cascade = 0;

    int scale = 1;

    // Create a new image based on the input image
    IplImage* temp = cvCreateImage( cvSize(img-&amp;gt;width/scale,img-&amp;gt;height/scale), 8, 3 );

    // Create two points to represent the face locations
    CvPoint pt1, pt2;
    int i;

    // Load the HaarClassifierCascade
    cascade = (CvHaarClassifierCascade*)cvLoad( cascade_name, 0, 0, 0 );
    
    // Check whether the cascade has loaded successfully. Else report and 
error and quit
    if( !cascade )
    {
        fprintf( stderr, "ERROR: Could not load classifier cascade\n" );
        return;
    }
    
    // Allocate the memory storage
    storage = cvCreateMemStorage(0);

    // Create a new named window with title: result
    cvNamedWindow( "result", 1 );

    // Clear the memory storage which was used before
    cvClearMemStorage( storage );

    // Find whether the cascade is loaded, to find the faces. If yes, then:
    if( cascade )
    {

        // There can be more than one face in an image. So create a growable sequence of faces.
        // Detect the objects and store them in the sequence
        CvSeq* faces = cvHaarDetectObjects( img, cascade, storage,
                                            1.1, 2, CV_HAAR_DO_CANNY_PRUNING,
                                            cvSize(40, 40) );

        // Loop the number of faces found.
        for( i = 0; i &amp;lt; (faces ? faces-&amp;gt;total : 0); i++ )
        {
           // Create a new rectangle for drawing the face
            CvRect* r = (CvRect*)cvGetSeqElem( faces, i );

            // Find the dimensions of the face,and scale it if necessary
            pt1.x = r-&amp;gt;x*scale;
            pt2.x = (r-&amp;gt;x+r-&amp;gt;width)*scale;
            pt1.y = r-&amp;gt;y*scale;
            pt2.y = (r-&amp;gt;y+r-&amp;gt;height)*scale;

            // Draw the rectangle in the input image
            cvRectangle( img, pt1, pt2, CV_RGB(255,0,0), 3, 8, 0 );
        }
    }

    // Show the image in the window named "result"
    cvShowImage( "result", img );

    // Release the temp image created.
    cvReleaseImage( &amp;amp;temp );
}
&lt;/pre&gt;處理結果：&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-zn1_1TCy71c/TV0rY8fKskI/AAAAAAAAAN4/0bbTCtdynic/s1600/result.jpg" imageanchor="1"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-zn1_1TCy71c/TV0rY8fKskI/AAAAAAAAAN4/0bbTCtdynic/s320/result.jpg" width="222" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-2584978164488957764?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/2584978164488957764/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/face-detection-using-opencv.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/2584978164488957764?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/2584978164488957764?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/face-detection-using-opencv.html' title='Face Detection using OpenCV'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-zn1_1TCy71c/TV0rY8fKskI/AAAAAAAAAN4/0bbTCtdynic/s72-c/result.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIASXc_fyp7ImA9Wx9UGUg.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-6578044232212666023</id><published>2011-02-17T21:39:00.002+08:00</published><updated>2011-02-17T22:22:28.947+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-17T22:22:28.947+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Productions'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>LOMO Style Process</title><content type='html'>&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;LOMO風格的像片有下面幾點&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;b&gt;(強烈的)暗角&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;b&gt;畫面模糊&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;b&gt;粒子粗&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;b&gt;特殊色調&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;b&gt;正沖負&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;所以接下來的程式將做這幾點的處理：&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif; line-height: 18px;"&gt;1.&amp;nbsp;&lt;a href="http://myctipsblog.blogspot.com/2011/02/hsv.html"&gt;飽和度調到25---&amp;gt;Set_HSV(img,0,25,0);&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif; line-height: 18px;"&gt;2.&amp;nbsp;&lt;a href="http://myctipsblog.blogspot.com/2011/02/setting-brightness-and-contrast.html"&gt;Contrast調整到20---&amp;gt;Set_BrightnessAndContrast(img,0,20);&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif; line-height: 18px;"&gt;3.&amp;nbsp;&lt;a href="http://myctipsblog.blogspot.com/2011/02/set-gamma-curves.html"&gt;設定各RGB三元色的Gamma Curves---&amp;gt;Set_GammaCurves(img,100,138,195,175,190,205);&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif; line-height: 18px;"&gt;4.&amp;nbsp;&lt;a href="http://myctipsblog.blogspot.com/2011/02/process-vignetting.html"&gt;暗角處理---&amp;gt;Process_Vignetting(img,30);&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #000033; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;程式碼：&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;pre class="brush: cpp"&gt;int main(int argc, char *argv[])
{
 IplImage *img;

 if(argc==3)
 {
  img = cvLoadImage(argv[1],CV_LOAD_IMAGE_COLOR);  
  if(img-&amp;gt;nChannels!=3){
   printf("We need color image!");
   exit -1;
  }    
  cvNamedWindow("original",CV_WINDOW_AUTOSIZE);
  cvShowImage("original", img);  
  Set_HSV(img,0,25,0);
  Set_BrightnessAndContrast(img,0,20); 
  Set_GammaCurves(img,100,138,195,175,190,205);
  Process_Vignetting(img,30);
  #ifdef RUN_MODE
   cvSaveImage(argv[2], img,0);
   cvReleaseImage(&amp;amp;img);
  #else
   cvSaveImage(argv[2], img,0);
   cvNamedWindow("lomo",CV_WINDOW_AUTOSIZE);
   cvShowImage("lomo", img);        
 
   cvSaveImage(argv[2], img,0);              
   cvWaitKey(0);
   /* Free memory and get out */
   cvDestroyWindow("original");
   cvDestroyWindow("lomo");   
   cvReleaseImage(&amp;amp;img);
  #endif

  return 1;
 }
 return 0;  
}
&lt;/pre&gt;&lt;/div&gt;處理前：&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-yh6d3-B4g1s/TV0lpkBnzTI/AAAAAAAAANg/wxPLulcKV4k/s1600/n.jpg" imageanchor="1" style=""&gt;&lt;img border="0" height="240" width="320" src="http://1.bp.blogspot.com/-yh6d3-B4g1s/TV0lpkBnzTI/AAAAAAAAANg/wxPLulcKV4k/s320/n.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;處理後：&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-8V4IBXS9zPs/TV0l6AqoxGI/AAAAAAAAANo/uQl07Q04UR8/s1600/test.jpg" imageanchor="1" style=""&gt;&lt;img border="0" height="240" width="320" src="http://4.bp.blogspot.com/-8V4IBXS9zPs/TV0l6AqoxGI/AAAAAAAAANo/uQl07Q04UR8/s320/test.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-6578044232212666023?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/6578044232212666023/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/lomo-style-process.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/6578044232212666023?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/6578044232212666023?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/lomo-style-process.html' title='LOMO Style Process'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-yh6d3-B4g1s/TV0lpkBnzTI/AAAAAAAAANg/wxPLulcKV4k/s72-c/n.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0UCQ386eCp7ImA9Wx9UGEs.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-5299553717770772182</id><published>2011-02-16T23:14:00.000+08:00</published><updated>2011-02-16T23:14:22.110+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-16T23:14:22.110+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>Process Vignetting</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;理論可參考及程式碼來源請參考&amp;nbsp;&lt;a href="http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/AV0809/laskaris.pdf"&gt;Nikolaos Laskaris&amp;nbsp;&amp;nbsp;School of Informatics&amp;nbsp;University of Edinburgh&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#define P 3.14159

void Process_Vignetting(IplImage *img,int degrees)
{
    float MAX_ANGLE;
    MAX_ANGLE = degrees*(P/180);
    artificial_vignetting(img,MAX_ANGLE);    
}    

void artificial_vignetting(IplImage *bgr,float MAX_ANGLE)
{
    int i,j;
    CvScalar value;
    IplImage *Lab = cvCreateImage(cvGetSize(bgr),IPL_DEPTH_8U,3);
    IplImage *reference = naturalVignetting(Lab-&amp;gt;width,Lab-&amp;gt;height,MAX_ANGLE);
    //IplImage *reference = mechanicalVignetting(Lab-&amp;gt;width,Lab-&amp;gt;height,20);
    cvCvtColor(bgr,Lab,CV_BGR2Lab);
    for(i=0;i&amp;lt;Lab-&amp;gt;height;i++)
    {
        for(j=0;j&amp;lt;Lab-&amp;gt;width;j++)
        {
                value = cvGet2D(Lab,i,j);
                value.val[0] *= cvGet2D(reference,i,j).val[0];
                cvSet2D(Lab,i,j,value);
        }
    }
    cvReleaseImage(&amp;amp;reference);
    cvCvtColor(Lab,bgr,CV_Lab2BGR);
    cvReleaseImage(&amp;amp;Lab);
}

IplImage *mechanicalVignetting(int image_width, int image_height,int pixels_falloff)
{
    int i,j;
    double radius = (double)(image_width/2)*95/100;
    CvPoint image_center = cvPoint(image_width/2,image_height/2);
    double max_image_rad = sqrt(pow((double)image_width/2,2)+pow((double)image_height/2,2));
    CvSize image_size = cvSize(image_width,image_height);
    IplImage * eikona = cvCreateImage(image_size,IPL_DEPTH_64F,1);
    cvSet(eikona,cvScalar(1,0,0,0),0);
    double distance;
    for(i=0;i&amp;lt;eikona-&amp;gt;height;i++)
    {
        for(j=0;j&amp;lt;eikona-&amp;gt;width;j++)
        {
                distance = dist(image_center,cvPoint(j,i));
                if(distance&amp;gt;radius)
                {
                       if(distance&amp;gt;radius+pixels_falloff)
                              cvSet2D(eikona,i,j,cvScalar(0,0,0,0));
                       else
                              cvSet2D(eikona,i,j,cvScalar(1-pow((double)((distance-
radius)/pixels_falloff),2),0,0,0));
                }                              
        }
    }
    return eikona;
}

IplImage *naturalVignetting(int image_width, int image_height, float MAX_ANGLE)
{
    int i,j;
    CvPoint image_center = cvPoint(image_width/2,image_height/2);
    double max_image_rad = sqrt(pow((double)image_width/2,2)+pow((double)image_height/2,2));
    CvSize image_size = cvSize(image_width,image_height);
    IplImage * eikona = cvCreateImage(image_size,IPL_DEPTH_64F,1);
    cvSet(eikona,cvScalar(1,0,0,0),0);

    for(i=0;i&amp;lt;eikona-&amp;gt;height;i++)
    {
        for(j=0;j&amp;lt;eikona-&amp;gt;width;j++)
        {
                cvSet2D(eikona,i,j,cvScalar(pow(cos((dist(image_center,cvPoint(j,i))/max_image_rad)*MAX_ANGLE),4),0,0,0));
        }
    }
    return eikona;
}



double dist (CvPoint a,CvPoint b)
{
    return sqrt(pow((double)(a.x-b.x),2)+pow((double)(a.y-b.y),2));
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-5299553717770772182?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/5299553717770772182/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/process-vignetting.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/5299553717770772182?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/5299553717770772182?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/process-vignetting.html' title='Process Vignetting'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUADRH4_cCp7ImA9Wx9UGEs.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-9198848427051720567</id><published>2011-02-16T22:49:00.000+08:00</published><updated>2011-02-16T22:49:35.048+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-16T22:49:35.048+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>Set Gamma Curves</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #222222; line-height: 18px;"&gt;將輸入RGB相對應輸出輸入值&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; line-height: 18px;"&gt;傳入副程式中，計算出Gamma Function值，再利用得到的Gamma Table對img影像做調整。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;void Set_GammaCurves(IplImage *Image1,int Rin,int Rout, int Gin, int 
Gout,int Bin, int Bout)
{
 double rr,rg,rb;
 int y;
 int x;
 int i;
 uchar lut[256][3]; 
 CvMat* lut_mat; 

 rr = log(Rout)/log(Rin);  // log(vout)/log(vin)
 rg = log(Gout)/log(Gin);  
 rb = log(Bout)/log(Bin);  
 lut_mat = cvCreateMatHeader( 1, 256, CV_8UC3 ); 
 cvSetData( lut_mat, lut,0);  
 
 for(x=0;x&amp;lt;256;x++)
 {
  y=(int)255*(pow(x/255.0,rb));
  lut[x][0] = (uchar)y;  //b
  y=(int)255*(pow(x/255.0,rg));
  lut[x][1] = (uchar)y; //g
  y=(int)255*(pow(x/255.0,rr));
  lut[x][2] = (uchar)y; //r
 }

 cvLUT(Image1,Image1,lut_mat);
 cvReleaseMatHeader(&amp;amp;lut_mat);
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-9198848427051720567?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/9198848427051720567/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/set-gamma-curves.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/9198848427051720567?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/9198848427051720567?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/set-gamma-curves.html' title='Set Gamma Curves'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUECQXc8cSp7ImA9Wx9UGEs.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-2380588670953541234</id><published>2011-02-16T22:39:00.001+08:00</published><updated>2011-02-16T22:47:40.979+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-16T22:47:40.979+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>Setting Brightness And Contrast</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #222222; line-height: 18px;"&gt;將更改的&lt;span class="Apple-style-span" style="color: black; line-height: normal;"&gt;Brightness&lt;/span&gt;值和&lt;/span&gt;Contrast&lt;span class="Apple-style-span" style="color: #222222; line-height: 18px;"&gt;傳入副程式中，則可對img影像做調整。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;void Set_BrightnessAndContrast(IplImage *Image1,int Brightness, int 
Contrast)
{
 double Delta;
 double a,b;
 int y;
 int x;
 int i;
 uchar lut[256][3]; 
 CvMat* lut_mat; 

 lut_mat = cvCreateMatHeader( 1, 256, CV_8UC3 ); 
 cvSetData( lut_mat, lut,0);  
 
 //Brightness/Contrast Formula
 if(Contrast&amp;gt;0)
 {
  Delta=127*Contrast/100;
  a=255/(255-Delta*2);
  b=a*(Brightness-Delta);

  for(x=0;x&amp;lt;256;x++)
  {
   y=(int)(a*x+b);
   if(y&amp;lt;0)
    y=0;
   if(y&amp;gt;255)
    y=255;
   lut[x][0] = (uchar)y;
   lut[x][1] = (uchar)y;
   lut[x][2] = (uchar)y;
  }
 }
 else
 {
  Delta=-128*Contrast/100;
  a=(256-Delta*2)/255;
  b=a*Brightness+Delta;

  for(x=0;x&amp;lt;256;x++)
  {
   y=(int)(a*x+b);

   if(y&amp;lt;0)
    y=0;
   if(y&amp;gt;255)
    y=255;

   lut[x][0] = (uchar)y;
   lut[x][1] = (uchar)y;
   lut[x][2] = (uchar)y;
  }
 }

 cvLUT(Image1,Image1,lut_mat);
 cvReleaseMatHeader(&amp;amp;lut_mat);
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-2380588670953541234?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/2380588670953541234/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/setting-brightness-and-contrast.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/2380588670953541234?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/2380588670953541234?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/setting-brightness-and-contrast.html' title='Setting Brightness And Contrast'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUUBRn8zeyp7ImA9Wx9UGEs.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-1003516380812166958</id><published>2011-02-16T22:32:00.001+08:00</published><updated>2011-02-16T22:40:57.183+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-16T22:40:57.183+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>HSV參數設定副程式</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;將更改的HSV值傳入副程式中，則可對img影像做調整。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;void Set_HSV(IplImage *img,int h,int s,int v)
{
 int depth;
 CvSize size;         
 uchar lut[256][3]; 
 CvMat* lut_mat; 
 int i=0;
 int value; 
 IplImage *hsv;

 size = cvGetSize(img);
 depth = img-&amp;gt;depth;
 hsv = cvCreateImage(size, depth, 3);
 cvZero(hsv);   
 /* Convert from Red-Green-Blue to Hue-Saturation-Value */
 cvCvtColor( img, hsv, CV_BGR2HSV );

 lut_mat = cvCreateMatHeader( 1, 256, CV_8UC3 ); 
 cvSetData( lut_mat, lut,0); 
 for( i = 0; i &amp;lt; 256; i++ ) 
 { 
  value = (i+h);
  if( value &amp;lt; 0 ) 
   value = 0; 
  if( value &amp;gt; 255 ) 
   value = 255; 
  lut[i][0] = (uchar)value; 
  
  value = (i+s);
  if( value &amp;lt; 0 ) 
   value = 0; 
  if( value &amp;gt; 255 ) 
   value = 255; 
  lut[i][1] = (uchar)value;  
  
  value = (i+v);
  if( value &amp;lt; 0 ) 
   value = 0; 
  if( value &amp;gt; 255 ) 
   value = 255; 
  lut[i][2] = (uchar)value;   
 }      
 cvLUT( hsv, hsv, lut_mat ); 
 cvCvtColor(hsv,img, CV_HSV2BGR );   
 cvReleaseImage(&amp;amp;hsv);   
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-1003516380812166958?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/1003516380812166958/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/hsv.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1003516380812166958?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1003516380812166958?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/hsv.html' title='HSV參數設定副程式'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIMQ30_eyp7ImA9Wx9UFU0.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-1768890532919737231</id><published>2011-02-12T17:17:00.002+08:00</published><updated>2011-02-12T17:23:02.343+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-12T17:23:02.343+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title>Ubuntu環境下安裝OpenCV及Code::Block</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1. 請先更新軟體列表輸入 &lt;b&gt;&lt;i&gt;sudo apt-get update&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/b&gt;2. 搜尋一下Opencv有哪些套件輸入 &lt;b style="font-style: italic;"&gt;sudo apt-cache search opencv&lt;/b&gt;&lt;br /&gt;
harpia - Image Processing/Computer Vision Automatic Prgm. Tool&lt;br /&gt;
libcv-dev - development files for libcv&lt;br /&gt;
libcv2.1 - computer vision library&lt;br /&gt;
libcvaux-dev - development files for libcvaux&lt;br /&gt;
libcvaux2.1 - computer vision extension library&lt;br /&gt;
libhighgui-dev - development files for libhighgui&lt;br /&gt;
libhighgui2.1 - computer vision GUI library&lt;br /&gt;
opencv-doc - OpenCV documentation and examples&lt;br /&gt;
python-opencv - Python bindings for the computer vision library&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
3.若全部安裝輸入&amp;nbsp;&lt;b style="font-style: italic;"&gt;sudo apt-get install harpia &amp;nbsp;libcv-dev libcv2.1 libcvaux-dev libcvaux2.1 libhighgui-dev libhighgui2.1 opencv-doc python-opencv&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-style: normal; font-weight: normal;"&gt;以上則完成OpenCV套件的安裝，接下來則設定Code::Block的編譯環境設定。&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; font-weight: normal;"&gt;&lt;/span&gt;&lt;/b&gt;若沒裝Code::Block只要到"Ubuntu 軟體中心"搜尋CodeBlock則可找到套件安裝。&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-clfwHIx9rR8/TVZPzu23daI/AAAAAAAAANE/SiCdyT_FQGY/s1600/result.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="194" src="http://3.bp.blogspot.com/-clfwHIx9rR8/TVZPzu23daI/AAAAAAAAANE/SiCdyT_FQGY/s320/result.JPG" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;b style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; font-weight: normal;"&gt;1. 先開啟一個新專案"File -&amp;gt; New -&amp;gt; Project"然後選擇Console appication，&lt;/span&gt;&lt;/b&gt;語言選擇C輸入專案名稱跟儲存的路徑。&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-8zJHhX5a8U0/TVZLQIZjNZI/AAAAAAAAAMs/J7uwvbKalW4/s1600/result.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="219" src="http://4.bp.blogspot.com/-8zJHhX5a8U0/TVZLQIZjNZI/AAAAAAAAAMs/J7uwvbKalW4/s320/result.JPG" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;2. 在Project -&amp;gt; Build options到Linker settings然後在Link Libraries中&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;add入函式庫&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;路徑為/usr/lib/&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;選擇&lt;br /&gt;
libcv.a 、libcv.so&lt;br /&gt;
libcxcore.a 、libcxcore.so&lt;br /&gt;
libcvaux.a 、libcvaux.so&lt;br /&gt;
libhighgui.a 、libhighgui.so&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-1veWDF5sv70/TVZNdzXQOdI/AAAAAAAAAM4/h4vKEivunfA/s1600/result.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="288" src="http://3.bp.blogspot.com/-1veWDF5sv70/TVZNdzXQOdI/AAAAAAAAAM4/h4vKEivunfA/s320/result.JPG" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;3.&amp;nbsp;接下來切換到Search directories&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;在Compiler的地方匯入 /usr/include/opencv/&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/-B1JOHomOjG4/TVZN-IkA9EI/AAAAAAAAAM8/7udflauWXRM/s1600/result.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="286" src="http://1.bp.blogspot.com/-B1JOHomOjG4/TVZN-IkA9EI/AAAAAAAAAM8/7udflauWXRM/s320/result.JPG" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;4. &amp;nbsp;按確認後就可以開始寫程式了，我將測試&lt;a href="http://myctipsblog.blogspot.com/2011/02/cvline.html"&gt;畫線的程式&lt;/a&gt;來測試。&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-53CjUyGpgFA/TVZPF7WcYqI/AAAAAAAAANA/JSKPiolErxg/s1600/result.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="250" src="http://3.bp.blogspot.com/-53CjUyGpgFA/TVZPF7WcYqI/AAAAAAAAANA/JSKPiolErxg/s320/result.JPG" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;完成。&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://www.wretch.cc/blog/courageapple/20802025"&gt;參考來源&lt;/a&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New'; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-1768890532919737231?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/1768890532919737231/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/ubuntuopencvcodeblock.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1768890532919737231?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1768890532919737231?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/ubuntuopencvcodeblock.html' title='Ubuntu環境下安裝OpenCV及Code::Block'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-clfwHIx9rR8/TVZPzu23daI/AAAAAAAAANE/SiCdyT_FQGY/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEINRXcyeSp7ImA9Wx9UFEQ.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-314157521282537806</id><published>2011-02-12T15:18:00.003+08:00</published><updated>2011-02-12T15:43:14.991+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-12T15:43:14.991+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title>解決 在VirtualBox中灌Ubuntu 無法安裝 VirtualBox Guest Addition</title><content type='html'>&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h1 style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-bottom-width: 1px; color: #333333; font-family: Arial, Tahoma, Verdana; font-size: 20px; font-weight: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Installing Guest Additions on&amp;nbsp;Ubuntu&lt;/span&gt;&lt;/h1&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Follow these steps to install the Guest Additions on your Ubuntu virtual machine:&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Login as ubuntu;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Click on&amp;nbsp;&lt;em&gt;Applications&lt;/em&gt;/&lt;em&gt;System&lt;/em&gt;/&lt;em&gt;Terminal&lt;/em&gt;&amp;nbsp;(or on&amp;nbsp;&lt;em&gt;Applications&lt;/em&gt;/&lt;em&gt;Terminal&lt;/em&gt;, if you are using the 6.06.1&amp;nbsp;&lt;em&gt;Dapper Drake&lt;/em&gt;&amp;nbsp;release);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Update your APT database with&amp;nbsp;&lt;em&gt;&lt;b&gt;sudo apt-get update&lt;/b&gt;&lt;/em&gt;, and typing your password, if requested;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Install the latest security updates with&amp;nbsp;&lt;b&gt;&lt;em&gt;sudo apt-get upgrade&lt;/em&gt;;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Install required packages with&amp;nbsp;&lt;em&gt;s&lt;b&gt;udo apt-get install build-essential module-assistant&lt;/b&gt;&lt;/em&gt;&lt;b&gt;;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Configure your system for building kernel modules&amp;nbsp;by&amp;nbsp;running&amp;nbsp;&lt;b&gt;&lt;em&gt;sudo m-a&amp;nbsp;prepare&lt;/em&gt;;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Click on&amp;nbsp;&lt;strong&gt;Install Guest Additions…&lt;/strong&gt;&amp;nbsp;from the&amp;nbsp;&lt;strong&gt;Devices&lt;/strong&gt;&amp;nbsp;menu, then choose to browse the content of the CD when requested.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;restart system.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;Run&amp;nbsp;&lt;em&gt;&lt;b&gt;sudo sh /media/cdrom/VBoxLinuxAdditions.run&lt;/b&gt;&lt;/em&gt;,&amp;nbsp;and&amp;nbsp;follow&amp;nbsp;the&amp;nbsp;instructions&amp;nbsp;on&amp;nbsp;screen.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;restart system.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"&gt;complete.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #666666; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #666666; line-height: 18px;"&gt;&lt;a href="http://virtualboxes.org/doc/installing-guest-additions-on-ubuntu/"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;參考來源&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-314157521282537806?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/314157521282537806/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/virtualboxubuntu-virtualbox-guest.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/314157521282537806?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/314157521282537806?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/virtualboxubuntu-virtualbox-guest.html' title='解決 在VirtualBox中灌Ubuntu 無法安裝 VirtualBox Guest Addition'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Dk8NQn8_cCp7ImA9Wx9UFEQ.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-7610864443045986765</id><published>2011-02-12T15:14:00.000+08:00</published><updated>2011-02-12T15:14:53.148+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-12T15:14:53.148+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title>Ubuntu 更換套件伺服器</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Ubuntu 套件伺服器預設在&lt;span class="Apple-style-span" style="color: #444444; line-height: 19px;"&gt;tw.archive.ubuntu.com&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;灌好後都無法連上，所以必須手動去更換別的伺服器。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #444444;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;設定的檔案在&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #444444; line-height: 19px;"&gt;&lt;b&gt;/etc/apt/sources.list&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-0x6dr9nB4hg/TVYyrB5Mo_I/AAAAAAAAAMk/zoHYixwt69g/s1600/result.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="243" src="http://2.bp.blogspot.com/-0x6dr9nB4hg/TVYyrB5Mo_I/AAAAAAAAAMk/zoHYixwt69g/s320/result.JPG" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;改變來源網站就可以更新套件了&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-plGBHbrFLUg/TVYzRjcA1QI/AAAAAAAAAMo/zDjHXXMlFKM/s1600/result.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="311" src="http://1.bp.blogspot.com/-plGBHbrFLUg/TVYzRjcA1QI/AAAAAAAAAMo/zDjHXXMlFKM/s320/result.JPG" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-7610864443045986765?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/7610864443045986765/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/ubuntu.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7610864443045986765?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7610864443045986765?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/ubuntu.html' title='Ubuntu 更換套件伺服器'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-0x6dr9nB4hg/TVYyrB5Mo_I/AAAAAAAAAMk/zoHYixwt69g/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D04MSHsyfyp7ImA9Wx9UFEU.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-7841214472795542837</id><published>2011-02-12T12:46:00.000+08:00</published><updated>2011-02-12T12:46:29.597+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-12T12:46:29.597+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><title>Fedora 如何自動更新系統 (up2date, yum, apt)</title><content type='html'>&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 5px; -webkit-border-vertical-spacing: 5px; color: #323d4f; font-family: 'Lucida Grande', 'Trebuchet MS', Helvetica, Arial, sans-serif; line-height: 18px;"&gt;我們知道在 Windows 下，要自動更新系統&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;只要執行 MS Windows Update 就可以了，輕鬆愜意&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;那麼 Linux 下，是否也有這種"輕鬆愜意"的自動更新方法呢？&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;答案是有的！&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Fedora 內建兩種自動更新的方式：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;---------------------------------------------------&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;1.up2date：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;RedHat 自己研發的更新方式&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;有「X視窗」和「純文字模式」兩種介面&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;2.yum (Yellowdog Updater Modified)&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;這是 Linux 兩種標準自動更新方式 APT &amp;amp; YUM ，其中一種&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;預設使用 yum 的 Linux 發行版比較多&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;例如：Fedora 預設就是使用 yum&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;yum 只有「純文字模式」介面&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;以下只說明，如何使用 yum 進行自動更新&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;因為 up2date 畢竟是 RedHat 自家的東西&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;只有 RedHat系列 (含Fedora)可以使用&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;學習用標準的 yum 做更新會比較好&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Fedora 如何自動更新系統 (update)：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;---------------------------------------------------&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;1.&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;由於 Fedora 已內建 yum ，所以這邊不說明 yum 如何安裝&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;指令：rpm -qa | grep yum&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;可查詢系統上是否有安裝yum ，若沒有，請自行去下載安裝&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;2.&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;yum 的使用方法(指令)：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;代碼:&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;1.列出所有可更新的套件清單&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;指令：yum check-update&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;2.安裝所有更新套件&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;指令：yum update&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;3.僅安裝指定的套件&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;指令：yum install 指定的套件名稱&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;4.列出所有可安裝的套件清單&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;指令：yum list&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;3.&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;若想知道本機系統上，有那些套件需要更新，可打指令：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;yum check-update&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;若要自動更新全部，可打指令：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;yum update&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;這樣就OK了，更新完畢後重開機一次&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;你的 Fedora 就是最新版本，已修正所有目前可知的漏洞&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;4.&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;當然如果這麼簡單，就不叫教學了&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;由於 Fedora 的 yum&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;預設的更新主機在國外，也就是 Fedora 的官方更新主機&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;連線到國外下載，速度之慢，可想而知....&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;在這裡，我們可以修改 yum 的組態檔&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;把連線主機，改成國內各大學的 Linux 更新主機，如此速度就會比較快&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;------------------------&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;/etc/yum.conf&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;-----------------------&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;代碼:&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;[base]&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;name=Fedora Core $releasever - $basearch - Base&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;[updates-released]&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;name=Fedora Core $releasever - $basearch - Released Updates&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;注意紅色的地方，就是 yum 會去連線的更新主機網址&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;改成以下，可自由選擇搭配&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;base 主機：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;(大小寫有差別，請先實際連線，看伺服器是否仍存在)&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;代碼:&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="hhttp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/1/i386/os/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;hhttp://ftp.isu.edu.tw/pub/Linux/Fedora ... 1/i386/os/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="http://linux.nctu.edu.tw/ftp/dists/fedora/core/1/i386/os/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;http://linux.nctu.edu.tw/ftp/dists/fedo ... 1/i386/os/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/1/i386/os/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;ftp://ftp.isu.edu.tw/pub/Linux/Fedora/l ... 1/i386/os/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="ftp://linux.nctu.edu.tw/dists/fedora/core/1/i386/os/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;ftp://linux.nctu.edu.tw/dists/fedora/core/1/i386/os/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="ftp://linux.sinica.edu.tw/fedora/linux/core/1/i386/os/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;ftp://linux.sinica.edu.tw/fedora/linux/core/1/i386/os/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;updates 主機：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;(大小寫有差別，請先實際連線，看伺服器是否仍存在)&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;代碼:&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/updates/1/i386/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;http://ftp.isu.edu.tw/pub/Linux/Fedora/ ... es/1/i386/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="http://linux.nctu.edu.tw/ftp/dists/fedora/core/updates/1/i386/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;http://linux.nctu.edu.tw/ftp/dists/fedo ... es/1/i386/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/updates/1/i386/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;ftp://ftp.isu.edu.tw/pub/Linux/Fedora/l ... es/1/i386/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="ftp://linux.nctu.edu.tw/dists/fedora/core/updates/1/i386/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;ftp://linux.nctu.edu.tw/dists/fedora/co ... es/1/i386/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;◎&amp;nbsp;&lt;a class="postlink" href="ftp://linux.sinica.edu.tw/fedora/linux/core/updates/1/i386/" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;ftp://linux.sinica.edu.tw/fedora/linux/ ... es/1/i386/&lt;/a&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;路徑中的 /1/ 是代表 core 1&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;如是使用core 2，請自行改成 /2/&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;改完後存檔，不必重啟服務，立刻生效&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;然後 yum 的更新速度就會飛快了&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;################################################&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;補充01：Fedora core 3 和 4 的 yum base 資料庫設定法&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;FC3 和 FC4 的 yum base 資料庫設定，有別於之前 FC2&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;並不是在 /etc/yum.conf 中設定&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;cd /etc/yum.repos.d/&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;vi fedora.repo (設定 base 主機，僅列出需要修改處)&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;代碼:&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;baseurl=http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/$releasever/$basearch/os/&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;# mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;vi fedora-updates.repo (設定 update 主機，僅列出需要修改處)&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;代碼:&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;baseurl=http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/updates/$releasever/$basearch/&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;# mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;說明：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;1.義守大學是 Fedora 官方認可的台灣區 mirror 站，所以這邊設定義守大學的主機。&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;2.&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;$releasever 是變數，會自動替換成 core 的版本，例如：3 或 4&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;$basearch 是變數，會自動替換成核心種類，例如：i386 或 i686&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;------------------------------------------------------------------------&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;補充02:如果執行 yum 時，說找不到 RPM-GPG-KEY 怎麼辦？&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;安裝即可：&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;FC3&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;代碼:&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;rpm --import /usr/share/doc/fedora-release-3/RPM-GPG-KEY-fedora&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;FC4&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;代碼:&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;rpm --import /usr/share/doc/fedora-release-4/RPM-GPG-KEY-fedora&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;------------------------------------------------------------------------&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;補充03：如何安裝某個套件軟體的完整版？&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;事實上，即使打：yum install (套件名稱)&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;yum 也不會安裝該套件的所有元件，僅會安裝一般常用的&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;例如：yum install php&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;就會發現，漏掉很多東西，諸如 php-mysql......&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;此時只要打：yum install php*&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;即可安裝該套件的所有程式&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;若不是真的對套件各個元件非常了解&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;建議安裝任何套件，都直接在後面加*&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;可以避免缺東缺西，導致整體服務運作失常&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;資料來源&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;a class="postlink" href="http://www.pczone.com.tw/vbb3/showthread.php?t=131455" style="color: #006597; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;http://www.pczone.com.tw/vbb3/showthread.php?t=131455&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://forum.icst.org.tw/phpbb/viewtopic.php?t=7143"&gt;http://forum.icst.org.tw/phpbb/viewtopic.php?t=7143&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-7841214472795542837?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/7841214472795542837/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/fedora-up2date-yum-apt.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7841214472795542837?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7841214472795542837?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/fedora-up2date-yum-apt.html' title='Fedora 如何自動更新系統 (up2date, yum, apt)'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkYBRnY4eyp7ImA9Wx9UFEU.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-3782685815315933005</id><published>2011-02-12T00:32:00.001+08:00</published><updated>2011-02-12T12:15:57.833+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-12T12:15:57.833+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><title>Fedora 14 安裝無縫模式</title><content type='html'>一、安裝&lt;br /&gt;
由 LiveCD 進入後，按 Install to Hard Drive&lt;br /&gt;
&lt;br /&gt;
二、調整螢幕解析度&lt;br /&gt;
1. 安裝完後，只有800x600的畫面，如果要支援更多的螢幕解析度，需要安裝 Virtual Box 的 Guest Additions&lt;br /&gt;
安裝前，先將 Linux kernel 更新，並抓回開發版的內容。&lt;br /&gt;
&lt;b&gt;# yum -y update kernel&lt;br /&gt;
# yum -y install kernel-devel&lt;br /&gt;
# yum -y install kernel-headers&lt;br /&gt;
# yum -y install dkms&lt;br /&gt;
# yum -y install gcc&lt;br /&gt;
# yum -y install gcc-c++&lt;/b&gt;&lt;br /&gt;
安裝完後，再 Guest Additions 放到 Virtual Box 的 CD 裝置 (裝置-&amp;gt;CD/DVD裝置-&amp;gt;VBoxGuestAdditions.iso)&lt;br /&gt;
&lt;b&gt;# cd /media/VBOX&lt;/b&gt;.... 看當時的版本&lt;br /&gt;
&lt;b&gt;# ./VBoxLinuxAdditions-x86.run&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
2. 重新啟動&lt;br /&gt;
&lt;br /&gt;
這樣就可以在完整的出現在全螢幕下了，而且也可以進入無縫模式，和 Windows 本身桌面結合。&lt;br /&gt;
&lt;br /&gt;
三、安裝中文輸入法，預設只有酷音，所以要再安裝倉頡的話，要額外再安裝&lt;br /&gt;
1. &lt;b&gt;# yum -y install ibus-table-cangjie&lt;/b&gt;&lt;br /&gt;
2. 再到 System-&amp;gt;Preferences-&amp;gt;Inupt Method-&amp;gt;Use IBus 去選用要加進去的輸入法就可以了。&lt;br /&gt;
&lt;br /&gt;
四、將 windows 中的資料夾分享到 fedora 裡&lt;br /&gt;
設定好 virtual box 中的共用資料夾後，用以下指令抓進來使用&lt;br /&gt;
mount -t vboxsf 共用資料夾名稱 Fedora中的實際路徑&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://tyh.idv.tw/book_detail_185.html"&gt;原文網站&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-3782685815315933005?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/3782685815315933005/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/fedora-14.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/3782685815315933005?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/3782685815315933005?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/fedora-14.html' title='Fedora 14 安裝無縫模式'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkAARXw-cSp7ImA9Wx9UEkg.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-196085045985987870</id><published>2011-02-09T20:32:00.000+08:00</published><updated>2011-02-09T20:32:24.259+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T20:32:24.259+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>ROI處理</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;這個範例將介紹&lt;span class="Apple-style-span" style="white-space: pre;"&gt;cvSetImageROI()及cvResetImageROI()這二個函式，通常做影像處理都是區域內的影像做修改，所以這&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; white-space: pre;"&gt;cvSetImageROI函式就可以幫我們將有興趣的區域影像擷取出來，最後再利用&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; white-space: pre;"&gt;cvResetImageROI函式將影像貼回原圖。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;
int main(int argc, char** argv)
{
    IplImage* src;
    int x = 100;
    int y = 100;
    int width = 100;
    int height = 100;
    src=cvLoadImage("123.jpg",1);                     // 讀取影像
    cvSetImageROI(src, cvRect(x,y,width,height));     // 擷取(100,100)~(200,200)矩形區域
    cvAddS(src,CV_RGB(0,0,255),src,NULL);             // 將ROI區域內R+0,G+0,B+255
    cvResetImageROI(src);                             // 將ROI區域內的值貼圖原影像
    cvNamedWindow("Roi_Add", 1 );
    cvShowImage("Roi_Add", src );                     // 秀圖
    cvWaitKey(0);
    return 0;
}

&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Wbaw6M2Pmro/TVKH9_liHHI/AAAAAAAAALY/qqgZWG6PKG0/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="264" src="http://2.bp.blogspot.com/_Wbaw6M2Pmro/TVKH9_liHHI/AAAAAAAAALY/qqgZWG6PKG0/s320/result.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-196085045985987870?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/196085045985987870/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/roi.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/196085045985987870?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/196085045985987870?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/roi.html' title='ROI處理'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Wbaw6M2Pmro/TVKH9_liHHI/AAAAAAAAALY/qqgZWG6PKG0/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEQNRHc7fip7ImA9Wx9UEUo.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-4666206999537981506</id><published>2011-02-08T22:46:00.000+08:00</published><updated>2011-02-08T22:46:35.906+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-08T22:46:35.906+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Programmer'/><title>The Boy Scout Rule</title><content type='html'>&lt;h2 style="line-height: 1.2em; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;童子軍有一個簡單的規則：&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #783f04;"&gt;&lt;b&gt;Leave the campground cleaner than you found it.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #783f04; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;要離開時的營地比進入時更加乾淨。&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;當你發現地上有髒東西，不管是誰造成的，都要立即把它清理乾淨，就這樣有意識地給下一批露營者一個更好的環境。&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;在程式的撰寫中，如果我們都遵照這條規則團隊互相幫忙，相互清理代碼，則共同開發的軟體系統將會愈來愈好。&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;原文來自 &lt;a href="http://programmer.97things.oreilly.com/wiki/index.php/The_Boy_Scout_Rule"&gt;Uncle Bob&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-4666206999537981506?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/4666206999537981506/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/boy-scout-rule.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/4666206999537981506?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/4666206999537981506?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/boy-scout-rule.html' title='The Boy Scout Rule'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUECRHk6eCp7ImA9Wx9UEkk.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-7945255650578493193</id><published>2011-02-08T22:12:00.003+08:00</published><updated>2011-02-09T17:27:45.710+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T17:27:45.710+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>cvEllipse()</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;&lt;span class="keyword" style="color: green;"&gt;void&lt;/span&gt; &lt;span class="identifier"&gt;cvEllipse&lt;/span&gt;(&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;IplImage&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic; white-space: pre;"&gt;img&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222;"&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;&lt;i&gt;center&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Size&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;axes,&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;double &lt;/span&gt;&lt;span class="parameter"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;angle&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;double &lt;/span&gt;&lt;span class="parameter"&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;&lt;i&gt;startAngle,&lt;/i&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-style: normal;"&gt;double &lt;/span&gt;&lt;span class="parameter"&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;endAngle&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-style: normal;"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-style: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvScalar&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-style: normal; white-space: pre;"&gt; &lt;span class="parameter" style="color: purple; font-style: italic;"&gt;color&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-style: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;int &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;thickness&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-style: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;LINE_TYPE &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;lineType&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-style: normal; white-space: pre;"&gt; &lt;span class="Apple-style-span" style="color: blue;"&gt;int &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;shift&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-style: normal; white-space: pre;"&gt;)&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #222222; line-height: 18px; white-space: pre;"&gt;參數定義&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;dl paramname="img" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;img&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;IplImage&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Image where the circle is drawn&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="pt1" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;i&gt;center&lt;/i&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="font-weight: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Center of the ellipse&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="pt2" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;i style="font-weight: bold;"&gt;axes&lt;/i&gt;&lt;b&gt;&amp;nbsp;(&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Size&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/b&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Length of the ellipse axes&lt;/span&gt;&lt;/dd&gt;&lt;dd&gt;&lt;/dd&gt;
&lt;dt style="margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;i style="font-weight: bold;"&gt;angle&lt;/i&gt;&lt;b&gt;&amp;nbsp;(&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;double&lt;/span&gt;)&lt;/b&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Rotation angle&lt;/span&gt;&lt;/dd&gt;&lt;dd&gt;&lt;/dd&gt;
&lt;dt style="margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;i style="font-weight: bold;"&gt;startAngle&lt;/i&gt;&lt;b&gt;&amp;nbsp;(&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;double&lt;/span&gt;)&lt;/b&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Starting angle of the elliptic arc&lt;/span&gt;&lt;/dd&gt;&lt;dd&gt;&lt;/dd&gt;
&lt;dt style="margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;i style="font-weight: bold;"&gt;endAngle&lt;/i&gt;&lt;b&gt;&amp;nbsp;(&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;double&lt;/span&gt;)&lt;/b&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Ending angle of the elliptic arc&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="color" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;color&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvScalar&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Ellipse color&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="thickness" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;thickness&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;int&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Thickness of the ellipse arc&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="lineType" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;lineType&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;LINE_TYPE&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Type of the ellipse boundary&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="shift" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;shift&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;int&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Number of fractional bits in the center coordinates and axes' values&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;

int main(int argc, char *argv[])
{
    IplImage *Image1; 
    CvPoint P1;
    CvSize Axes;
    CvSize ImageSize;
    CvScalar Color;
    
     
    ImageSize = cvSize(640,480);                              // 設定畫布大小為640*480 
    Image1 = cvCreateImage(ImageSize,IPL_DEPTH_8U,3);         // 建構Image1的影像暫存空間,且設為24bit的大小
    P1 = cvPoint(300,200);                                    // 設定圓心座標 
    Axes = cvSize(200,100);                                   // 設定橢圓的外接矩形大小
    Color=CV_RGB(0,0,255);                                    // 設定顏色 -- 藍色 
    cvEllipse(Image1,P1,Axes,0,0,360,Color,10,CV_AA,0);       // 畫橢圓 
    Color=CV_RGB(255,0,0);                                    // 設定顏色 -- 紅色 
    cvEllipse(Image1,P1,Axes,0,0,360,Color,1,CV_AA,0);        // 畫橢圓     
    cvShowImage("Image1",Image1);                             // 顯示影像 
    cvWaitKey(0);                                             
    cvDestroyWindow("Image1");
    cvReleaseImage(&amp;amp;Image1); 
    return 0;
}
&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_Wbaw6M2Pmro/TVFMy3z1_MI/AAAAAAAAALA/77mzO14MbAA/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="253" src="http://4.bp.blogspot.com/_Wbaw6M2Pmro/TVFMy3z1_MI/AAAAAAAAALA/77mzO14MbAA/s320/result.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-7945255650578493193?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/7945255650578493193/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/cvellipse.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7945255650578493193?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7945255650578493193?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/cvellipse.html' title='cvEllipse()'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Wbaw6M2Pmro/TVFMy3z1_MI/AAAAAAAAALA/77mzO14MbAA/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUAFRXc5fSp7ImA9Wx9UEkk.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-3771232034146779171</id><published>2011-02-08T21:48:00.002+08:00</published><updated>2011-02-09T17:28:34.925+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T17:28:34.925+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>cvCircle()</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #222222; line-height: 18px;"&gt;畫圓形副程式&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;&lt;span class="keyword" style="color: green;"&gt;void&lt;/span&gt; &lt;span class="identifier"&gt;cvCircle&lt;/span&gt;(&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;IplImage&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic; white-space: pre;"&gt;img&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222;"&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;&lt;i&gt;center&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;int&lt;/span&gt;&lt;i style="color: purple;"&gt; radius&lt;/i&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvScalar&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt; &lt;span class="parameter" style="color: purple; font-style: italic;"&gt;color&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;int &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;thickness&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;LINE_TYPE &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;lineType&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt; &lt;span class="Apple-style-span" style="color: blue;"&gt;int &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;shift&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; white-space: pre;"&gt;參數定義&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;dl paramname="img" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;img&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;IplImage&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Image where the circle is drawn&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="pt1" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;i&gt;center&lt;/i&gt; (&lt;span class="Apple-style-span" style="font-weight: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Center of the circle&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="pt2" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;i&gt;radius&lt;/i&gt; (&lt;span class="Apple-style-span" style="font-weight: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;int&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Radius of the circle.&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="color" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;color&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvScalar&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Line color&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="thickness" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;thickness&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;int&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Thickness of the circle outline if positive, otherwise indicates that a filled circle has to be drawn&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="lineType" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;lineType&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;LINE_TYPE&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Type of the circle boundary&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="shift" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;shift&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;int&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Number of fractional bits in the center coordinates and radius value&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;

int main(int argc, char *argv[])
{
    IplImage *Image1; 
    CvPoint P1;
    int R1;
    CvSize ImageSize;
    CvScalar Color;
    
     
    ImageSize = cvSize(640,480);                              // 設定畫布大小為640*480 
    Image1 = cvCreateImage(ImageSize,IPL_DEPTH_8U,3);         // 建構Image1的影像暫存空間,且設為24bit的大小
    P1 = cvPoint(200,200);                                    // 設定圓心座標 
    Color=CV_RGB(0,0,255);                                    // 設定顏色 -- 藍色 
    R1 = 100;                                                 // 半徑 100 
    cvCircle(Image1,P1,R1,Color,10,CV_AA,0);                  // 畫圓 
    Color=CV_RGB(255,0,0);                                    // 設定顏色 -- 紅色 
    cvCircle(Image1,P1,R1,Color,1,CV_AA,0);                   // 畫圓     
    cvShowImage("Image1",Image1);                             // 顯示影像 
    cvWaitKey(0);                                             
    cvDestroyWindow("Image1");
    cvReleaseImage(&amp;amp;Image1); 
    return 0;
}
&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Wbaw6M2Pmro/TVFIWZuJitI/AAAAAAAAAK4/gMunKEty-ag/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="254" src="http://2.bp.blogspot.com/_Wbaw6M2Pmro/TVFIWZuJitI/AAAAAAAAAK4/gMunKEty-ag/s320/result.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-3771232034146779171?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/3771232034146779171/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/cvcircle.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/3771232034146779171?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/3771232034146779171?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/cvcircle.html' title='cvCircle()'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Wbaw6M2Pmro/TVFIWZuJitI/AAAAAAAAAK4/gMunKEty-ag/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUAASXg6eip7ImA9Wx9UEkk.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-7625659295626358869</id><published>2011-02-08T21:35:00.001+08:00</published><updated>2011-02-09T17:29:08.612+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T17:29:08.612+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>cvRectangle()</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #222222; line-height: 18px;"&gt;畫矩形副程式&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="keyword" style="color: green;"&gt;void&lt;/span&gt; &lt;span class="identifier"&gt;cvRectangle&lt;/span&gt;(&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;IplImage&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="parameter" style="color: purple; font-style: italic; white-space: pre;"&gt;img&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt; &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic; white-space: pre;"&gt;pt1&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="parameter" style="color: purple; font-style: italic; white-space: pre;"&gt;pt2&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvScalar&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt; &lt;span class="parameter" style="color: purple; font-style: italic;"&gt;color&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;int &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;thickness&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;LINE_TYPE &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;lineType&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt; &lt;span class="Apple-style-span" style="color: blue;"&gt;int &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;shift&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="white-space: pre;"&gt;參數定義&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;dl paramname="img" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;img&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;IplImage&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The image&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="pt1" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;pt1&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="font-weight: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;One of the rectangle vertices&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="pt2" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;pt2&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="font-weight: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Opposite rectangle vertex&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="color" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;color&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvScalar&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Line color&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="thickness" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;thickness&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;int&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Line thickness.&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="lineType" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;lineType&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;LINE_TYPE&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Thickness of lines that make up the rectangle. Negative values make the function to draw a filled rectangle.&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="shift" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;shift&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;int&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Number of fractional bits in the point coordinates&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;

int main(int argc, char *argv[])
{
    IplImage *Image1; 
    CvPoint P1,P2;
    CvSize ImageSize;
    CvScalar Color;
     
    ImageSize = cvSize(640,480);                              // 設定畫布大小為640*480 
    Image1 = cvCreateImage(ImageSize,IPL_DEPTH_8U,3);         // 建構Image1的影像暫存空間,且設為24bit的大小
    P1 = cvPoint(100,100);                                    // 設定起點座標 
    P2 = cvPoint(400,400);                                    // 設定終點座標 
    Color=CV_RGB(0,0,255);                                    // 設定顏色 -- 藍色 
    cvRectangle(Image1,P1,P2,Color,10,CV_AA,0);               // 畫矩形
    Color=CV_RGB(255,0,0);                                    // 設定顏色 -- 紅色 
    cvRectangle(Image1,P1,P2,Color,1,CV_AA,0);                // 畫矩形     
    cvShowImage("Image1",Image1);                             // 顯示影像 
    cvWaitKey(0);                                             
    cvDestroyWindow("Image1");
    cvReleaseImage(&amp;amp;Image1); 
    return 0;
}
&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Wbaw6M2Pmro/TVFF0obrn_I/AAAAAAAAAKw/Ua6L2A68lZw/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="254" src="http://1.bp.blogspot.com/_Wbaw6M2Pmro/TVFF0obrn_I/AAAAAAAAAKw/Ua6L2A68lZw/s320/result.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-7625659295626358869?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/7625659295626358869/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/cvrectangle.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7625659295626358869?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/7625659295626358869?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/cvrectangle.html' title='cvRectangle()'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Wbaw6M2Pmro/TVFF0obrn_I/AAAAAAAAAKw/Ua6L2A68lZw/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUAMRX4zeCp7ImA9Wx9UEkk.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-8843643013608969159</id><published>2011-02-08T21:22:00.002+08:00</published><updated>2011-02-09T17:29:44.080+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T17:29:44.080+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>cvLine()</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;畫直線副程式&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="keyword" style="color: green;"&gt;void&lt;/span&gt; &lt;span class="identifier"&gt;cvLine&lt;/span&gt;(&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;IplImage&lt;/span&gt;&lt;/span&gt; &lt;span class="parameter" style="color: purple; font-style: italic; white-space: pre;"&gt;img&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt; &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic; white-space: pre;"&gt;pt1&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;/span&gt; &lt;span class="parameter" style="color: purple; font-style: italic; white-space: pre;"&gt;pt2&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvScalar&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt; &lt;span class="parameter" style="color: purple; font-style: italic;"&gt;color&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;int &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;thickness&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;LINE_TYPE &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;lineType&lt;/span&gt;, &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt; &lt;span class="Apple-style-span" style="color: blue;"&gt;int &lt;/span&gt;&lt;span class="parameter" style="color: purple; font-style: italic;"&gt;shift&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;參數定義&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;dl paramname="img" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;img&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;IplImage&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The image&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="pt1" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;pt1&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="font-weight: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;First point of the line segment&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="pt2" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;pt2&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="font-weight: normal; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvPoint&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Second point of the line segment&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="color" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;color&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CvScalar&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Line color&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="thickness" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;thickness&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;int&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Line thickness.&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="lineType" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;lineType&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;LINE_TYPE&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Type of the line: 8 (or 0) - 8-connected line. 4 - 4-connected line. CV_AA - antialiased line.&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname="shift" style="margin-bottom: 0.5em; margin-top: 0.5em;"&gt;&lt;dt style="font-weight: bold; margin-left: 10px; margin-top: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="parameter" style="font-style: italic;"&gt;shift&lt;/span&gt;&amp;nbsp;(&lt;span class="Apple-style-span" style="color: blue; font-weight: normal; white-space: pre;"&gt;int&lt;/span&gt;)&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Number of fractional bits in the point coordinates&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;
&lt;pre style="font-family: 'Andale Mono', 'Courier New', Courier, monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;

int main(int argc, char *argv[])
{
    IplImage *Image1; 
    CvPoint P1,P2;
    CvSize ImageSize;
    CvScalar Color;
     
    ImageSize = cvSize(640,480);                              // 設定畫布大小為640*480 
    Image1 = cvCreateImage(ImageSize,IPL_DEPTH_8U,3);         // 建構Image1的影像暫存空間,且設為24bit的大小
    P1 = cvPoint(100,100);                                    // 設定起點座標 
    P2 = cvPoint(400,400);                                    // 設定終點座標 
    Color=CV_RGB(0,0,255);                                    // 設定顏色 -- 藍色 
    cvLine(Image1,P1,P2,Color,10,CV_AA,0);                    // 畫線 
    Color=CV_RGB(255,0,0);                                    // 設定顏色 -- 紅色 
    cvLine(Image1,P1,P2,Color,1,CV_AA,0);                     // 畫線     
    cvShowImage("Image1",Image1);                             // 顯示影像 
    cvWaitKey(0);                                             
    cvDestroyWindow("Image1");
    cvReleaseImage(&amp;Image1); 
    return 0;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Wbaw6M2Pmro/TVFBS_wbAbI/AAAAAAAAAKo/Vp8C-YSPZ0w/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="254" src="http://2.bp.blogspot.com/_Wbaw6M2Pmro/TVFBS_wbAbI/AAAAAAAAAKo/Vp8C-YSPZ0w/s320/result.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-8843643013608969159?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/8843643013608969159/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/cvline.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/8843643013608969159?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/8843643013608969159?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/cvline.html' title='cvLine()'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Wbaw6M2Pmro/TVFBS_wbAbI/AAAAAAAAAKo/Vp8C-YSPZ0w/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DU8ERX4_cSp7ImA9Wx9UEUs.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-6956422776970145515</id><published>2011-02-08T20:23:00.000+08:00</published><updated>2011-02-08T20:23:24.049+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-08T20:23:24.049+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Programmer'/><title>Beauty is in simplicity</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;柏拉圖有一句名言：&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="letter-spacing: 1px; line-height: 20px;"&gt;&lt;span class="Apple-style-span" style="color: #783f04; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;b&gt;Beauty of style and harmony and grace and good rhythm depend on simplicity.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="letter-spacing: 1px; line-height: 20px;"&gt;&lt;span class="Apple-style-span" style="letter-spacing: normal; line-height: normal;"&gt;&lt;span class="Apple-style-span" style="color: #783f04; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;風格之美，和諧，優雅和優美的節奏全在於簡單。&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;美來自於簡單，亦存在於簡單，程式撰寫者所追求的也莫過於此。&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-6956422776970145515?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/6956422776970145515/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/beauty-is-in-simplicity.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/6956422776970145515?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/6956422776970145515?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/beauty-is-in-simplicity.html' title='Beauty is in simplicity'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DU8HSXk_eCp7ImA9Wx9UEU8.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-3276894552877088029</id><published>2011-02-07T21:14:00.008+08:00</published><updated>2011-02-08T09:17:18.740+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-08T09:17:18.740+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Programmer'/><title>Technical debt</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Technical debt 技術債務&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;在每次開始撰寫程式時，有時候必須在"做的快"與"做的好"之間作出一個決擇。&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;但往往在工作中都會選擇"做的快"，為了快速達到目地，而把一些功能寫死或是沒有對一些例外做預防，而這些特殊狀況而無法應用到一些特殊的模組中，因而把這情況稱之為"Technical debt 技術債務"。&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;==================================================&lt;/span&gt;&lt;br /&gt;
&lt;div style="line-height: 16px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://blogs.construx.com/members/stevemcc.aspx" style="color: #0b59b2; text-decoration: underline;" target="_blank"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Martin Fowler&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;認為下面的定義最能表現&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://martinfowler.com/bliki/TechnicalDebt.html" id="aa:0" style="color: #0b59b2; text-decoration: underline;" title="技术债务"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;技術債務&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;的含義：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;blockquote style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: url(http://cdn2.infoq.com/styles/cn/i/bg-blockquote.gif); background-origin: initial; background-position: 5px 5px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(239, 239, 239); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(239, 239, 239); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(239, 239, 239); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(239, 239, 239); border-top-style: solid; border-top-width: 2px; color: #333333; line-height: 16px; margin-left: 20px; margin-right: 0px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; font-family: Arial, Helvetica, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;技術債務類似於金融債務，它也會產生利息，這裡的利息其實就是指由於魯莽的設計決策導致需要在未來的開發中付出更多努力的後果。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;我們可以選擇繼續支付利息，也可以通過重構之前魯莽的設計來將本金一次付清。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;雖然一次性付清本金需要代價，但卻可以降低未來的利息。&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;a href="http://blogs.construx.com/members/stevemcc.aspx" style="color: #0b59b2; text-decoration: underline;" target="_blank"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Steve McConnell&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;將技術債務&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;a href="http://blogs.construx.com/blogs/stevemcc/archive/2007/11/01/technical-debt-2.aspx" id="a.yt" style="color: #0b59b2; text-decoration: underline;" title="分为两类"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;分為兩類&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;無意的 ——由於經驗的缺乏導致初級開發者編寫了質量低劣的代碼。&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;有意的&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;——團隊根據當前而非未來進行設計選型，這種方式可能很快就能解決當前的問題，但卻很拙劣。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://objectmentor.com/omTeam/martin_r.html" id="qytw" style="color: #0b59b2; text-decoration: underline;" title="Bob大叔"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Bob大叔&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;補充到，有時人們將壞味道也看作是技術債務，但這是&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://blog.objectmentor.com/articles/2009/09/22/a-mess-is-not-a-technical-debt" id="frjf" style="color: #0b59b2; text-decoration: underline;" title="错误"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;錯誤&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;的，他說：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: url(http://cdn2.infoq.com/styles/cn/i/bg-blockquote.gif); background-origin: initial; background-position: 5px 5px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(239, 239, 239); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(239, 239, 239); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(239, 239, 239); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(239, 239, 239); border-top-style: solid; border-top-width: 2px; color: #333333; margin-left: 20px; margin-right: 0px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;壞味道並非技術債務。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;壞味道就是壞味道。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;技術債務的評價標準是真實的項目約束，這些約束是風險和好處並存的。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;壞味道的產生永遠都不是理性的結果，而是由懶惰和外行導致的，未來也沒有機會償還了。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;壞味道總是意味著損失。&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Bob大叔說技術債務讓人們時刻牢記保持代碼的整潔，就好像一個人在背負巨大的抵押債務時需要時刻保持警醒一樣。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;他又說一旦團隊決定採納技術債務，那就意味著保持代碼的整潔將變得空前的重要。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;如果不這樣，情況很快就會變得糟糕不堪，償還這些債務的代價也變得越來越大。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Martin Fowler認為壞味道也是技術債務，只不過是另一種形式的技術債務而已。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;他覺得壞味道是一種不計後果（&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;reckless&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;）的債務，相對於根據精確計算而得來的謹慎的（&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;prudent&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;）債務而言，壞味道會讓問題變得更加嚴重。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;他又加上了故意（&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;deliberate&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;）以及無意（&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;inadvertent&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;）從而將技術債務劃分為四個像限。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Martin通過如下示例&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://martinfowler.com/bliki/TechnicalDebtQuadrant.html" id="mg4g" style="color: #0b59b2; text-decoration: underline;" title="将技术债务划分为4个象限"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;將技術債務劃分為4個像限&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;不計後果，故意的&lt;/span&gt;&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;——團隊沒有時間做設計，僅僅給出了一個匆忙做出的方案，缺乏對質量的預見。&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;謹慎，故意的&lt;/span&gt;&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;——儘管有很多已知的缺陷，但團隊必須現在交付產品，同時對此造成的後果心中有數。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;不計後果，無意的&lt;/span&gt;&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;——團隊壓根就不知道基本的設計原則，更不用說引入的壞味道了。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;謹慎，無意的&lt;/span&gt;&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;——那些擁有優秀設計師的團隊很容易遇到這種情況。&lt;/span&gt;&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;他們交付的方案具有商業價值，但在完成方案後才明白什麼才是最好的方案。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;綜上所述，實際的項目中將不可避免地存在技術債務問題，這是無法杜絕的，但問題的關鍵在於千萬不能引入不計後果的債務，因為它會持續不斷地產生壞味道，也很難對付。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;原文網站&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold; letter-spacing: -1px; line-height: 16px;"&gt;&lt;a href="http://www.infoq.com/news/2009/10/dissecting-technical-debt" rel="permalink" style="color: #333333; text-decoration: none;"&gt;Dissecting Technical Debt&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;==================================================&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;技術債務就像是一筆貸款，在短期內，你能從中得到好處，但是在清償前，你要付出利息(例如：花時間去了解以前寫的程式，或是更改程式碼要更加小心避免產生額外的bug...等等。)，若不時時償還技術債務，那利息就會日益增加。但每當你不得已而欠下技術債務，就要立刻記錄起來，以保證其不會被遺忘。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-large;"&gt;&lt;b&gt;總歸一句盡快處理償還你的技術債務吧，否則你會為你的輕率而後悔。&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-3276894552877088029?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/3276894552877088029/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/technical-debt.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/3276894552877088029?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/3276894552877088029?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/02/technical-debt.html' title='Technical debt'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CU8ERXg6fSp7ImA9Wx9UEkk.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-1663684000909648151</id><published>2011-01-30T17:16:00.002+08:00</published><updated>2011-02-09T17:30:04.615+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T17:30:04.615+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>cvSmooth()</title><content type='html'>&lt;a href="http://www710.univ-lyon1.fr/~bouakaz/OpenCV-0.9.5/docs/ref/OpenCVRef_ImageProcessing.htm#decl_cvSmooth"&gt;cvSmooth()&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;

int main(int argc, char *argv[])
{
    char FileName[]="123.jpg";
    IplImage *Image1;
    IplImage *Image2;  
    CvSize Image2Size;
    
    Image1 = cvLoadImage(FileName,CV_LOAD_IMAGE_GRAYSCALE);   // 讀取影像且設為灰階影像
    Image2Size = cvSize(Image1-&amp;gt;width,Image1-&amp;gt;height);        // 讀取Image1的影像大小
    IImage2 = cvCreateImage(Image2Size,IPL_DEPTH_8U,1);       // 建構Image2的影像暫存空間,且設為8bit的大小
    cvSmooth(Image1,Image2,CV_GAUSSIAN,3,0,0,0);              // 利用cvSmooth()函式處理
    cvShowImage("原始圖",Image1);
    cvShowImage("高斯平滑處理",Image2);
    cvWaitKey(0);
    cvDestroyWindow("原始圖");
    cvDestroyWindow("高斯平滑處理");
    cvReleaseImage(&amp;amp;Image1); 
    cvReleaseImage(&amp;amp;Image2); 
    return 0;
}
&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Wbaw6M2Pmro/TUUsOK0pAeI/AAAAAAAAAKc/l4-V5I2vFZQ/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/_Wbaw6M2Pmro/TUUsOK0pAeI/AAAAAAAAAKc/l4-V5I2vFZQ/s320/result.JPG" width="310" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-1663684000909648151?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/1663684000909648151/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cvsmooth.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1663684000909648151?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1663684000909648151?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cvsmooth.html' title='cvSmooth()'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Wbaw6M2Pmro/TUUsOK0pAeI/AAAAAAAAAKc/l4-V5I2vFZQ/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CU8HQ3s9fSp7ImA9Wx9UEkk.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-3557031190172285052</id><published>2011-01-30T16:26:00.002+08:00</published><updated>2011-02-09T17:30:32.565+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T17:30:32.565+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>cvDilate()</title><content type='html'>&lt;a href="http://www710.univ-lyon1.fr/~bouakaz/OpenCV-0.9.5/docs/ref/OpenCVRef_ImageProcessing.htm#decl_cvDilate"&gt;cvDilate()&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;

int main(int argc, char *argv[])
{
    char FileName[]="123.jpg";
    IplImage *Image1;
    IplImage *Image2;  
    CvSize Image2Size;
    
    Image1 = cvLoadImage(FileName,CV_LOAD_IMAGE_GRAYSCALE);   // 讀取影像且設為灰階影像
    Image2Size = cvSize(Image1-&amp;gt;width,Image1-&amp;gt;height);        // 讀取Image1的影像大小
    IImage2 = cvCreateImage(Image2Size,IPL_DEPTH_8U,1);       // 建構Image2的影像暫存空間,且設為8bit的大小
    cvDilate(Image1,Image2,NULL,1);                           // 利用cvDilate()函式處理
    cvShowImage("Image2",Image2);
    cvWaitKey(0);
    cvDestroyWindow("Image2");
    cvReleaseImage(&amp;amp;Image1); 
    cvReleaseImage(&amp;amp;Image2); 
    return 0;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_Wbaw6M2Pmro/TUUgdXf60hI/AAAAAAAAAKU/1PY7xTWRLwk/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="209" src="http://3.bp.blogspot.com/_Wbaw6M2Pmro/TUUgdXf60hI/AAAAAAAAAKU/1PY7xTWRLwk/s320/result.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-3557031190172285052?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/3557031190172285052/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cvdilate.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/3557031190172285052?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/3557031190172285052?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cvdilate.html' title='cvDilate()'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Wbaw6M2Pmro/TUUgdXf60hI/AAAAAAAAAKU/1PY7xTWRLwk/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CU8BQXY6eyp7ImA9Wx9UEkk.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-8106400778598081230</id><published>2011-01-30T16:22:00.002+08:00</published><updated>2011-02-09T17:30:50.813+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T17:30:50.813+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>cvErode()</title><content type='html'>&lt;pre&gt;&lt;a href="http://www710.univ-lyon1.fr/~bouakaz/OpenCV-0.9.5/docs/ref/OpenCVRef_ImageProcessing.htm#decl_cvErode"&gt;cvErode()&lt;/a&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;

int main(int argc, char *argv[])
{
    char FileName[]="123.jpg";
    IplImage *Image1;
    IplImage *Image2;  
    CvSize Image2Size;
    
    Image1 = cvLoadImage(FileName,CV_LOAD_IMAGE_GRAYSCALE);   // 讀取影像且設為灰階影像
    Image2Size = cvSize(Image1-&amp;gt;width,Image1-&amp;gt;height);        // 讀取Image1的影像大小
    IImage2 = cvCreateImage(Image2Size,IPL_DEPTH_8U,1);       // 建構Image2的影像暫存空間,且設為8bit的大小
    cvErode(Image1,Image2,NULL,1);                            // 利用cvErode()函式處理
    cvShowImage("Image2",Image2);
    cvWaitKey(0);
    cvDestroyWindow("Image2");
    cvReleaseImage(&amp;amp;Image1); 
    cvReleaseImage(&amp;amp;Image2); 
    return 0;
}
&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Wbaw6M2Pmro/TUUfWSBByJI/AAAAAAAAAKM/fo29br4Qcbc/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="208" src="http://2.bp.blogspot.com/_Wbaw6M2Pmro/TUUfWSBByJI/AAAAAAAAAKM/fo29br4Qcbc/s320/result.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-8106400778598081230?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/8106400778598081230/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cverode.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/8106400778598081230?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/8106400778598081230?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cverode.html' title='cvErode()'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Wbaw6M2Pmro/TUUfWSBByJI/AAAAAAAAAKM/fo29br4Qcbc/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CU8MRH8zeip7ImA9Wx9UEkk.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-1777224608035865728</id><published>2011-01-30T15:02:00.001+08:00</published><updated>2011-02-09T17:31:25.182+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T17:31:25.182+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>cvCanny()</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&lt;a href="http://www710.univ-lyon1.fr/~bouakaz/OpenCV-0.9.5/docs/ref/OpenCVRef_ImageProcessing.htm#decl_cvCanny"&gt;cvCanny()&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;

int main(int argc, char *argv[])
{
    char FileName[]="123.jpg";
    IplImage *Image1;
    IplImage *Image2;  
    CvSize Image2Size;
    
    Image1 = cvLoadImage(FileName,CV_LOAD_IMAGE_GRAYSCALE);   // 讀取影像且設為灰階影像
    Image2Size = cvSize(Image1-&amp;gt;width,Image1-&amp;gt;height);        // 讀取Image1的影像大小
    IImage2 = cvCreateImage(Image2Size,IPL_DEPTH_8U,1);       // 建構Image2的影像暫存空間,且設為8bit的大小
    cvCanny(Image1,Image2,0,255,3);                           // 利用cvCanny()函式處理
    cvShowImage("Image2",Image2);
    cvWaitKey(0);
    cvDestroyWindow("Image2");
    cvReleaseImage(&amp;amp;Image1); 
    cvReleaseImage(&amp;amp;Image2); 
    return 0;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Wbaw6M2Pmro/TUUMtZEcpQI/AAAAAAAAAKE/PBSlgBUIZt4/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="210" src="http://1.bp.blogspot.com/_Wbaw6M2Pmro/TUUMtZEcpQI/AAAAAAAAAKE/PBSlgBUIZt4/s320/result.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-1777224608035865728?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/1777224608035865728/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cvcanny.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1777224608035865728?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1777224608035865728?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cvcanny.html' title='cvCanny()'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Wbaw6M2Pmro/TUUMtZEcpQI/AAAAAAAAAKE/PBSlgBUIZt4/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CU8NSH8yfip7ImA9Wx9UEkk.&quot;'><id>tag:blogger.com,1999:blog-4468990953784279177.post-1616708282621461186</id><published>2011-01-30T14:47:00.003+08:00</published><updated>2011-02-09T17:31:39.196+08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-09T17:31:39.196+08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenCV'/><title>cvLaplace()</title><content type='html'>&lt;a href="http://www710.univ-lyon1.fr/~bouakaz/OpenCV-0.9.5/docs/ref/OpenCVRef_ImageProcessing.htm#decl_cvLaplace"&gt;cvLaplace()&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;cv.h&amp;gt;
#include &amp;lt;highgui.h&amp;gt;

int main(int argc, char *argv[])
{
    char FileName[]="123.jpg";
    IplImage *Image1;
    IplImage *Image2;  
    CvSize Image2Size;
    
    Image1 = cvLoadImage(FileName,CV_LOAD_IMAGE_GRAYSCALE);   // 讀取影像且設為灰階影像
    Image2Size = cvSize(Image1-&amp;gt;width,Image1-&amp;gt;height);        // 讀取Image1的影像大小
    Image2 = cvCreateImage(Image2Size,IPL_DEPTH_16S,1);       // 建構Image2的影像暫存空間,且設為16bit的大小
    cvLaplace(Image1,Image2,3);                               // 利用cvLaplace()函式處理
    cvConvertScaleAbs(Image2,Image1,1,0);                     // 將處理完的結果影像轉換成8bit
    cvShowImage("Image1",Image1);
    cvWaitKey(0);
    cvDestroyWindow("Image1");
    cvReleaseImage(&amp;amp;Image1); 
    cvReleaseImage(&amp;amp;Image2); 
    return 0;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Wbaw6M2Pmro/TUUI0LkFyFI/AAAAAAAAAJ8/qCeJV8xgYWM/s1600/result.JPG" imageanchor="1"&gt;&lt;img border="0" height="209" src="http://1.bp.blogspot.com/_Wbaw6M2Pmro/TUUI0LkFyFI/AAAAAAAAAJ8/qCeJV8xgYWM/s320/result.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4468990953784279177-1616708282621461186?l=myctipsblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myctipsblog.blogspot.com/feeds/1616708282621461186/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cvlaplace.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1616708282621461186?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4468990953784279177/posts/default/1616708282621461186?v=2'/><link rel='alternate' type='text/html' href='http://myctipsblog.blogspot.com/2011/01/cvlaplace.html' title='cvLaplace()'/><author><name>Weiyu</name><uri>http://www.blogger.com/profile/13871714350558256659</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14133445472241555325'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Wbaw6M2Pmro/TUUI0LkFyFI/AAAAAAAAAJ8/qCeJV8xgYWM/s72-c/result.JPG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>