Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 323393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:01:37+00:00 2026-05-12T09:01:37+00:00

I have an array of point data, the values of points are represented as

  • 0

I have an array of point data, the values of points are represented as x co-ordinate and y co-ordinate.

These points could be in the range of 500 upto 2000 points or more.

The data represents a motion path which could range from the simple to very complex and can also have cusps in it.

Can I represent this data as one spline or a collection of splines or some other format with very tight compression.

I have tried representing them as a collection of beziers but at best I am getting a saving of 40 %.
For instance if I have an array of 500 points , that gives me 500 x and 500 y values so I have 1000 data pieces.
I around 100 quadratic beziers from this. each bezier is represented as controlx, controly, anchorx, anchory.
which gives me 100 x 4 = 400 pcs of data.
So input = 1000pcs , output = 400pcs.

I would like to further tighen this, any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:01:37+00:00Added an answer on May 12, 2026 at 9:01 am

    By its nature, spline is an approximation. You can reduce the number of splines you use to reach a higher compression ratio.

    You can also achieve lossless compression by using some kind of encoding scheme. I am just making this up as I am typing, using the range example in previous answer (1000 for x and 400 for y),

    1. Each point only needs 19 bits (10 for x, 9 for y). You can use 3 bytes to represent a coordinate.
    2. Use 2 byte to represent displacement up to +/- 63.
    3. Use 1 byte to represent short displacement up to +/- 7 for x, +/- 3 for y.

    To decode the sequence properly, you would need some prefix to identify the type of encoding. Let’s say we use 110 for full point, 10 for displacement and 0 for short displacement.

    The bit layout will look like this,

    Coordinates:        110xxxxxxxxxxxyyyyyyyyyy
    Dislacement:        10xxxxxxxyyyyyyy
    Short Displacement: 0xxxxyyy
    

    Unless your sequence is totally random, you can easily achieve high compression ratio with this scheme.

    Let’s see how it works using a short example.

    3 points: A(500, 400), B(550, 380), C(545, 381)

    Let’s say you were using 2 byte for each coordinate. It will take 16 bytes to encode this without compression.

    To encode the sequence using the compression scheme,

    A is first point so full coordinate will be used. 3 bytes.
    B’s displacement from A is (50, -20) and can be encoded as displacement. 2 bytes.
    C’s displacement from B is (-5, 1) and it fits the range of short displacement 1 byte.

    So you save 10 bytes out of 16 bytes. Real compression ratio is totally depending on the data pattern. It works best on points forming a moving path. If the points are random, only 25% saving can be achieved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: TEST.DATA.Data.COR.Point,2;TEST.DATA.Data.COR.Point,5;TEST.DATA.Data.COR.Point,12;TEST.DATA.Data.COR.Point,12;TEST.DATA.Data.COR.WordTOFIND,18 I have a list of array with
Say you have 100000000 32-bit floating point values in an array, and each of
I have an array of points in unknown dimensional space, such as: data=numpy.array( [[
Imagine you have a large array of floating point numbers, of all kinds of
We have an array of points through which we would like to draw a
Say I have an array that represents a set of points: x = [2,
I have two questions: 1) How can I make an array which points to
I have a 2-d array containing pairs of values and I'd like to make
I have an array of y-values that form a line. Additionally, I have an
I have an array of N-dimensional values arranged in a 2D array. Something like:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.