Pixel Manipulations

Discussion in 'Python' started by PyPK, Sep 28, 2005.

  1. PyPK

    PyPK Guest

    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.
    PyPK, Sep 28, 2005
    #1
    1. Advertising

  2. PyPK

    Terry Reedy Guest

    "PyPK" <> wrote in message
    news:...

    [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.
    Terry Reedy, Sep 28, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stan Sainte-Rose

    Image Manipulations (how to set legends)

    Stan Sainte-Rose, Oct 2, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    550
    jongalloway
    Oct 2, 2004
  2. Lorn

    String manipulations

    Lorn, May 28, 2005, in forum: Python
    Replies:
    5
    Views:
    329
  3. PyPK

    Pixel Manipulations

    PyPK, Sep 28, 2005, in forum: C++
    Replies:
    6
    Views:
    333
    mlimber
    Sep 29, 2005
  4. André Wagner

    Fastest pixel by pixel operation

    André Wagner, Mar 17, 2008, in forum: Java
    Replies:
    12
    Views:
    1,040
    Larry A Barowski
    Mar 19, 2008
  5. Lawrence D'Oliveiro

    Pathname Manipulations

    Lawrence D'Oliveiro, Mar 4, 2011, in forum: Java
    Replies:
    4
    Views:
    355
    Roedy Green
    Mar 4, 2011
Loading...

Share This Page