Scripts Index
Tools and Utilities Development Tools  

Defining Cartesian Reference Frames based on Point Positions

download download home home   report broken
important script information
company name:
Paolo de Leva
license: Free
minimum requirements: MATLAB 7 (R14)
functional limitations:
Defining Cartesian Reference Frames based on Point Positions description
The main function included in the attached file is called FRAME. The algorithm implemented in this function can be useful in motion analysis (biomechanics, bioengineering).When you know the 3-D position of at least three non-collinear points, you can define a Cartesian reference frame (coordinate system) based on these positions.FRAME builds an orientation matrix R representing the orientation of a right handed 3-D Cartesian reference frame, based on the position of at least 3 and at most 6 non-collinear points.FRAME features an ARRAYLAB engine (see Matlab Central > File Exchange > Multiplying two N-D arrays of matrices, vectors or scalars"). This means that FRAME accepts as input block arrays of vectors. In this case, it returns a block array of orientation matrices (see below).Several different reference frame orientations can be defined by the same set of points. For instance, the same three points can be used to define 72 different orientations for a right-handed 3-D Cartesian reference frame! Three non-collinear points define a triangle and a plane, which in turn define seven lines (six are parallel to the three sides and the three heights of the triangle, and the seventh is normal to the plane; fig. 1). Since for each line there are two opposite directions, any of the Cartesian axes can be assigned 14 different directions. And any of these 14 directions is normal to 4 or 12 of the other directions, all of which can be used to define the other axes?FRAME is extremely versatile, and with a simple syntax allows you to define the reference frame(s) as you prefer, in a single step.Its input arguments include three oriented distances (d1, d2, and d3), obtained from the known point positions with vector subtractions.For instance, if pA and pB are the positions of two points A and B, pB-pA (or -pA+pB) is the oriented distance from point A to point B. Since d1 may coincide with d3, three points are enough to define the three distances.For instance, three position vectors (pA, pB, pC) might be used as follows:R = FRAME(-pA+pB, -pB+pC, 'y', -pA+pB, 'z', DIM)and six position vectors (pA, pB, pC, pD, pE, pF) might be used as follows:R = FRAME(-pA+pB, -pC+pD, 'y', -pE+pF, 'z', DIM)where DIM is the dimension along which the vectors are contained.The direction of the first axis ('y' in the above examples) is defined by the vector product d1 doOCo d2. The direction of the second axis ('z' in the above example) is defined by the rejection of d3 from the first axis, coinciding with the projection of d3 on the plane defined by d1 and d2. The third axis forms with the others a right handed orthogonal reference frame. A more detailed explanation of the function syntax and the rules used to build the output array R can be found on the FRAME help text.If pA, pB, etc. are 3-by-1 matrices, DIM = 1 and R is a single 3-by-3 orientation matrix.The arrays pA, pB, etc. can have any size, provided they contain 3-element position vectors along one of their dimensions (DIM). For instance, if they are Nf-by-3 matrices, containing Nf positions of a moving point, sampled with a stereophotogrammetric motion capture system, R is a Nf-by-3-by-3 array, containing Nf orientation matrices. See FRAME help for details about the format of the input and output arrays.Any matrix or array of orientation matrices R obtained with FRAME can be used to perform transformations. Multiple vector transformations can be obtained by multiplying an array of orientation matrices by an array of vectors. This "multi-product" can be performed easily, in a single step and with no loops, by calling function MULTIPROD.MULTIPROD is a powerful generalization for N-D arrays of the MATLAB function MTIMES and the matrix multiplication operator (*). Obviously, MULTIPROD has a broad field of potential applications. For instance, it can be used to perform vector algebra (see package "Matlab Central > File Exchange > Vector algebra for multidimensional arrays of vectors"). Thus, in my opinion it deserved a separate introduction and I published it in a separate package: "Matlab Central > File Exchange > Multiplying two N-D arrays of matrices, vectors or scalars".A few sample functions are included in this package. They determine the orientation of anatomical reference frames for segments of the human body (thorax, scapula, upper arm, arm, forearm, hand, pelvis, thigh, shank, foot), according to the definitions given by Cappozzo et al. (1995; Clinical Biomechanics, 10, 171-178) and by van der Helm et al. (2005; Journal of Biomechanics, 38, 981-992).The code (testFRAME) I used to test the function output is included as well.
Similar scripts
Rob Keyboard (Popularity: ) : This plugin is produced for holding on keyboard when pairing program. You can type "shift ctrl K" to lock intellJ by a Dialog with amusing words. You can lock intellJ by password, with configging password enabled.At first, you should add ...
CIE Coordinate Calculator (Popularity: ) : This software is for calculating the CIE chromaticity co-ordinates of phosphor materials using the photo luminescence data. The software also shows the position of the co-ordinates in chromaticity diagram and expected color of the material. Please note that the color ...
New Dream Coder for Oracle (Popularity: ) : This tool is an code generator for Oracle. While fetching large tables this tool reduces usage of memory. Some features of this tool are, it has new password ecryption, procedure builder, session monitor, SQL templates etc., It increases execution times ...
Foreign Exchange Options (Popularity: ) : fxoptions( S0, X, rd, rf, T, vol, style)Valuation of European and American call and put options on foreign exchange using Garman-Kohlhagen model.European option prices are given by an exact formula (Garman-Kohlhagen).American option prices are approximated using both binomial and trinomial ...
Anti Cut and Paste (Popularity: ) : This utility is helpful for programmers that allows them to search programming language source code's text fragments which have been copied and pasted. Some key features of this tool are, this tool supports both command line and Graphical User Interface ...
AC Protect Standard (Popularity: ) : This utility is used for avoiding hackers from cracking your software using special techniques called anti crack. It works with all windows platforms. Some features of this tool are, this tool compresses ocx, scr, exe, dll and more, dynamic encrypt ...
VBcodePrint (Popularity: ) : This Add-In to Microsoft Visual Basic 6 significantly enhances its source code printing capabilities. You can print any part of your VB project's source code from within the VB's development environment. / You can create and save your own output ...
Bokai Barcode Image generator (Popularity: ) : This tool is used for barcode generator and which has an ActiveX control for printing barcodes. This tool contains more than twenty five barcode types. This tool supports only ActiveX control programs. Users can customize barcode parameters and design of ...
Use Matlab Editor to Write and Run Ansys Program. (Popularity: ) : You don't have to switch your screen between Matlab, Ansys and UltraEdit or PSPad anymore, when you doing FEM-Analysis.You can use MEditor to write your Ansys APDL program and use the excellent feature of MEditor to structure your Code: Cell-Function, ...
VBAcodePrint (Popularity: ) : This add-in enables you to print Microsoft VBA source code in color of your applications across the entire Microsoft Office 2000 suite of applications: Word, Excel, Outlook, Access, PowerPoint, and FrontPage and any other VBA enabled software. / You can ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Similar Software
PC On Point (Popularity: ) : PC On Point Windows Registry Cleaner, Kernel32 DLL Error Message Fix & Access Violation Repair Software. PC on Point safely repairs errors on your computer, removes bugs and restores the overall performance and speed of your PC.

PRESCRIBED FOR ALL ...

PC On Point Error Fix (Popularity: ) : PC On Point

Windows Registry Cleaner, Kernel32 DLL Error Message Fix & Access Violation Repair Software. PC on Point safely repairs errors on your computer, removes bugs and restores the overall performance and speed of your PC.

PRESCRIBED FOR ALL ...

GStarICAD Std (Popularity: ) : GStarICAD is based on IntelliCAD software, the industry standard for low-cost CAD software.
GStarICAD is the innovative alternative to AutoCAD that provides OpenDWG file compatibility, similar environment,
full support for AutoCAD commands, menus, scripts, styles, patterns etc.
GStarICAD is the ...

UPC Search and Lookup Multiple Codes Software (Popularity: ) : This software offers a solution to users who want to look up detailed information about products, based on UPC codes (Universal Product Codes). The user simply enters UPC codes or adds them from a file before starting looking up the ...
Find Files By Filename Length Software (Popularity: ) : This software offers a solution to users who want to find files by their length. The user adds folder/s to be processed and can enter a string of characters that required files must contain. Files can be filtered following various ...
Rename Text Files Based On Content Software (Popularity: ) : This software offers a solution to users who want to rename multiple files based on characters found within each file. Characters can be extracted from any line, or you can extract a specific number of the first characters of the ...
HelpDesk OSP, for Outlook and SharePoint (Popularity: ) : HelpDesk OSP connects Outlook to any SharePoint site and takes advantage of the best of both Microsoft products. This help desk application from kalmstrom.com Business Solutions can be used for many kinds of issue tracking and user support. The software ...
Groupion (Popularity: ) : Goupion is a web-based Enterprise Groupware and CRM platform for companies and project teams. The product philosophy of Groupion is based on the idea that the biggest potentials for synergy effects and raising efficiency exists in the contact areas of ...
ReTimer SD (Standard Definition) - Macintosh (Popularity: ) : ReTimer gives you the ultimate flexibility during post-production. The plug-in supports frame blending and frame duplication. And, thanks to its unique motion flow algorithm, ReTimer is able to analyze original images and create completely new frames based on them. ReTimer ...
ReTimer SD (Standard Definition) - Windows (Popularity: ) : ReTimer gives you the ultimate flexibility during post-production. The plug-in supports frame blending and frame duplication. And, thanks to its unique motion flow algorithm, ReTimer is able to analyze original images and create completely new frames based on them. ReTimer ...
ad


Rate me
supported os
Linux
Mac OSX
Macintosh
Win All, BSD, Solaris
stats
downloads 3
version 1.0
size in Kb 20
popularity   
436/374849
user rating 5/10
New Scripts
Popular Scripts
Latest Reviews