Learn R Programming

iRfcb (version 0.5.1)

ifcb_summarize_png_metadata: Summarize PNG Image Metadata

Description

This function processes IFCB data by reading images, matching them to the corresponding header and feature files, and joining them into a single dataframe. This function may be useful when preparing metadata files for an EcoTaxa submission.

Usage

ifcb_summarize_png_metadata(
  png_folder,
  feature_folder = NULL,
  hdr_folder = NULL
)

Value

A dataframe that joins image data, header data, and feature data based on the sample and roi number.

Arguments

png_folder

Character. The file path to the folder containing the PNG images.

feature_folder

Character. The file path to the folder containing the feature files (optional).

hdr_folder

Character. The file path to the folder containing the header files (optional).

Examples

Run this code
if (FALSE) {
png_folder <- "path/to/pngs"
feature_folder <- "path/to/features"
hdr_folder <- "path/to/hdr_data"
result_df <- ifcb_summarize_png_metadata(png_folder, feature_folder, hdr_folder)
}

Run the code above in your browser using DataLab