How to smooth out discontinuous spacial distribution gradients

Hi all.
I'm controlling a linear motion device, and need to generate displacement paths for it to obey. What I'd like is to smooth out the 'sharp edges' in my profile data (for example, at points where it may go from a slow forward motion to a faster forward motion). Technically, this is removing the discontinuities in the spacial distribution differential, but in other words all I need to do is "smooth my data".
I've mimicked what I want to achieve by putting some hand-created numbers into this graph -->
The yellow line is my original profile data. You can see that I'll be moving the device from position 45 at time 0 to position 52 at time 5 and finally position 53 at time 9. This is fine, but I'd like to smooth out the motion a bit and avoid that nasty elbow at time=5 a bit.
The blue line is what I'd like. A smooth run from position 46 at time 0 to position 53 at 9 seconds, that preserves the velocities (gradients of the profile line) at the beginning and end. The reason for this is that the motor will arrive at position 46 (time 0) at the velocity inferred by the first gradient, and will continue beyond position 53 after time=9 at the speed inferred by the end gradient. Therefore I must not change the gradients of the line at the beginning and end.
I've tried using the many Signal Filtering techniques LabVIEW has available, but I've found that they create problems:
1. They don't preserve the beginning and end gradients, and
2. They tend not to like the very few sample points I have here. (If I interpolote the yellow line to create intermediate points, the filtering works better, but still suffers from point 1)
I've tried using the B-Spline curve fit, but that seems also not to respect the gradients.
I've tried the cubic spline fit, but that doesn't return the extra points I need to create the blue curve the way I've shown here.
Does anyone have any advice? I thought this would be simple, but I'm a bit stuck now but I suspect that there'll be someone out there that's had to do this too.Naively I expected there to be a simple function called "Smooth Data", but clealy not.
Many thanks in advance for any responses received.
Thoric (CLA, CLED, CTD and LabVIEW Champion)

In my copy of Haliday Resnick and Walker there was a note that talked about Einstein and "working in divine issolation" where he was not distracted by others telling what was leagl and what wasn't. I recall that note when I propose idea like the following that some math type will tell me has not physical meaning and dismiss it off-hand. But since I don't limit myself to what is allowed or legal...
See this thread starting a post #5.
Summary:
CC's best attempt at smoothing the curve was shown in this plot.
Using my non-legal technique, I got these results.
 I a nutshell:
