new file:   tools/extract_features3.cpp