I found it : in the command prompt cmd
use the following line
convert_cascade --size="20x20" haarcascade haarcascade.xml
where
convert_cascade --size="<sample_width>x<sampe_height>" <haartraining_ouput_dir><ouput_file>
convert_cascade is a ".c" file in
..\opencv\samples\cdirectory, i compiled it in new project to get 'convert_cascade.exe
.
Reference: Tutorial: OpenCV haartraining