return coordinates by cluster_id from pixel.idx
Source: R/retrieve_adjacency_coords.R
retrieve_adjacency_coords.Rd
return coordinates by cluster_id from pixel.idx
Examples
if (FALSE) { # \dontrun{
pixels <- extract_pixels_HSV(...) # extract pixels of a certain color-range
adjacency <- adjacency(pixels$identifier$pixel.idx) # assign clusters
coords <- retrieve_adjacency_coords(adjacency,1) # retrieve coordinates of first cluster
plot_array_as_image_sRGB( # display result
HSVtoRGB(
apply_HSV_color_by_mask(
pixel.array,
coords,
target.color = "white",
mask_extreme = T
)
)
)
} # }