Skip to content

Commit

Permalink
improve README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Mar 29, 2020
1 parent d7a6b18 commit c4c11c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ python setup.py install

## Usage

Takes a depth image with pixel values as depth in meters
(the format used by the [KITTI depth completion dataset](http://www.cvlibs.net/datasets/kitti/eval_depth.php?benchmark=depth_completion))
Takes a depth image (such as the ones provided with the [KITTI depth completion dataset](http://www.cvlibs.net/datasets/kitti/eval_depth.php?benchmark=depth_completion))
as input and outputs estimated normals as an RGB image.
The scale of the input depth does not matter because
the `max_rel_depth_diff` threshold applied to exclude distant neighboring pixels uses relative depth values.

```python
from surface_normal import normals_from_depth
Expand All @@ -32,6 +33,13 @@ normals_from_depth("depth.png", "normals.png",
)
```

### Depth input

![depth](depth.png)

### Normals output
![normals](normals.png)

## Citation
If you use our code or method in your work, please cite the following:
```
Expand Down
Binary file added depth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added normals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c4c11c5

Please sign in to comment.