Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15661
| From | Patrick Scheibe <pscheibe@trm.uni-leipzig.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: implementation for Binarize |
| Date | 2011-01-30 00:41 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ii2c4a$r7a$1@smc.vnet.net> (permalink) |
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
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: implementation for Binarize Patrick Scheibe <pscheibe@trm.uni-leipzig.de> - 2011-01-30 00:41 +0000
csiph-web