SRL Archive - OSR Help

SplitTPA function - Explanation please ?


NickMystre

2012-01-13 09:43:22

My limited knowledge is preventing me from understanding 'SplitTPA'. Even though I have done some reading, I still cannot wrap my mind around the description of the function.

Would someone please explain to me what it does and why ?

Thanks!

RISK

2012-01-13 09:47:55

SplitTPA will grab the found points within the W and H parameters of each point and merge them together to form a 'Box'.

Sabzi

2012-01-13 10:19:29

From: RISK
SplitTPA will grab the found points within the W and H parameters of each point and merge them together to form a 'Box'.


That would be TPAtoATPA(Ex), no? SplitTPA however will make ATPA based on the colors distance from each other. So as long as a color is near another color(given by the parameter) they will be in the same TPA in the ATPA.

EDIT: I'm kinda suffering explaining this as using/understanding this is much simpler because you don't have to translate from your language :p.

This: http://villavu.com/forum/showthread.php?t=49067

NickMystre

2012-01-13 11:14:25

From: Sabzi
That would be TPAtoATPA(Ex), no? SplitTPA however will make ATPA based on the colors distance from each other. So as long as a color is near another color(given by the parameter) they will be in the same TPA in the ATPA.

EDIT: I'm kinda suffering explaining this as using/understanding this is much simpler because you don't have to translate from your language :p.

This: http://villavu.com/forum/showthread.php?t=49067


Thank you everyone, particularly Sabzi. (I also appreciate you battle a second language)

Your reference to Naums tutorial I think will be the key to unlock my confusion. Time to hit the tut … :)

Flight

2012-01-13 11:16:42

From: NickMystre
Thank you everyone, particularly Sabzi. (I also appreciate you battle a second language)

Your reference to Naums tutorial I think will be the key to unlock my confusion. Time to hit the tut … :)


It's a wonderful tutorial, isn't it? I've learned quite a bit from it and still learning as much as possible.

NickMystre

2012-01-13 11:28:35

From: Flight
It's a wonderful tutorial, isn't it? I've learned quite a bit from it and still learning as much as possible.


It's huge - by any comparison. Should keep me off the streets for a bit. :-)

@Naum: Thank you for your tut - A Low-Down on Wizzy Plugin and TPA's. It's going to keep me busy for some time to come. :)

EDIT: OK, let me see if I have it right!
TPAToATPAEx / TPAToATPA are functions that will group TPA's (these are just groups of points) by placing a box (as defined by the Width x Height parameters of the TPAToATPAEx function) or circle (as defined by the Distance / Radius parameter of the TPAToATPA function) that must include the first point and then trying to fit as many other points in as possible. The first point of the next grouping is the one that falls outside the box or circle. This continues until all points have been grouped (even if by themselves)

SplitTPAEx / SplitTPA are functions that will group TPA's (these are just points) by placing a box (as defined by the Width x Height parameters of the SplitTPAEx function) or circle (as defined by the Distance / Radius parameter of the SplitTPA function) around each and every point. Overlapping boxes or circles then define a new zone or area.

Please tell me if this makes sense when you read it. Thanks!

NickMystre

2012-01-14 02:24:59

From: RISK
SplitTPA will grab the found points within the W and H parameters of each point and merge them together to form a 'Box'.


I have done some homework into SplitTPA and TPAToATPA (Ex and normal function versions) and I feel that I have got the hang of it now (at least from an academic point of view)

Your description of SplitTPA is correct in that all the points are involved. I do like to think that because SplitTPA has a radius parameter, that the resulting merged points will be a circle, and that for SplitTPAEx it will be a box - as it's parameters are a Width x Height. But this is purely personal. I hope that you do not feel offended. I know that I can be a real pain in the a$$ sometimes. Thanks again for helping. :)