The function extracts and save .jpeg images for each crown at each date.
Usage
extract_crownsImages(
path_images,
path_crowns,
path_bbox,
out_dir_path,
site = NULL,
dates = NULL,
N_cores = 1,
width = 720,
height = 825
)
Arguments
- path_images
A list with the full paths to the RGB rasters.
- path_crowns
chr. Path to the crown file
- path_bbox
chr. Path to the folder where the non NA Bbox returned by the function
extract_bboxImages()
are stored.- out_dir_path
chr. The path to the directory use to stored the images. The function will create the folder, It doesn't need to exists.
- site
chr. name of the site, p.e 'Mbalmayo'.
- dates
chr. Vector with dates (format should be '%Y_%m_%d', p.e '2022_09_25'). The order of the dates should match with the order of the dates of the image in the path_images
- N_cores
xx
- width
num. The width of the device
- height
num. The height of the device
Details
The extract_crownsImages() create one folder per id and save the images. The folder names are 'crown_the idthe species name' for exemple 'crown_5_Lophira alata'. The the images names are 'crownthe idthe species namethe date.jpeg' for exemple 'crown_5_Lophira alata_2022-11-08.jpeg'. The function upload square image with neighbouring tree and the title is add at the top, image size is 720*825 pixels. When specific_quality is TRUE, the image size can be changed by specifying height and width parameters.