Name
pixel_error_angle_sets
Usage
output = pixel_error_angle_sets(agls1, agls2, Threshold, r)
Input
- agls1
- A list, the i-th element of which is a list of three Eulerian angles [[phi1, theta1, psi1], [phi2, theta2, psi2],...].
- agls2
- Also a list of Eulerian angles like agls1. We assume agls1 and agls2 have the same length, and the i-th element of one list is assumed to correspond to the i-th element of the other. agls1 and agls2 can also be lists of Transform objects where the i-th element is a Transform object containing the Eulerian angles instead of a list.
- Threshold
- A float denoting an upper bound on the desired pixel error (see Method section to see how this is used).
- r
- A float denoting radius of the object.
Output
- output
- A list of of lists. Each list in the list is a pair [i, pix_error] where i is an index of corresponding angle pairs in agls1 and agls2, and pix_error is a pixel error (see Method below) which is less than Threshold.
Method
pixel_error_between_angle_sets uses rotation_between_anglesets to find the overall 3D rotation between agls1 and agls2 using second list as reference. The overall rotation found by rotation_between_anglesets is applied to the first list (agls1) . The output is a list of lists: If the i-th corresponding pair of Eulerian angles on agls2 and agls1(after overall rotation has been applied) has pixel error p less than Threshold, then append the list [i, p] to the output list. The pixel error is computed using max_3D_pixel_error
Author / Maintainer
J. Fang
Keywords
- category 1
- STATISTICS
Files
statistics.py
Maturity
- alpha
- Works for author
Bugs
Didn't find any.