A Learning Based Brain Tumor Detection System