A CUDA-powered method for the feature extraction and unsupervised analysis of medical images