Results 1 to 7 of 7

Thread: Trace Data Question

  1. #1
    Rising Star OptiBoard Gold Supporter
    Join Date
    Jul 2000
    Location
    Pitman,NJ,USA
    Occupation
    Optical Wholesale Lab (other positions)
    Posts
    54

    Confused Trace Data Question

    Ok,
    Say I have a 512 point frame trace that I want to convert into 128 point trace...I'd just use every 4th point.

    But how would you go about converting a 400 point trace down to 128 points? Is there an easy way to do this or it as complicated I think it is?:hammer:

    Do I find the lowest common denominator?
    Last edited by EdSheridan; 10-20-2006 at 01:34 PM.

  2. #2
    ATO Member HarryChiling's Avatar
    Join Date
    Apr 2005
    Location
    Nowhereville
    Occupation
    Other Eyecare-Related Field
    Posts
    7,765
    If you are talking about how to programatically do it. Feed your trace points into an array and use a counter to recreate the file pulling out all data that is divisible by 4 (remember to initialize your counter at 1 or add 1 before dividing) Hope this is what you are asking about.
    1st* HTML5 Tracer Software
    1st Mac Compatible Tracer Software
    1st Linux Compatible Tracer Software

    *Dave at OptiVision has a web based tracer integration package that's awesome.

  3. #3
    Objection! OptiBoard Gold Supporter shanbaum's Avatar
    Join Date
    May 2000
    Location
    Manchester, CT USA
    Occupation
    Other Optical Manufacturer or Vendor
    Posts
    2,976
    Changing trace formats requires interpolating new points in the spaces between existing ones, unless the new format is a whole-number-fraction of the old (as is the case in converting from 512 to 128).

    I don't know how complicated you think that is, but it's not trivial.

    I have no idea what Harry's talking about. Harry, what are you talking about?

  4. #4
    Rising Star OptiBoard Gold Supporter
    Join Date
    Jul 2000
    Location
    Pitman,NJ,USA
    Occupation
    Optical Wholesale Lab (other positions)
    Posts
    54
    My thought was to change the 400 point trace into a 3200 point trace by adding equal points between, then picking out every 25th point (128*25=3200). I think this will work, but I don't know if it's the best way to do it or just the best way my feeble mind can come up with.

  5. #5
    Objection! OptiBoard Gold Supporter shanbaum's Avatar
    Join Date
    May 2000
    Location
    Manchester, CT USA
    Occupation
    Other Optical Manufacturer or Vendor
    Posts
    2,976
    Equal points? You could do a linear interpolation between points to produce 3200, but I suspect that you would end up with a rough shape. To get a smooth edge, you have to use a more complex kind of interpolation.

    Mind you, it depends on what you're going to do with that - if you're just going to display it, your approach may be adequate.
    Last edited by shanbaum; 10-20-2006 at 03:31 PM.

  6. #6
    ATO Member HarryChiling's Avatar
    Join Date
    Apr 2005
    Location
    Nowhereville
    Occupation
    Other Eyecare-Related Field
    Posts
    7,765
    Quote Originally Posted by shanbaum
    I have no idea what Harry's talking about. Harry, what are you talking about?
    I don't know what I was talking about. I didn't read the question all the way through. I though he was going from a 512 to a 128 in which case it is not difficult because he would not be creating points just using the existing points. If you were to go from 400 to 128 that would be a lot more dificult. I was giving a psuedo code example of how to acomplish it, but I did not see the remainder of the question.
    1st* HTML5 Tracer Software
    1st Mac Compatible Tracer Software
    1st Linux Compatible Tracer Software

    *Dave at OptiVision has a web based tracer integration package that's awesome.

  7. #7
    Allen Weatherby
    Join Date
    Jun 2004
    Location
    Florida
    Occupation
    Other Optical Manufacturer or Vendor
    Posts
    1,286

    How do want to use the points?

    Ed:

    I think it would be very useful for any of us that want to try to help you to know what accuracy you are trying to achieve.

    As one post asks; if you are using these for display that is one answer, while if you are using this to edge you would have to know if you are using z trace data the type of edger. (wheel or blade size may have a bearing on how to create the correct new points.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Trace and Transmit
    By michel14572 in forum General Optics and Eyecare Discussion Forum
    Replies: 2
    Last Post: 11-01-2017, 09:15 PM
  2. Trace and Transmit with VSP
    By EyeFitWell in forum General Optics and Eyecare Discussion Forum
    Replies: 22
    Last Post: 08-30-2006, 01:58 PM
  3. Mo Jalie Ray Trace Sequence
    By lensgrinder in forum Ophthalmic Optics
    Replies: 14
    Last Post: 03-05-2006, 08:49 PM
  4. Trace and Transmit
    By Di822 in forum General Optics and Eyecare Discussion Forum
    Replies: 17
    Last Post: 01-21-2001, 03:25 PM
  5. Trace and transmit.
    By Texas Ranger in forum General Optics and Eyecare Discussion Forum
    Replies: 10
    Last Post: 07-13-2000, 12:41 PM

Bookmarks

Posting Permissions

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