(f, cx, cy)
| 67 | return (0 < p[0]) & (p[0] < x_res) & (0 < p[1]) & (p[1] < y_res) |
| 68 | |
| 69 | def initK(f, cx, cy): |
| 70 | K = np.eye(3, 3) |
| 71 | K[0, 0] = K[1, 1] = f |
| 72 | K[0, 2] = cx |
| 73 | K[1, 2] = cy |
| 74 | return K |
| 75 | |
| 76 | def generate_sampling_frustum(step, depth, K, f, cx, cy, x_res, y_res): |
| 77 | x_max = depth * (x_res - cx) / f |
no outgoing calls
no test coverage detected