Automatic classification of intracardiac tumor and thrombi in echocardiography based on sparse representation