Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cobanov/depth2normal

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Depth to Normal Map Converter

This script converts a depth map image to a normal map image.

Requirements

  • Python 3.x
  • OpenCV (pip install opencv-python)
  • Numpy

Usage

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).

Example

python depth_to_normal_map.py --input assets/depth.png --output normal_map.png --max_depth 255

License

This script is licensed under the MIT License.

About

Converts a depth map image to a normal map image using Python

Topics

Resources

License

Stars

Watchers

Forks

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.