img <- image_pliman("soybean_touch.jpg")
plot(img)
image_segment_mask(img, size = 601)
image_segment_mask(img,
size = 401,
shape = "diamond",
rel_pos_x = 0,
rel_pos_y = 0,
type = "shadow")
Run the code above in your browser using DataLab