Results 1 to 8 of 8

Thread: Ignoring colors in a certain area?

  1. #1
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default Ignoring colors in a certain area?

    Ok, here's the situation: I want to be able to ignore an area of pixels around a certain colour. Is that possible?

    Here's an example to exlplain:


    Anyone know if this is possible?
    Thanks

  2. #2
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Make a TPA of the cut down tree and then get the bounds of it, once you do that, increase each point of the box(bounds) by 25 or more, however many pixels it takes to get the area around the cut down tree.
    Simba Code:
    (* Main *)

    repeat
      WriteLn('I am an idiot!');
    until(False);

  3. #3
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    Make a TPA of the cut down tree and then get the bounds of it, once you do that, increase each point of the box(bounds) by 25 or more, however many pixels it takes to get the area around the cut down tree.
    Yeah that finds the area, but is it possible to ignore that area when I search for an object later?

  4. #4
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Yeah, you could store the bounds in a global variable and then check to see if a point is in the bounds. That way you can exclude the area all together.
    Simba Code:
    (* Main *)

    repeat
      WriteLn('I am an idiot!');
    until(False);

  5. #5
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    Yeah, you could store the bounds in a global variable and then check to see if a point is in the bounds. That way you can exclude the area all together.
    Ah ok thanks, I understand now

  6. #6
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default

    find that the colour cluster and make a Tbox Array with that being the first value, then just say that in future obj finding procedures, if any of the TPs fall in the TBA then exclude it from the TPA

  7. #7
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    FindColorsSkipBoxTolerance, or something along that line
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  8. #8
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Nah just GetTPABounds;, then of PointInBox() etc..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •