pyclustering
0.10.1
pyclustring is a Python, C++ data mining library.
|
Class represents segmentation algorithm syncsegm. More...
Public Member Functions | |
def | __init__ (self, color_radius, object_radius, noise_size=0, ccore=True) |
Contructor of the oscillatory network SYNC for cluster analysis. More... | |
def | process (self, image_source, collect_dynamic=False, order_color=0.9995, order_object=0.999) |
Performs image segmentation. More... | |
Class represents segmentation algorithm syncsegm.
syncsegm is a bio-inspired algorithm that is based on double-layer oscillatory network that uses modified Kuramoto model. Algorithm extracts colors and colored objects. It uses only CCORE (C++ implementation of pyclustering) parts to implement the algorithm.
CCORE option is True by default to use sync network in the pyclustering core - C/C++ shared library for processing that significantly increases performance.
Example:
Definition at line 141 of file syncsegm.py.
def pyclustering.nnet.syncsegm.syncsegm.__init__ | ( | self, | |
color_radius, | |||
object_radius, | |||
noise_size = 0 , |
|||
ccore = True |
|||
) |
Contructor of the oscillatory network SYNC for cluster analysis.
[in] | color_radius | (double): Radius of color connectivity (color similarity) for the first layer. |
[in] | object_radius | (double): Radius of object connectivity (object similarity) for the second layer, if 'None' then object segmentation is not performed (only color segmentation). |
[in] | noise_size | (double): Size of segment that should be considered as a noise and ignored by the second layer. |
[in] | ccore | (bool): If 'True' then C/C++ implementation is used to increase performance. |
Definition at line 169 of file syncsegm.py.
def pyclustering.nnet.syncsegm.syncsegm.process | ( | self, | |
image_source, | |||
collect_dynamic = False , |
|||
order_color = 0.9995 , |
|||
order_object = 0.999 |
|||
) |
Performs image segmentation.
[in] | image_source | (string): Path to image file that should be processed. |
[in] | collect_dynamic | (bool): If 'True' then whole dynamic of each layer of the network is collected. |
[in] | order_color | (double): Local synchronization order for the first layer - coloring segmentation. |
[in] | order_object | (double): Local synchronization order for the second layer - object segmentation. |
Definition at line 192 of file syncsegm.py.