Bases: shapes.models.MaterialShapeLabelBase
Surface normal obtained by rectifying a material.
The normal is described by a 4x4 uvnb matrix. The top-left uvn matrix is a 3x3 rotation matrix (two vectors uv in the plane and surface normal n), and the rightmost b column is the origin of the plane.
which method was used to create this normal
Returns the angle with another normal
if true, this was estimated automatically using vanishing points
Return the SVG path for rendering the two axes
Return True if self is a better surface normal than other. If the surface normal is determined by vanishing points, it is considered better. Otherwise, the CUBAM score (correct_score) from quality voting is used.
height of the kinetic.js canvas (only the portion used)
width of the kinetic.js canvas (only the portion used)
if true, enough users voted this to be a correct rectification
further from 0: more confident in assignment of correct
Return the SVG path for rendering the disc
focal length used to project points
Return the SVG path for rendering a grid
Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
Add new instances from a mturk HIT after the user clicks [submit]
Returns the normal vector (3rd column of uvnb matrix)
number of vanishing lines contained in the shape when estimating vanishing points
Adjusts the uvnb matrix to be orthogonal
Return the SVG path for rendering the pin
x position / width (place that the user was shown to measure)
y position / height (place that the user was shown to measure)
Returns the disc –> image transform as a numpy matrix. Input domain: disc plane. Output domain: [0,1]x[0,1] image.
Returns the horizontal vector (1st column of uvnb matrix)
4x4 matrix in column major order, stored as a json array. columns: u axis, v axis, normal, 3d point on plane (b).
[ 0 4 8 12 ] corresponds to [ u v n b ]
[ 1 5 9 13 ]
[ 2 6 10 14 ]
[ 3 7 11 15 ]
Return the uvnb matrix as a numpy matrix
Bases: common.models.ResultBase
Vote on whether or not a rectified normal label matches
Add new instances from a mturk HIT after the user clicks [submit]