hic3defdr.util.classification module¶
-
hic3defdr.util.classification.
classify
(row, col, value, clusters)[source]¶ Classifies pixels (specified by row, col coordinates) into classes (corresponding to the columns of value) where their value is highest, ignoring those pixels that don’t belong to the specified clusters.
Parameters: - col (row,) – Row and column indices, respectively, identifying pixels which
correspond to rows of
value
. - value (np.ndarray) – Value to use to assign classes. Rows correspond to pixels, columns to conditions.
- clusters (list of set of tuple) – Only pixels in these clusters will be assigned classes.
Returns: The outer list represents classes (one per condition). Its elements represent clusters of points with that class/condition.
Return type: list of list of set of tuple
- col (row,) – Row and column indices, respectively, identifying pixels which
correspond to rows of