Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Detecting Brain Tumor?

Hey there guys. Newbie here.

I am trying to train a haar cascade file to detect tumors.

Here is the approach I am considering.

  1. Have 8-10 brain images.

  2. Have 1000 negative images.

  3. Draw those brain images in those neg images. Creating many positive samples.

  4. Create vector files for those 10-12 files.

  5. Merge vector files into one.

  6. Train Cascade with that vector.

  7. Extract several tumors from brain images and repeat the process to detect tumors.

  8. Train Cascade for tumor but code it to detect tumor only inside brain.

My questions are: 1. Is there anything wrong with my process?

  1. How many stages should I train for brain and tumor?

  2. Is number of samples enough? Or do I need more?

  3. This is the command I am using to train my cascade.

    opencv_traincascade -data 03 -vec tumor_x.vec -bg bg2.txt -numPos 1600 -numNeg 800 -numStages 8 -w 20 -h 20

Is my numPos and numNeg alright? Or do I need to increase or decrease it for good detection?

Thanks.

Phil