- Notifications
You must be signed in to change notification settings - Fork0
Converts a depth map image to a normal map image using Python
License
NotificationsYou must be signed in to change notification settings
cobanov/depth2normal
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This script converts a depth map image to a normal map image.
- Python 3.x
- OpenCV (
pip install opencv-python
) - Numpy
To run the script, use the following command:
python depth_to_normal_map.py --input /path/to/input_image --output /path/to/output_image --max_depth 255
The following arguments are available:
--input
(-i
): Path to the input depth map image.--output
(-o
): Path to save the output normal map image.--max_depth
(-m
): Maximum depth value of the input depth map image (default: 255).
python depth_to_normal_map.py --input assets/depth.png --output normal_map.png --max_depth 255
This script is licensed under theMIT License.
About
Converts a depth map image to a normal map image using Python
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.