What does it do?
It compares each pixel in an input image with nearby pixels to produce contrast information, then gathers directional responses for each small region. It uses support from adjacent regions to connect broken contours and reduce repeated responses from textures. After returning the processed contour density to the original resolution, it generates a final boundary map. It also presents example input images and resulting maps from the provided pretrained model.
Key features
- Calculate contrast for each pixel in an RGB image
- Calculate directional responses and contour density by region
- Connect contours using information from adjacent regions
- Suppress repeated texture responses and generate boundary maps
- Select CUDA, MPS, or CPU on available devices