Deep-based quality assessment of medical images through domain adaptation