Feature extraction in image processing and deep learning