PrintROI: Print an already drawn region of interest

Description Usage Arguments Details Value Author(s)

View source: R/PrintROI.R

Description

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

Usage

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

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().

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.

Value

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

Author(s)

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


phenopix documentation built on May 2, 2019, 4:50 p.m.