NPR-SFS
0.2
Sample implementations of Shape-From-Shading techniques for NPR.
|
Numpy norm functions. More...
Functions | |
def | isVector |
True if x is a vector. More... | |
def | isMatrix |
True if x is a matrix. More... | |
def | normalizeVector |
Normalize vector. More... | |
def | normalizeVectors |
Normalize vectors (n x m matrix). More... | |
def | normVectors |
Norm of vectors (n x m matrix). More... | |
def | l2NormVectors |
L2 norm of vectors (n x m matrix). More... | |
Numpy norm functions.
def npr_sfs.np.norm.isMatrix | ( | x | ) |
True if x is a matrix.
def npr_sfs.np.norm.isVector | ( | x | ) |
True if x is a vector.
def npr_sfs.np.norm.l2NormVectors | ( | x | ) |
L2 norm of vectors (n x m matrix).
n x 1 vector: np.square. n x m vectors: np.einsum.
def npr_sfs.np.norm.normalizeVector | ( | x | ) |
Normalize vector.
def npr_sfs.np.norm.normalizeVectors | ( | x | ) |
Normalize vectors (n x m matrix).
def npr_sfs.np.norm.normVectors | ( | x | ) |
Norm of vectors (n x m matrix).