Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

DullRazor – digital skin hair shaver

DullRasor uses image processing techniques to analyze and segments skin areas with dark hair. This program removes dark hairs form images, and makes skin lesion images clean to further processing.

fig1thumb-arrow   fig2

Many skin images contain various numbers of hairs. Other skin segmentation programs may mislead because of hairs – especially dark ones. One solution can be shaving skin before taking pictures of it. But shaving of skin adds more time to processing, and this is uncomfortable and in some cases unaesthetic.  Hence, a software approach for dark, thick hair removal from skin images is needed.

There is only one program window:


DullRazor performs the following steps:

  1. It identifies the dark hair locations by a generalized grayscale morphological closing operation,
  2. It verifies the shape of the hair pixels as thin and long structure, and replace the verified pixels by a bi-linear interpolation;
  3. It smooths the replaced hair pixels with an adaptive median filter.

The algorithm has been implemented in C on a SunOS 4.x workstation. (The program can be run on Sun Solaris workstations as well.) It has been tested on real nevi images with satisfactory results.

Download the Unix version of DullRazor (dullrazor.zip, 87KB).
Download the Windows version of DullRazor (dullrazor_wins.zip, 327KB.

My test on one of the images:





Read more in https://www.derm.ubc.ca/dull_razor/


  1. can u help me? i want source code dullrazor

  2. hi, want source code dullrazor, help please

  3. hi.. nice work

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.