Functions | Variables
rmse Namespace Reference

Functions

def click_and_crop (event, x, y, flags, param)
 

Variables

 a = normal[0]
 
 b = normal[1]
 
 c = normal[2]
 
 C_x = np.cov(xyz.T)
 
 colorized = cv.applyColorMap(i8, cv.COLORMAP_JET)
 
 crop = orig[int(my):int(My), int(mx):int(Mx)].astype(np.float)
 
 d = -np.dot(point, normal)
 
 Dcrop = np.zeros_like(crop).astype(np.float)
 
 direction_vector = eig_vecs[:, min_eig_val_index].copy()
 
 dist = abs(a * x + b * y + c * z + d)/e
 
 Dmap = np.dstack((Dcrop, Dcrop, Dcrop))
 
 e = math.sqrt(a * a + b * b + c * c)
 
 eig_vals
 
 eig_vecs
 
 f = open(filename,"r")
 
 file_extension
 
string filename = "‪D:/dataset/gt-4622.png"
 
 fname
 
 font = cv.FONT_HERSHEY_COMPLEX_SMALL
 
int height = 0
 
list i = []
 
tuple i8 = (i * 255.0).astype(np.uint8)
 
 im = colorized.copy()
 
int key = cv.waitKey(100)&0xFF
 
 m = np.percentile(i, 5)
 
 M = np.percentile(i, 95)
 
 min_eig_val_index = np.argmin(eig_vals)
 
int mx = 0
 
int Mx = 0
 
int my = 0
 
int My = 0
 
 normal = direction_vector/np.linalg.norm(direction_vector)
 
 orig = i.copy()
 
 point = np.mean(xyz, axis=0)
 
 rmse = math.sqrt(variance)
 
int rmse_mm = rmse*1000
 
 size = i.shape[0]
 
 variance = np.min(eig_vals)
 
int width = 0
 
list X = []
 
tuple x = (float(j) / width - 0.5)*z
 
int x0 = 0
 
int x1 = 0
 
 Xcrop = np.zeros_like(crop).astype(np.float)
 
int xx = 0
 
 xyz = np.dstack((X, Y, Z))
 
list Y = []
 
tuple y = (float(i) / height - 0.5)*z
 
int y0 = 0
 
int y1 = 0
 
 Ycrop = np.zeros_like(crop).astype(np.float)
 
int yy = 0
 
list Z = []
 
float z = crop[i - my, j - mx]*0.001
 
 Zcrop = np.zeros_like(crop).astype(np.float)
 

Function Documentation

def rmse.click_and_crop (   event,
  x,
  y,
  flags,
  param 
)

Definition at line 59 of file rmse.py.

Variable Documentation

rmse.a = normal[0]

Definition at line 174 of file rmse.py.

rmse.b = normal[1]

Definition at line 175 of file rmse.py.

rmse.c = normal[2]

Definition at line 176 of file rmse.py.

rmse.C_x = np.cov(xyz.T)

Definition at line 154 of file rmse.py.

rmse.colorized = cv.applyColorMap(i8, cv.COLORMAP_JET)

Definition at line 113 of file rmse.py.

rmse.crop = orig[int(my):int(My), int(mx):int(Mx)].astype(np.float)

Definition at line 129 of file rmse.py.

rmse.d = -np.dot(point, normal)

Definition at line 171 of file rmse.py.

rmse.Dcrop = np.zeros_like(crop).astype(np.float)

Definition at line 179 of file rmse.py.

rmse.direction_vector = eig_vecs[:, min_eig_val_index].copy()

Definition at line 159 of file rmse.py.

rmse.dist = abs(a * x + b * y + c * z + d)/e

Definition at line 187 of file rmse.py.

rmse.Dmap = np.dstack((Dcrop, Dcrop, Dcrop))

Definition at line 195 of file rmse.py.

rmse.e = math.sqrt(a * a + b * b + c * c)

Definition at line 177 of file rmse.py.

rmse.eig_vals

Definition at line 155 of file rmse.py.

rmse.eig_vecs

Definition at line 155 of file rmse.py.

rmse.f = open(filename,"r")

Definition at line 20 of file rmse.py.

rmse.file_extension

Definition at line 13 of file rmse.py.

rmse.filename = "‪D:/dataset/gt-4622.png"

Definition at line 9 of file rmse.py.

rmse.fname

Definition at line 13 of file rmse.py.

rmse.font = cv.FONT_HERSHEY_COMPLEX_SMALL

Definition at line 117 of file rmse.py.

int rmse.height = 0

Definition at line 15 of file rmse.py.

tuple rmse.i = []

Definition at line 18 of file rmse.py.

rmse.i8 = (i * 255.0).astype(np.uint8)

Definition at line 106 of file rmse.py.

rmse.im = colorized.copy()

Definition at line 121 of file rmse.py.

int rmse.key = cv.waitKey(100)&0xFF

Definition at line 203 of file rmse.py.

rmse.m = np.percentile(i, 5)

Definition at line 41 of file rmse.py.

rmse.M = np.percentile(i, 95)

Definition at line 42 of file rmse.py.

rmse.min_eig_val_index = np.argmin(eig_vals)

Definition at line 158 of file rmse.py.

int rmse.mx = 0

Definition at line 54 of file rmse.py.

int rmse.Mx = 0

Definition at line 55 of file rmse.py.

int rmse.my = 0

Definition at line 56 of file rmse.py.

int rmse.My = 0

Definition at line 57 of file rmse.py.

rmse.normal = direction_vector/np.linalg.norm(direction_vector)

Definition at line 164 of file rmse.py.

rmse.orig = i.copy()

Definition at line 46 of file rmse.py.

rmse.point = np.mean(xyz, axis=0)

Definition at line 166 of file rmse.py.

rmse.rmse = math.sqrt(variance)

Definition at line 161 of file rmse.py.

int rmse.rmse_mm = rmse*1000

Definition at line 198 of file rmse.py.

rmse.size = i.shape[0]

Definition at line 24 of file rmse.py.

rmse.variance = np.min(eig_vals)

Definition at line 157 of file rmse.py.

int rmse.width = 0

Definition at line 16 of file rmse.py.

list rmse.X = []

Definition at line 131 of file rmse.py.

rmse.x = (float(j) / width - 0.5)*z

Definition at line 142 of file rmse.py.

int rmse.x0 = 0

Definition at line 48 of file rmse.py.

int rmse.x1 = 0

Definition at line 50 of file rmse.py.

rmse.Xcrop = np.zeros_like(crop).astype(np.float)

Definition at line 135 of file rmse.py.

int rmse.xx = 0

Definition at line 52 of file rmse.py.

rmse.xyz = np.dstack((X, Y, Z))

Definition at line 152 of file rmse.py.

list rmse.Y = []

Definition at line 132 of file rmse.py.

rmse.y = (float(i) / height - 0.5)*z

Definition at line 143 of file rmse.py.

int rmse.y0 = 0

Definition at line 49 of file rmse.py.

int rmse.y1 = 0

Definition at line 51 of file rmse.py.

rmse.Ycrop = np.zeros_like(crop).astype(np.float)

Definition at line 136 of file rmse.py.

int rmse.yy = 0

Definition at line 53 of file rmse.py.

list rmse.Z = []

Definition at line 133 of file rmse.py.

rmse.z = crop[i - my, j - mx]*0.001

Definition at line 141 of file rmse.py.

rmse.Zcrop = np.zeros_like(crop).astype(np.float)

Definition at line 137 of file rmse.py.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40