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

  • Home
  • SEARCH
  • 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 3424128
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:26:15+00:00 2026-05-18T06:26:15+00:00

I am working on video stabilisation ( making shaky videos non-shaky) using matlab. One

  • 0

I am working on video stabilisation ( making shaky videos non-shaky) using matlab.
One of the steps is to find a smooth camera path given the unstable camera path.
The unstable camera path is one which gives the jittering or shake to the video.
I have camera path specified using camera position which is a 3d-data.
camera path – (cx,cy,cz);

As i plot in matlab, i can visually see the shakiness of the camera motion.
So now i require a least squares fitting to be done on the camera path specified by(cx,cy,cz);

I came across polyfit() which does fitting for 2-dimensional data.
But what i need is a 3-d smooth curve fit to the shaky curve.
Thanks in advance.

  • 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-18T06:26:16+00:00Added an answer on May 18, 2026 at 6:26 am

    Approach using least square fit:

    t = (1:0.1:5)';
    
    % model
    px = [ 5 2 1 ];
    x =  polyval(px,t);
    
    py = [ -2 1 1 ];
    y = polyval(py,t);
    
    pz = [ 1 20 1 ];
    z = polyval(pz,t);
    
    %  plot model
    figure
    plot3(x,y,z)
    hold all
    
    % simulate measurement 
    xMeasured = x+2*(rand(length(x),1)-0.5);
    yMeasured = y+2*(rand(length(y),1)-0.5);
    zMeasured = z+2*(rand(length(z),1)-0.5);
    
    % plot simulated measurements
    plot3(xMeasured, yMeasured, zMeasured,'or')
    hold off
    grid on
    
    % least squares fit 
    A = [t.^2, t, t./t];
    pxEstimated = A\xMeasured;
    pyEstimated = A\yMeasured;
    pzEstimated = A\zMeasured;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in video application in my application am using many controls for
Currently I am working on video conferencing project.For this i m using pwnat for
We are working on a video processing application using EmguCV and recently had to
I am working on a collection of classes used for video playback and recording.
I'm working on our back-end encoder service which does an awful lot of video
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
I'm working on a video codec for OMAP3430. I already have code written in
I am working on a video processing library in C# and would like to
I'm working on a video game which requires high performance so I'm trying to
I'm working on online video conferencing project in C# and .Net4.0. I want a

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.