sir i've tried the code,by Walter Roberson http://www.mathworks.in/matlabcentral/answers/57844-how-to-remove-background-from-an-image
C = num2cell(YourImage); C(~YourImage) = {{}};
it worked out well.. the image i uploaded http://www4.picturepush.com/photo/a/12190392/640/12190392.jpg
the original and segmented image are http://www1.picturepush.com/photo/a/12190389/640/12190389.jpg now the thing is how can i use the values of C (ROI only)for obtaining statistical features like mean, variance and entropy... and for obtainng wavelet decomposition [c,s]=wavedec2(C,3,'db1'); by which i've to obtain its mean,variance and entropy in its each decomposition level... .. how to overcome this problem sir.. thanks in advance..