polarity_separation_line_length# smart.polarity_separation_line.polarity_separation_line_length(dilated_negmask, dilated_posmask)[source]# Calculate the length of the polarity separation line (the boundary line between the positive and negative regions of an AR). Parameters: dilated_negmask (ndarray) – Dilated mask of the negative region of the feature. dilated_posmask (ndarray) – Dilated mask of the positive region of the feature. Returns: psl_length (int) – The length of the polarity separation line. psl_thinmask (ndarray) – Skeletonized mask of the polarity separation line.