Good way to binarize image?



I have a few hundred samples/images of characters that I would like to binarize. If I do:

t = 100;
img = img > t

For most of the images the results are ok. But some of the images gets either totally black or white. Is there some good way to decide t for each image?
.



Relevant Pages

  • Good way to binarize image?
    ... I have a few hundred samples/images of characters that I would like to binarize. ... But some of the images gets either totally black or white. ...
    (comp.soft-sys.matlab)
  • Re: Rambling: the info (LONG!)
    ... it's like the characters are dictating to me. ... How is that connected to seeing images? ... Except for the odd scene that turns up ahead of its time and wants ... somehow most of the time, ...
    (rec.arts.sf.composition)
  • Re: FMA - Episode 29
    ... Don Giovanni refusing the order to repent, ... >> the knowledge of the characters and the knowledge of the audience. ... Regardless of whether Ed recognizes the natural images ...
    (rec.arts.anime.misc)
  • Re: Rambling: the info (LONG!)
    ... it's like the characters are dictating to me. ... process and not knowing how I do this writing thing I do. ... Sometimes, in images, especially if I've got photos to ... door, about half-way to the end there's a back door to the right. ...
    (rec.arts.sf.composition)
  • Re: An invitation to Sofa Spud
    ... which involves production of the images, videos, optimisation for file ... characters etc in the limited format and still manage to ... get some humour of my own in when I can. ...
    (uk.media.tv.misc)