Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur authored Apr 11, 2020
1 parent 8f03c0f commit 87aeeb2
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Also uses CUDA for processing, if available, which cuts down the processing time
Build and install the library. Requires CMake 3.11+, OpenCV 3+ and Eigen3. Both Python 2 and 3 are supported.

```bash
sudo apt-get install cmake libopencv-dev libeigen3-dev

python setup.py install
```

Expand Down Expand Up @@ -45,19 +43,7 @@ normals_from_depth("depth.png", "normals.png",
)
```

Alternatively, `numpy.ndarray` input-output is available with `normals_from_depth_numpy()`.
```python
from surface_normal import normals_from_depth_numpy
from skimage.io import imread, imsave

# Camera intrinsics
f = 721.5377
cx = 609.5593
cy = 172.8540
depth = imread("depth.png")
normals = normals_from_depth_numpy(depth, intrinsics=(f, cx, cy), window_size=15, max_rel_depth_diff=0.1)
imsave("normals.png", normals)
```
Additionally, `numpy.ndarray` input-output is available with `normals_from_depth_numpy()`.

### Depth input example

Expand Down

0 comments on commit 87aeeb2

Please sign in to comment.