Thresholding value getting out of limit

1 view (last 30 days)
john
john on 8 Mar 2013
Hey guys I am new to image processing and I want to convert my image to binary using some threshold value which consists of image mean and standard deviation. Now problem is this threshold value gets more than 255 (I am using Grey scale image) so there is nothing remain in image for binary conversion only black image comes so can anybody help how to do it.I am writing my code below::
%%%%%%%code starts %%%%%%%
(1)I=imread('testimage')
(2)mean_image=mean2(I)
(3)std_image=std2(I).....
%%%%%%%%%%%%%%%code ends :::::
now i count thresholding
value which goes more than 255 so any idea what to do?
thanks in advance

Answers (1)

Image Analyst
Image Analyst on 8 Mar 2013
Please explain why you'd even WANT a threshold that is more than 255. It just doesn't make sense for an image that has values only in the 0-255 range.
  8 Comments
john
john on 8 Mar 2013
Edited: Image Analyst on 8 Mar 2013
Ya your are right.My image is bright but i will appreciate very much if you give me any other method to extract that type of object in image.I am attaching image to this message http://imageshack.us/photo/my-images/9/testimagey.jpg/
Image Analyst
Image Analyst on 8 Mar 2013
You don't really expect to find an object in all that binary noise do you? I see no object whatsoever.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!