MathGroup Archive 2012

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

Search the Archive

Re: why is imagelines performance so bad?

  • To: mathgroup at
  • Subject: [mg127514] Re: why is imagelines performance so bad?
  • From: Matthias Odisio <matthias at>
  • Date: Mon, 30 Jul 2012 22:16:17 -0400 (EDT)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • References: <>


On 7/28/12 1:39 , larry wrote:
> Why is ImageLines performance so bad when I have cleaned up an image to have thick checkerboard pattern but ImageLines produces a lot of extra lines. I don't see where it's getting it.
> Can we add images here?

It would be nice to see the problematic image; perhaps with suitable
settings of the parameters and the method option the results could be

For example on this checkerboard the automatic settings work just fine:

img = ImageResize[
  Image[ArrayPad[IdentityMatrix[2], 3, "Reflected"], "Bit"], 256,
  Resampling -> "Nearest"]

e = EdgeDetect[img]

l = ImageLines[e];

Show[img, Graphics[{Blue, Thick, Line /@ l}]]

Matthias Odisio
Wolfram Research

  • Prev by Date: Re: Manipulate a Plot of Evaluate DSolve
  • Previous by thread: why is imagelines performance so bad?
  • Next by thread: Bug in "Find Previous"