Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
havardlovas authored Apr 15, 2024
1 parent 4bf99f1 commit c87a7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ X_norm_hsi = np.array([x_norm_hsi, 0, 1]) # The pixel ray in the hsi frame

Of course most these parameters are hard to guess for a HSI and there are two simple ways of finding them. The first way is to ignore distortions and if you know the angular field of view (AFOV). Then you can calculate:

$$f = \frac{width}{2atan(AFOV/2)}$$
$$f = \frac{width}{2tan(AFOV/2)}$$
Besides that, you set cx=width/2, and remaining k's to zero. The second approach is if you have an array describing the FOV (often from the manufacturer).
In our example above that would amount to a 512-length array, e.g. in degrees
```
Expand Down

0 comments on commit c87a7b4

Please sign in to comment.