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 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

We are working on a video processing application using EmguCV and recently had to
Does anyone have a working example of a video player built using Qt phonon?
Currently I am working on video conferencing project.For this i m using pwnat for
I am working on a video editing app and on my Wildfire the camera
I am working on a custom video player. I am using a mix of
I am working On Audio/Video capturing from a Web Camera and this is targeted
I am working on Camera/Video application @ work. When I turn on the usb-debugging
I'm working on a custom video player for iOS using AVFoundation. The idea is
Im working on a video player at the moment (a flash one). Before the
I am working on a video site that has different movies and videos which

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.