MCPcopy Create free account

hub / github.com/densechen/CASS / functions

Functions183 in github.com/densechen/CASS

Functionangle_between_vectors
Return angle between vectors. If directed is False, the input vectors are interpreted as undirected axes, i.e. the maximum angle is pi/2.
lib/transformations.py:1807
Functionbackproject
(depth, intr, mask)
datasets/utils.py:120
Functionclip_matrix
Return matrix to obtain normalized device coordinates from frustum. The frustum bounds are axis-aligned along x (left, right), y (bottom, top
lib/transformations.py:596
Functioncompose_matrix
Return transformation matrix from sequence of transformations. This is the inverse of the decompose_matrix function. Sequence of transformat
lib/transformations.py:809
Functioncompute_degree_cm_mAP
Compute Average Precision at a set IoU threshold (default 0.5). Returns: mAP: Mean Average Precision precisions: List of precisions at dif
tools/utils.py:427
Functionconcatenate_matrices
Return concatenation of series of transformation matrices. >>> M = numpy.random.rand(16).reshape((4, 4)) - 0.5 >>> numpy.allclose(M, concaten
lib/transformations.py:1855
Methodconstrain
Return state of constrain to axis mode.
lib/transformations.py:1584
Functiondecompose_matrix
Return sequence of transformations from transformation matrix. matrix : array_like Non-degenerative homogeneous transformation matrix
lib/transformations.py:724
Methoddown
Set initial cursor window coordinates and pick constrain-axis.
lib/transformations.py:1593
Methoddrag
Update current cursor window coordinates.
lib/transformations.py:1603
Functiondraw
(image, RTs, models, class_ids, misses, intrinsics, save_path="bbox.png")
tools/utils.py:717
Methodencode
(self, img, x, choose)
lib/models.py:60
FunctionestimateSimilarityTranform
(source: np.array, target: np.array)
datasets/utils.py:24
Functioneuler_from_quaternion
Return Euler angles from quaternion for specified axis sequence. >>> angles = euler_from_quaternion([0.99810947, 0.06146124, 0, 0]) >>> numpy
lib/transformations.py:1170
Methodforward
(self, x)
lib/network.py:23
Methodforward
(self, x, emb)
lib/network.py:43
Methodforward
(self, img, x, choose, obj)
lib/network.py:87
Methodforward
(self, x, emb)
lib/network.py:147
Methodforward
(self, x, emb, obj)
lib/network.py:187
Methodforward
(self, img, x, choose)
lib/network.py:217
Methodforward
(self, codeword, obj)
lib/network.py:254
Methodforward
(self, codeword)
lib/models.py:28
Methodforward
(self, input1, input2)
lib/foldingnet.py:12
Methodforward
(self, X)
lib/foldingnet.py:40
Methodforward
(self, X)
lib/foldingnet.py:68
Methodforward
(self, X)
lib/foldingnet.py:118
Methodforward
(self, X)
lib/pointnet.py:90
Methodforward
(self, X, Y)
lib/pointnet.py:102
Methodforward
(self, X)
lib/pointnet.py:125
Methodforward
(self, X)
lib/pointnet.py:152
Methodforward
(self, X)
lib/pointnet.py:174
Methodforward
(self, X)
lib/pointnet.py:196
Methodforward
(self, X)
lib/pointnet.py:226
Methodforward
(self, X)
lib/pointnet.py:254
Methodforward
(self, X)
lib/pointnet.py:289
Methodforward
(self, feats)
lib/pspnet.py:22
Methodforward
(self, x)
lib/pspnet.py:39
Methodforward
(self, x)
lib/pspnet.py:67
Methodforward
(self, x)
lib/extractors.py:29
Methodforward
(self, x)
lib/extractors.py:58
Methodforward
(self, x)
lib/extractors.py:114
Methodget_num_points_mesh
(self)
datasets/dataset.py:261
Methodget_sym_list
(self)
datasets/dataset.py:258
Functionidentity_matrix
Return 4x4 identity/unit matrix. >>> I = identity_matrix() >>> numpy.allclose(I, numpy.dot(I, I)) True >>> numpy.sum(I), numpy.trace(
lib/transformations.py:207
Functioninverse_matrix
Return inverse of square transformation matrix. >>> M0 = random_rotation_matrix() >>> M1 = inverse_matrix(M0.T) >>> numpy.allclose(M1, nu
lib/transformations.py:1839
Functionis_same_quaternion
Return True if two quaternions are equal.
lib/transformations.py:1887
Functionis_same_transform
Return True if two matrices perform same transformation. >>> is_same_transform(numpy.identity(4), numpy.identity(4)) True >>> is_same_tra
lib/transformations.py:1871
Functionload_weights_sequential
(target, source_state)
lib/extractors.py:8
Methodmatrix
Return homogeneous rotation matrix.
lib/transformations.py:1621
Methodnext
Continue rotation in direction of last drag.
lib/transformations.py:1616
Functionorthogonalization_matrix
Return orthogonalization matrix for crystallographic cell coordinates. Angles are expected in degrees. The de-orthogonalization matrix is th
lib/transformations.py:862
Methodplace
Place Arcball, e.g. when window size changes. center : sequence[2] Window coordinates of trackball center. radius : float
lib/transformations.py:1563
Functionprojection_from_matrix
Return projection plane and perspective point from projection matrix. Return values are same as arguments for projection_matrix function: poi
lib/transformations.py:523
Functionprojection_matrix
Return matrix to project onto plane defined by point and normal. Using either perspective point, projection direction, or none of both. If p
lib/transformations.py:461
Functionquaternion_about_axis
Return quaternion for rotation about axis. >>> q = quaternion_about_axis(0.123, [1, 0, 0]) >>> numpy.allclose(q, [0.99810947, 0.06146124, 0,
lib/transformations.py:1238
Functionquaternion_conjugate
Return conjugate of quaternion. >>> q0 = random_quaternion() >>> q1 = quaternion_conjugate(q0) >>> q1[0] == q0[0] and all(q1[1:] == -q0[1
lib/transformations.py:1383
Functionquaternion_from_euler
Return quaternion from Euler angles and axis sequence. ai, aj, ak : Euler's roll, pitch and yaw angles axes : One of 24 axis sequences as str
lib/transformations.py:1181
Functionquaternion_imag
Return imaginary part of quaternion. >>> quaternion_imag([3, 0, 1, 2]) array([ 0., 1., 2.])
lib/transformations.py:1421
Functionquaternion_inverse
Return inverse of quaternion. >>> q0 = random_quaternion() >>> q1 = quaternion_inverse(q0) >>> numpy.allclose(quaternion_multiply(q0, q1)
lib/transformations.py:1397
Functionquaternion_real
Return real part of quaternion. >>> quaternion_real([3, 0, 1, 2]) 3.0
lib/transformations.py:1411
Functionrandom_rotation_matrix
Return uniform random rotation matrix. rand: array like Three independent random variables that are uniformly distributed between
lib/transformations.py:1500
Functionrandom_vector
Return array of random doubles in the half-open interval [0.0, 1.0). >>> v = random_vector(10000) >>> numpy.all(v >= 0) and numpy.all(v < 1)
lib/transformations.py:1771
Functionreflection_from_matrix
Return mirror plane point and normal vector from reflection matrix. >>> v0 = numpy.random.random(3) - 0.5 >>> v1 = numpy.random.random(3) - 0
lib/transformations.py:273
Functionreflection_matrix
Return matrix to mirror at plane defined by point and normal vector. >>> v0 = numpy.random.random(4) - 0.5 >>> v0[3] = 1. >>> v1 = numpy.
lib/transformations.py:247
Functionresnet101
(pretrained=False)
lib/extractors.py:139
Functionresnet152
(pretrained=False)
lib/extractors.py:143
Functionresnet18
(pretrained=False)
lib/extractors.py:127
Functionresnet34
(pretrained=False)
lib/extractors.py:131
Functionresnet50
(pretrained=False)
lib/extractors.py:135
Functionrotation_from_matrix
Return rotation angle and axis from rotation matrix. >>> angle = (random.random() - 0.5) * (2*math.pi) >>> direc = numpy.random.random(3) - 0
lib/transformations.py:346
Functionrotation_matrix
Return matrix to rotate about axis defined by point and direction. >>> R = rotation_matrix(math.pi/2, [0, 0, 1], [1, 0, 0]) >>> numpy.allclos
lib/transformations.py:302
Functionsample_obj
sample uniform point from .obj mesh file. if norm, we ill normalize it.
datasets/utils.py:171
Functionsave_obj
vertex: [N x 3]
datasets/utils.py:9
Functionscale_from_matrix
Return scaling factor, origin and direction from scaling matrix. >>> factor = random.random() * 10 - 5 >>> origin = numpy.random.random(3) -
lib/transformations.py:420
Functionscale_matrix
Return matrix to scale by factor around origin in direction. Use factor -1 for point symmetry. >>> v = (numpy.random.rand(4, 5) - 0.5) * 20
lib/transformations.py:386
Methodsetaxes
Set axes to constrain rotations.
lib/transformations.py:1576
Functionsetup_logger
(logger_name, log_file, level=logging.INFO)
tools/utils.py:17
Functionshear_from_matrix
Return shear angle, direction and plane from shear matrix. >>> angle = (random.random() - 0.5) * 4*math.pi >>> direct = numpy.random.random(3
lib/transformations.py:679
Functionshear_matrix
Return matrix to shear by angle along direction vector on shear plane. The shear plane is defined by a point and normal vector. The direction
lib/transformations.py:648
Functionsuperimposition_matrix
Return matrix to transform given 3D point set into second point set. v0 and v1 are shape (3, \*) or (4, \*) arrays of at least 3 points. The
lib/transformations.py:998
Functiontranslation_from_matrix
Return translation vector from translation matrix. >>> v0 = numpy.random.random(3) - 0.5 >>> v1 = translation_from_matrix(translation_matrix(
lib/transformations.py:235
Functiontranslation_matrix
Return matrix to translate by direction vector. >>> v = numpy.random.random(3) - 0.5 >>> numpy.allclose(v, translation_matrix(v)[:3, 3])
lib/transformations.py:222
Functionvector_product
Return vector perpendicular to vectors. >>> v = vector_product([2, 0, 0], [0, 3, 0]) >>> numpy.allclose(v, [0, 0, 6]) True >>> v0 = [
lib/transformations.py:1786
← previous101–183 of 183, ranked by callers