Pixel Manipulations

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PyPK

    #1

    Pixel Manipulations

    Does anyone know of a simple implementation for detecting straight line
    ..So something like if we have a 2D arary of pixel elements representing
    a particular Image. How can we identify lines in this Image.
    for example:

    ary =
    [[1,1,1,1,1],
    [1,1,0,0,0],
    [1,0,1,0,0],
    [1,0,0,1,0],
    [1,0,0,0,1]]
    So if 'ary' represents pxl of an image which has a horizontal line(row
    0),a vertical line(col 0) and a diagonal line(diagonal of ary). then
    basically I want identify any horizontal or vertical or diagonal line
    anywhere in the pxl array and return true if its composed of only lines
    else false...

    Thanks.

  • Terry Reedy

    #2
    Re: Pixel Manipulations


    "PyPK" <superprad@gmai l.com> wrote in message
    news:1127939605 .328848.171860@ o13g2000cwo.goo glegroups.com.. .

    [an exact duplicate of the off-topic message posted under the more
    informative subject line of 'Straight line detection']

    Please do no post the same message twice, especially not with two different
    subject lines. I believe these were also posted about a week ago.



    Comment

    Working...