color_cluster: color_cluster groups pixels of each curve in the image based...

View source: R/color_cluster.R

color_clusterR Documentation

color_cluster groups pixels of each curve in the image based on color using k-medoids clustering

Description

color_cluster groups pixels of each curve in the image based on color using k-medoids clustering

Usage

color_cluster(fig.df, num_curves = 3, censoring = F, enhance = F)

Arguments

fig.df

a dataframe with x,y and h,s,l values for each pixel

num_curves

the number of curves that are on the figure to be digitized

censoring

logical indicating whether censoring occurs in a different color (usually black)

enhance

indicating whether converting HSl channcels into same scale

Value

fig.grp: a dataframe with x,y,h,s,l values and associated group (curve) for each pixel

Examples

# color_cluster(fig.df =  fig.df, num_curves = 3, censoring = F, enhance = F)

Pechli-Lab/SurvdigitizeR documentation built on July 17, 2024, 8:01 a.m.