A qualitative approach for medial computation