SRL Archive - OSR Help

Ignoring colors in a certain area?


Ian

2012-11-27 17:07:01

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

RISK

2012-11-27 17:53:24

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.

Ian

2012-11-27 18:07:20

From: RISK
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?

RISK

2012-11-27 18:08:11

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.

Ian

2012-11-27 18:14:53

From: RISK
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 :)

Enslaved

2012-11-27 18:29:10

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

Daniel

2012-11-27 21:47:35

FindColorsSkipBoxTolerance, or something along that line :)

Sin

2012-11-27 22:26:20

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