Results 1 to 3 of 3

Thread: Question about TPAs

  1. #1
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default Question about TPAs

    So I've been watching MSI run a bit, and first off the TPA debugging screen is awesome hahaha

    anyways, i see that the dot arrangements are not completely filled scattered points...
    So my question is, when you define a TPA, say with this line (taken from my stiles fisher)
    Simba Code:
    FindColorsSpiralTolerance(MSCX, MSCY, TPA, 13158866, MSX1, MSY1, MSX2, MSY2, 2);
    then split it into an ATPA
    Simba Code:
    ATPA := TPAToATPAEx(TPA, 5, 5);
    should the size paramaters be a solid block of valid pixels that will be of that size, or should they be of a larger part with out every pixel being a valid color?
    confusing question, sorry if i hurt anyone's head

  2. #2
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    When you Split it, it just groups all the points into little 5x5 boxes. Note that they are not always 5x5 because not all the points will fit that way every time.

    So you then have an Array of the little boxes (tpa's), also known as an atpa (array of TPointArray);

  3. #3
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    TPAToATPA merely splits them into 5x5 boxes. It will attempt to create the largest groups in the boxes, as well.

    SplitTPA will create ATPA's with points that are only 5x5 pixels away from at least one of the other points in the currently looked at TPA.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

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
  •