MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: "Discovering" a grid in an image?

  • To: mathgroup at
  • Subject: [mg128432] Re: "Discovering" a grid in an image?
  • From: Alexei Boulbitch <Alexei.Boulbitch at>
  • Date: Fri, 19 Oct 2012 02:41:43 -0400 (EDT)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:


I am new to Mathematica and I have this image:

Is it possible to let Mathematica separate the image into one small one
for each character?

>From my cs classes I remember that VoronoiDiagrams might be a way to
calculate the grid between the characters.  Alas, VoronoiDiagram[] only
accepts a list of points, not an image.

Any ideas?



Hi, Sven,

I do not know much about Voroni diagrams. However, this


is your initial image. I went to the web page that you gave above, and copy=
-pasted the image into Mathematica wrapped by Image[].
Then this

ip = ImagePartition[im, {Scaled[1/5], Scaled[1/4]}]

yields a list containing the letters, each letter is an image. You may addr=
ess individual terms of this list by evaluating the expressions like this:

ip[[1, 4]] (* This gives D *)
ip[[3, 5]]  (* This gives O *)

one of the numbers gives the line, another gives the column.

Have fun, Alexei

Alexei BOULBITCH, Dr., habil.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone :  +352-2454-2566
Office fax:       +352-2454-3566
mobile phone:  +49 151 52 40 66 44

e-mail: alexei.boulbitch at

  • Prev by Date: Re: D under Sum
  • Next by Date: Re: How to make fitting code using NDSolve?
  • Previous by thread: Re: Gauss Quadrature
  • Next by thread: Re: How to make fitting code using NDSolve?