Compressed sensing and dictionary learning