Skip to content

Conversation

@2020saurav
Copy link

Kernels for spatial as well as region was hardcoded into the library and were not configurable from the calling python functions. I have modified the library to make it configurable.

New way to call the segment function:

(seg_image, labels_image, n_regions) = pms.segment(original_image, spatial_radius=5,
          range_radius=2, min_density=50, skernel="Gaussian", rkernel="Uniform")

Note: Specifying the kernels is optional. Default for both is set to be Uniform kernel.

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