title: misclassification error for segmented image
body: <p>I am working on image segmentation and i want to evaluate my work using misclassification error which equals </p>
  
  <pre><code>ME = 1- (|b0 intersect bt|+ |f0 intersect ft|)/(|b0|+|f0|)
  </code></pre>
  
  <p>where BO and FO denote the background and foreground of the original (ground-truth) image, BT and FT denote the background and foreground area pixels in the test image.</p>
  
  <p>i don't know how to discriminate object from background, and how to generate a scaler value.
  I am working on matlab. I will appreciate any help. it is urgent.</p>