Learn R Programming

greenR (version 0.0.1.6)

calculate_and_visualize_GVI: Calculate and Visualize Green View Index (GVI) from an image

Description

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.

Usage

calculate_and_visualize_GVI(image_path)

Value

A list containing the Green View Index (GVI), the segmented image, and the green pixels image.

Arguments

image_path

The path of the image file to be processed.

Examples

Run this code
if (FALSE) {
# Example usage with an image located at the specified path
result <- calculate_and_visualize_GVI("/path/to/your/image.png")
}

Run the code above in your browser using DataLab