- roi_file
A character string specifying the path to the .roi file.
- out_folder
A character string specifying the directory where the PNG images will be saved. Defaults to the directory of the ROI file.
- ROInumbers
An optional numeric vector specifying the ROI numbers to extract. If NULL, all ROIs with valid dimensions are extracted.
- taxaname
An optional character string specifying the taxa name for organizing images into subdirectories. Defaults to NULL.
- gamma
A numeric value for gamma correction applied to the image. Default is 1 (no correction). Values <1 increase contrast in dark regions, while values >1 decrease contrast.
- overwrite
A logical value indicating whether to overwrite existing PNG files. Default is FALSE.
- scale_bar_um
An optional numeric value specifying the length of the scale bar in micrometers. If NULL, no scale bar is added.
- scale_micron_factor
A numeric value defining the conversion factor from micrometers to pixels. Defaults to 1/3.4.
- scale_bar_position
A character string specifying the position of the scale bar in the image. Options are "topright", "topleft", "bottomright", or "bottomleft". Defaults to "bottomright".
- scale_bar_color
A character string specifying the scale bar color. Options are "black" or "white". Defaults to "black".
- old_adc
A logical value indicating whether the adc file is of the old format (samples from IFCB1-6, labeled "IFCBxxx_YYYY_DDD_HHMMSS"). Default is FALSE.
- verbose
A logical value indicating whether to print progress messages. Default is TRUE.