phenotypic.util.MedoidResult#

class phenotypic.util.MedoidResult(index: int, lab: np.ndarray, rank: int, total_delta_e: float, widened: bool)[source]#

Bases: NamedTuple

Outcome of a candidate-restricted medoid search.

Parameters:
index#

Row of the winning pixel in the input array.

Type:

int

lab#

The winning pixel’s Lab coordinate.

Type:

numpy.ndarray

rank#

The winner’s position within the candidate set, 0 being the pixel closest to the geometric median.

Type:

int

total_delta_e#

The winner’s total delta-E 2000 to every input pixel.

Type:

float

widened#

True when the first search put the winner near the edge of the candidate set and the search was re-run with a larger one.

Type:

bool

Methods

__init__

count

Return number of occurrences of value.

Attributes

index

Alias for field number 0

lab

Alias for field number 1

rank

Alias for field number 2

total_delta_e

Alias for field number 3

widened

Alias for field number 4

index: int#

Alias for field number 0

lab: ndarray#

Alias for field number 1

rank: int#

Alias for field number 2

total_delta_e: float#

Alias for field number 3

widened: bool#

Alias for field number 4

count(value, /)#

Return number of occurrences of value.