When yo ufilter you loose data at the front and back-end with the number of points of data loss being determined by the order of the filer. By first pre-pending and appending the same data set reflected about the first and last point, we trick math into telling us what it woudl refuse to tell us otherwise.
maybe this will help you,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How to smooth out zooming/scrolling image that jerks (CS4)?

    Hi guys/girls,
    Is there any way that i can smooth out images that zoom in/out with normal classic tween. they are so jittery it looks terrible. I even have a little bit of easing and frames per second set to 30.
    any info much appreciated!
    Jeff

    Hi flashfever,
    thanks for responding. can you elaborate on how i can use that? is it AS for the 1st frame or on the movie clip itself? etc
    in this case, i have the image fading in and enlarging from 70% to 100% in the same tween. its very jerky.
    thanks for your help so far!
    Jeff

  • HOW TO- Smooth out your animation jittering and tearing

    I've found a couple of workarounds that will smooth out your animations. There are JVM arguments that you can pass that allow you to set the scenegraph animation framerate and vsync properties. Increasing the framerate pulse and settig vsync to true can smooth out most of the animation jitters we're experiencing. The downside is that this is going to cost you some CPU time.
    -Dcom.sun.scenario.animation.vsync=true  -Dcom.sun.scenario.animation.pulse=500I also saw that the JavaFX team has made solving these animation issues a top priority for the next release.

    Nah, forget it. This logo needs to be redrawn from scratch.
    Mylenium

  • How to Smooth Out a Motion?

    My video is scaled down to 50%. It moves in from outside the edge of the right frame to a little past the half way point, and then fills the screen. But at the point where it starts to enlarge, the video always jerks. I tried ease in, ease out, linear, bezier, auto bezier, continuous bezier, I tried applying those settings to motion, scale, motion and scale, temporal, spacial. I just can't get it to change smoothly from moving to the left to coming at the camera.

    After you have done your Keyframing (do try Ann's suggestion, as it's pretty easy to accidentally add a "phantom" Keyframe), have you been Rendering (hitting Enter) your animation Clip? If not, move the WAB (Work Area Bar) to that area, and hit Enter. Test.
    Good luck,
    Hunt

  • How to smooth out a credit roll

    Hi,
    Using FCP X on a MacBook Pro and haveing touble creating a smooth credit roll.
    Rufus

    stumbleone wrote:
    …  Your comment on motion blur for fast scrolling text - sounds interesting, … .  Would appreciate if you could expand on that just a bit.
    … hmm, well, I'm not sure my translation of a very special term is correct:
    It's about 'Winkelgeschwindigkeit/angular speed'.
    Means, the speed of an object ON THE 'FILM', not in real life.
    (yepp, digital has no film…  sensor area)
    example:
    the lower pic demoes little differences btw. each 'frame' = smooth motion
    the upper pic demoes big differences btw each frame = stutter.
    the bigger deltas occur due to higher speed of object, or faster movement of cam (e.g. pan), or lower frame-rates (30 vs 60fps)
    'stutter', because the eye cannot 'smoothen' the 'jumps' of the object per frame to frame.
    now, motion blurr:
    the frame itself is blurred, but the motion is noticed as 'smooth', in flow ....
    (hard to explain such a complicated issue in a foreign language! )
    higher frame-rates, lower angular-speeds (object vs. camera ratio), OR longer shutter-speeds (to create natural motion-blurr, that infamous 'film-look' -not 24fps, but the then optional, very low 1/48th shutter-speed creates the look!) .......
    and: angular-speed, because, when the object moves fast straight in axis to camera (or, vice versa, the camera to  object....), it doesn't matter; does the object moves fast 90° across the cam axis (or cam pans, or ... yougottheidea ) speed creates bigger (unwanted) effects.
    same with a scrolling text:
    in case, the scroll is fast, each line of text 'jumps' from position #1 to #2.
    When you add 'motion blurr' the text, it looks smooth. although un-sharp!
    hope, I was able to explain....
    that is cinematography … next step beyond photography.

  • How do you smooth out a coat?

    Having a hell of a time figuring out how to smooth out the arm of this coat. thanks

    One technique I like, which fits in with the frequency separation thing JJ talks about is this:
    1.  Switch to 16 bits/channel and a linear color profile.
    2.  Mask so just the arm is showing.  The Quick Select Tool works well for this.
    3.  Refine Edge to get it into a new layer
    4.  Do a Filter - Other - High Pass, choose a radius that shows the wrinkles, but not too large.
    5.  Image - Adjust - Invert.
    6.  Change the blending mode to Overlay and watch the tight wrinkles magically get smoothed out.
    To take it a bit further...
    7.  Flatten the above.
    8.  Mask the arm again, Refine Edge to make it a new layer.
    9.  Filter - Noise - Median until it is very smooth.
    10.  Hide the unnaturally smooth looking parts with a dark color in the mask.
    Something like this isn't too difficult to achieve...  Took me longer to write about it.
    -Noel

  • How to find out the PATTERN, GRADIENT and BRUSHED objects?

    How to find out the PATTERN, GRADIENT and BRUSHED objects information in illustrator active document file. And also how to find the CMYK and RGB color information in illustrator file through javascript. Could you please provide any examples.

    I tried using the below code. But for both "cmyk" and "grayscale" pattern it gives only CMYK. Kindly check and advise.
    Code:
    var docRef = activeDocument;
    for(var i=docRef.inkList.length-1;i>=0;i--){
      var inkRef=docRef.inkList[i];
      var inkRefName=inkRef.name;
      alert(inkRefName);
      alert(inkRef.inkInfo.kind);
    Thanks for looking into this.

  • How do you smooth out lines in Photoshop CS5

    I have some black and white line art drawings. The lines are not smooth and sharp, and instead have tiny jagged edges. I tried using the smudge tool, and that does smooth out the lines but it also makes the lines a little sloppy. That's probably how the Smudge Tool got its name. Is there a way to use this incredible software to create smooth lines? I've learned how to create paths, but I can't figure out how to use the paths to change the line art. Maybe this is what I'm looking for?

    Noel Carboni wrote:
    ...to use a Path then add a Stroke style, so that it remains editable?  .....
    -Noel
    If I understand your question correctly then the answer is yes. 
    You can create an arbitrary path whose shape, open or closed, can remain editable throughout your session and it can be duplicated if needed.  That path can then be stroked with a pixel painting or editing tool. Lets say you create a new layer and stroke a path with a colored brush. You can then add a style to that layer, move that same path and add a different stroke on a second layer and then duplicate the path, move it and edit its shape and then do yet another stroke and style on a third layer. This is what I've done in the image below showing the stroke & styled paths as well as the vector path in the bottom path.
    Once a path has been stroked to a layer and has had a layer style applied it is only editable as pixels, but the shape remains as a path which can re restroked or moved or reshaped so flexibility is high.
    Paulo

  • Scrubbing timeline with slider - how to smooth it out?

    I've created a simple slider to scrub through some frames of a MC named states.  Each frame has the same MC (states) just in a different color.
    I've setup the slider using
    slider.setSize(200,1);
    slider.maximum=states.totalFrames;
    slider.liveDragging=true;
    slider.addEventListener(Event.CHANGE,updatemc);
    function updatemc(e:Event){
        states.gotoAndStop(slider.value);
    I'd like the trainsition from one frame to the next to be smooth so that there is no blunt change when the frames change.  I can easily add a shapetween between frames which creates the smooth transition I am looking for but, I only want the slider to stop on the 5 main frames.  Can someone suggest how I'd accomplish this either through a code mod. or something on the timeline?
    Thanks in advance,
    Josh

    Can you view this?
    http://gagecartographics.com/flsh/
    I found out how to set my snap interval which helps.  I just need to smooth out the transition.  Hmm..  Something tells me I should not be doing this on the timeline but in my code.
    slider.setSize(200,1);
    slider.maximum=15;
    slider.liveDragging=true;
    slider.addEventListener(Event.CHANGE,updatemc);
    function updatemc(e:Event){
        states.gotoAndStop(slider.value);
        trace(slider.value);
    stop();
    var month:Array = ["December","January"];
    var day:Array = ["Monday","Tuesday","Wednesday","Thursday"];
    var date:Array=[10,11,12,13];
    datetext.text=day[1];
    slider.snapInterval=5;

  • How to smooth these pixels out...?

    How can I smooth the pixels out on the bottom rounded parts of this image?
    http://www.themaxidressshop.com/images/awnings.jpg

    Hi there,
    Here's a video tutorial that show you how to smooth jagged images in under a minute.
    Let us know if you have any issues and we can try to help you find a solution. Good luck!

  • How to drag out a series of radial gradients on one layer?

    Please pardon me, I am new to Photoshop. I am following this tutorial I got on the net and I have come unstuck on a stage which says,
    "Drag out a series of purple to transparent radial gradients on the "highlight purple" layer".
    I am failing to drag out more than one gradient on the layer. so my question is, how do I drag out more than one gradient on the same layer???

    If the Gradient is set to fade several Gradient Tool applications should be no problem.
    Or one could set the Blend Mode for the Gradient Tool to something else than Normal depending on the Gradient.

  • "Web'n'Walk III" Huawei dongle, how to find out what Huawei model it is?

    I just bought this "web 'n' walk III" UMTS Modem (USB) made by Huawei. I want to instal it but do not know if the enclosed software is out of date (MobileConnectDriver(2.9.2)) and works under SL. Does anybody know how I find out what type of Huawei dangle it is so I can find the correct software?
    any tips as to how to use this smoothly as the stick is to SIM locked and I will use it with a SIM from an other provider (Stick is branded by T-Mobile).

    I worked out the model number, it is 'hidden' in small print on the back, in a larger number.

  • How to smooth lines of original oil painting

    I had an artist paint an oil painting (on canvas) of our wedding venue to use as part of our wedding invitation. However, I didn't realize how an oil painting would print on paper and the brush strokes are nonuniform and visible. How can I smooth out the brush strokes?

    50mm will be fine.  I expect its sweet spot will be around f8
    Align the lens axis with the center of the image and perpendicular to the image.
    If the sun is bright, find some shade.  In fact find some shade anyway.
    Use a tripod
    Take a test image with a sheet of white paper in front to the painting to set white balance to in Photoshop. But try to take the image well away from any brightly coloured surfaces that might reflect colour onto the painting.
    DO NOT USE FLASH
    Try and leave an inch or two of space around the painting.  This will help you square it up in Photoshop
    Later versions of Photoshop have a Perspective Crop tool that would let you correct any out of squareness of the photograph, but you can still do this with CS5
    Open the image, and make any adjustments like black and white point.
    Copy the background layer.
    Turn on the grid (Ctrl ')
    Free Transform (Ctrl t)
    Hold down the Ctrl key, and drag each corner in turn to align the edges to the grid to square it up.
    Crop out what is left.
    Sharpen for print (View at 60% and go by the preview)
    Be amazed by how much better it looks compared to the scanned version
    Have a great special day, and best wishes to your SO
    Now that's definitely me for today. (12.39am and I NEED my sleep)

  • After effects automaticly smooths out animation paths between key frames?

    when moving somthing how do i disable the feature when AE automaticly smoothes out the path between key frames? the image shows three key frames which i want the text to come down and then to go right with a right angle as a path, not the curved line they have generated!
    Thanks for your time

    FAQ: Why does my layer (camera) move back and forth between keyframes of equal value?
    And seriously read up on basics of AE and watch some tutorials...
    Mylenium

  • Oscillating amplidude waveform to be smoothed out, and calculate frequency of difference of original waveform

    a steep impulse of oscillating amplitude, i need to smooth out the waveform and calculate the frequency of difference of original waveform and smoothed waveform how to do this?
    i have tried to do with calculating moving average of the data points.
    i have attached the data points here with.
    Attachments:
    CASE03.DOC ‏1 KB

    Hello,
    I was not able to open the MS Word DOC attached to your post, so I am not exactly clear what your dataset looks like. When you say you have an oscillating input that is an impulse, do you mean that the waveform contains discrete jumps? If so how would you like to smooth the waveform?
    Can you please post two graphs, or two sets of datapoints which describe your input and output? By looking at exactly how a specific input should be translated to a specific output we should be able to give you a much more specific answer.
    Scott Y
    NI

Maybe you are looking for

  • Event Handling in treeNode

    Hi! How can I handle the onNodeClick event associated with the treeNode. Thank You.

  • Make Text and Other Items Larger or Smaller - Default? (related to screen resolution)

    In Windows 7, when you go to set the screen resolution, there is a link to "Make Text and Other Items Larger or Smaller."  The default I've always seen is is "Smaller - 100%" in our deployments.  For some reason, after my new deployment that I'm work

  • Danger to using previous owner's home folder/short name?

    I recently bought a 6 month old imac from a seemingly reliable person. He has deleted almost everything from the computer that was his. I have not changed his name for the home folder. I know that to do so would possibly mess up everything I've put o

  • CMacbook Pro mid 2012 won't hibernate

    Hi! I've noticed my macbook pro mid 2012, non-retina, is not hibernating when I stored it on a nice little sleeve. I didn't want to worry about turning it off, I just wanted to close the lid and if I didn't open it after 1 hour, it should hibernate t

  • Which version of java compiler to download??

    hi all, I havent used java for long time. I just want to get the latest compiler. i really don't know what is the latest version and as i saw download section it has a lot of options like JDK and JRE , enterprise and standard etc ... i just need for