# User:TheLarry/Notebook/Larrys Notebook/2009/11/21

### From OpenWetWare

Generating Data Main project page
Previous entry      Next entry

## Creating a Trajectory

I have a pretty good way to make a trajectory now. The user can put his trajectory together piece wise. They can add a horizontal line, vertical line, or circle in any order they want. And make each one of those as long as they want. I can add more geometries to create more intricate trajectories like a slanted line, but for right now this can do what i want. This .vi can also calculate the distances between adjacent points as well. It does this through
$s=\sqrt{(x_1-x_0)^2+(y_1-y_0)^2}$
So i have everything i need now to make any trajectory and then make a microtubule of a certain length move along it. I still have to worry about the width of the microtubule, but for right now i'll go with it being a line and get this working. Then i'll add width.

This works decent, but i have a hard time transitioning from the horizontal line to the circle. I think it is the abrupt change that does it. The points around the change from line to circle have a shorter length than all the other points. This might be ok to work with. i can take these points our or since i know the actual answers this can sill be used to show if the tracking software is working alright. So i'll just go ahead with this.

Here is a movie of the trajectory i made. I think everything is working well. I am happy with this. Now i have to take this image and send it through my convolution sub.vi and i think i'd have a good looking simulation of the movie we get.

oh wait i gotta get this width right first. Alright let me see how badly i can screw this up. hmm maybe i don't have to worry about screwing this up since the width of the microtubule is so small if keep the high res image pixel higher than the width of the microtubule i should be golden.

Maybe the next thing i gotta do is automate the convolution .vi. But i am getting tired so maybe i'll do that tomorrow.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 1, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9401801228523254, "perplexity_flag": "middle"}