Pattern-based features extraction algorithm in the diagnosis of neurodegenerative diseases from diffusion MRI