Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15661 > unrolled thread

Re: implementation for Binarize

Started byPatrick Scheibe <pscheibe@trm.uni-leipzig.de>
First post2011-01-30 00:41 +0000
Last post2011-01-30 00:41 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: implementation for Binarize Patrick Scheibe <pscheibe@trm.uni-leipzig.de> - 2011-01-30 00:41 +0000

#15661 — Re: implementation for Binarize

FromPatrick Scheibe <pscheibe@trm.uni-leipzig.de>
Date2011-01-30 00:41 +0000
SubjectRe: implementation for Binarize
Message-ID<ii2c4a$r7a$1@smc.vnet.net>
Hi,

no, you cannot see the internal implementation of Binarize, but all
implemented methods are well known and you can look in the publications.
A list of all methods can be found under "MORE INFORMATION" on the
help-page of FindThreshold.

img = ExampleData[{"TestImage", "Lena"}];
Binarize[img, Method -> #] & /@ {{"BlackFraction", 0.5}, "Cluster", 
  "Entropy", "Mean", "Median", "MinimumError"}

All your own ideas can be implemented really fast by using ImageData to
access the pixel-values and calculate your threshold. If it is a global
threshold, then you can use Binarize[img, thresh] to create a binarized
version of the image with your found threshold.

Cheers
Patrick

On Sat, 2011-01-29 at 05:24 -0500, zamri wrote:
> Hai all
> 
> I am interested in using mathematica in research for image processing.
> Is there a way I can see the implementation of Binarize for learning
> purposes?
> 
> If not possible, can an expert do some quick programming im
> mathematica on how to get something similar to Binarize.
> 
> My idea is to try some new function/idea on Binarize, e.g
> Binarize[image, f] where f is some functions.
> 
> Help is greatly appreciate.
> 
> zamri
> 


[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web