View source: R/calculate_and_visualize_GVI.R
calculate_and_visualize_GVI | R Documentation |
This function reads an image, performs superpixel segmentation (using the SuperpixelImageSegmentation library), calculates the Green View Index (GVI), and returns a list containing the segmented image, the green pixels image, and the calculated GVI.
calculate_and_visualize_GVI(image_path)
image_path |
The path of the image file to be processed. |
A list containing the Green View Index (GVI), the segmented image, and the green pixels image.
## Not run:
# Example usage with an image located at the specified path
result <- calculate_and_visualize_GVI("/path/to/your/image.png")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.