A morphological method for ammonia detection in liver