![](../logo.png)
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
Arguments
- pixel.idx
list declaring pixels to which target.color.hsv is applied
- cluster_id
index of the to-be-retrieved cluster
Examples
if (FALSE) {
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
)
)
)
}