title: connected component analysis error
body: <p>I'm trying to do connected component analysis.but I'm getting error. I need the vertebral body ;but I'm getting some other objects.
  Image is: </p>
  
  <p><a href="https://i.stack.imgur.com/rHcvB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rHcvB.jpg" alt="image1"></a></p>
  
  <p>Result is:</p>
  
  <p><a href="https://i.stack.imgur.com/dBdoo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dBdoo.png" alt="result"></a></p>
  
  <pre><code>    im= imread('im.bmp');
      figure,imshow(im);
      K1=imadjust(im);
      figure, imshow(K1), title('After Adjustment Image')
      threshold = graythresh(K1);
      originalImage = im2bw(K1, threshold);
  
      originalImage = bwareaopen(originalImage,100);
      se = strel('disk', 2); %# structuring element
      closeBW = imclose(originalImage,se);
  
      figure,imshow(closeBW);
  
      CC = bwconncomp(closeBW);
      L = labelmatrix(CC);
      L2 = bwlabel(K1);
      figure, imshow(label2rgb(L));
  </code></pre>