基底細胞瘤(BCC)最常見於臺灣與新加坡[1]。預防與早期診斷對於人民很重要。電腦輔助診斷(CAD)在皮膚癌上已有許多進展與應用。CAD有節省計算時間與一致客觀結果的優點。 皮膚痣圖片毛髮辨識去除是CAD的第一步驟。本論文著重在,針對本論文的臨床圖片,優化改進一被廣泛使用的除毛軟體,DullRazor?。毛髮辨識的準確度影響去除毛髮與保留皮膚皺紋特徵之間的取捨。 DullRazor?的效能取決於圖片的大小、背景皮膚的顏色、毛髮粗細等。而本論文資料圖片的毛髮較細且圖的中心皺紋有白色反光。為了針對本論文的資料增進辨識程度,對相關參數作進一步的檢視與設計客製化的演算法是必要的。本論文提出以中值濾波器演算法來去除圖片中央光反射所造成的雜訊。為了公平地與DullRazor?的方法比較,本論文探討形態學斷開與閉合的結構元素的最佳大小與形狀。另外,相於傳統數位方向性分數,本論文亦提出一解析方向性分數作比較。 總結,中值濾波器演算法效能較DullRazor?方法適用。但是,毛髮辨識的效能變因多樣。客制化調整參數以增進辨識效能是必要的。而本論文可被作為調整參數時的參考流程。 Basal cell carcinomas (BCCs) are more common in Taiwan and Singapore [1]. The prevention and early detection are important to people’s health. Studies on Computer-aided diagnosis (CAD) have developed to assist diagnosis on skin cancers. CAD has the advantages of speed and objective outcomes. Hair removal is the first step for computerized analysis on lesion images. This thesis aims at improving the performance of a popular body hair removal method, DullRazor?, on our data images. Accuracy of the detection is crucial for the balance between removing hair and removing wrongly other skin features. The performance of DullRazor? depends on the dimension of images, background skin color, and the thickness of hair. The features of most images are small in length and width, and contain light reflection in the center. In order to peak the performance for the data images of this thesis, it is necessary to look into the properties of parameters and modify the procedure according to the data images. This thesis proposes the median filter method for the hair removal of the data images with light reflection in the center. To compare with DullRazor method fairly, this thesis also customizes the size and shape of the structure element of morphological closing and opening for the data images. Lastly, a generalized analog directional score is introduced to compare with the conventional digital one for reducing noise. In summary, the median filter method performs better than the open-close method, thus better than the DullRazor method. However, the performance of hair detection is sensitive to the properties of the images. It is suggested to adjust some parameters when higher performance is required. The procedure of this thesis could serve as an example to fine-tune the parameters systematically.