add mix and data directories
add function convert float mat to uchar mat