Skip to content

fix: dilation kernel size is off by one pixel in buffered - #64

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/occupancy-map-d0851819
Open

fix: dilation kernel size is off by one pixel in buffered#64
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/occupancy-map-d0851819

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

This PR addresses the following issue in exts/omni.ext.mobility_gen/omni/ext/mobility_gen/occupancy_map.py: dilation kernel size is off by one pixel in buffered.

Changes

  • exts/omni.ext.mobility_gen/omni/ext/mobility_gen/occupancy_map.py: dilation kernel size is off by one pixel in buffered.

Details

Before:

        radius = buffer_distance_pixels
        diameter = radius * 2
        kernel = np.zeros((diameter, diameter), np.uint8)
        cv2.circle(kernel, (radius, radius), radius, 255, -1)

After:

        radius = buffer_distance_pixels
        diameter = radius * 2 + 1
        kernel = np.zeros((diameter, diameter), np.uint8)
        cv2.circle(kernel, (radius, radius), radius, 255, -1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant