Learn R Programming

phenopix (version 2.4.5)

PrintROI: Print an already drawn region of interest

Description

This function allows to re-draw one (or more) region(s) of interest (ROI) on a jpeg image.

Usage

PrintROI(path_img_ref,path_ROIs,which='all',col, file.type='.jpg')

Value

It returns a plot that can be saved with your favorite device.

Arguments

path_img_ref

Path in your folder for the reference image

path_ROIs

Path where ROI coordinates are stored in a structured list called ROI.Rdata.

which

Which one of your ROIs you want to draw, defaults to `'all' and draws all rois.

col

A character vector with colors. If missing it defaults to color palette

file.type

It must match the syntax of your file extension (e.g. .jpg, .JPG, .JPEG). Multiple types are allowed by concatenation with c().

Author

Gianluca Filippa <g.filippa@arpa.vda.it>

Details

This utility allows to draw your ROIs on your reference image, with different colors for different ROIS and a dedicated legend See DrawROI for details.