Skip to content

Commit

Permalink
removed obsolete lsqadj.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlib committed Apr 5, 2024
1 parent bd6f0dd commit 2ecf530
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 666 deletions.
270 changes: 0 additions & 270 deletions openptv_python/lsqadj.py

This file was deleted.

6 changes: 3 additions & 3 deletions openptv_python/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ def pos3d_in_bounds(pos: np.ndarray, bounds: TrackPar) -> bool:

# return angle, acc


@njit(float64[:](float64[:], float64[:], float64[:]), cache=True, fastmath=True, nogil=True, parallel=True)
def angle_acc(
start: np.ndarray, pred: np.ndarray, cand: np.ndarray
) -> Tuple[float, float]:
) -> np.ndarray:
"""Calculate the angle between the (1st order) numerical velocity vectors.
to the predicted next_frame position and to the candidate actual position. The
Expand Down Expand Up @@ -288,7 +288,7 @@ def angle_acc(
dot_product / (norm_start_pred * norm_start_cand)
)

return float(angle), float(acc)
return np.array([angle, acc])



Expand Down
Loading

0 comments on commit 2ecf530

Please sign in to comment.