Learn R Programming

rTLsDeep (version 0.0.5)

get_validation_classes: Tree-level damage classes for validation datasets

Description

This function return the post-hurricane individual tree-level damage classes based on file names in a given directory.

Usage

get_validation_classes(file_path)

Value

Returns the classes based on file names in a given folder.

Arguments

file_path

A character string indicating the path to the validation folders, one for each class. This folder must have sub folders with samples for each class.

Examples

Run this code
# Image and model properties
val_image_files_path = system.file('extdata', 'validation', package='rTLsDeep')

# Get damage classes for validation datasets
classes = get_validation_classes(file_path=val_image_files_path)

Run the code above in your browser using DataLab