MathGroup Archive 2012

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

Search the Archive

Re: why is imagelines performance so bad?


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"