pymeanshift icon indicating copy to clipboard operation
pymeanshift copied to clipboard

Made api with configurable kernel parameters

Open 2020saurav opened this issue 9 years ago • 0 comments

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.

2020saurav avatar Jan 27 '16 11:01 2020saurav