resizeImage: Resize an image (and a tROI) to a given pixel resolution

Description Usage Arguments Details Author(s)

View source: R/resizeImage.R

Description

This function allows to resize a sample image and a correspondent ROI to a given pixel resolution to be used as background to spatila analysis plots.

Usage

1
resizeImage(image.in, image.out, roi.in, roi.out, npixels)

Arguments

image.in

The complete path to your original image

image.out

The complete path (filename with extension included) where the new, resized image will be saved.

roi.in

The complete path to your original roi.data

roi.out

The complete path (filename with extension included) where the new, resized roi.data.RData will be saved

npixels

As in extractVIs to aggregate more than one pixel

Details

Coupled with spatial analysis and image resize (see extractVIs() and specifically argument npixels for details), this function allows to update a selected image and the correspondent ROI to a smaller size. This is exactly what is done internally when extractVIs() is called with npixels different from 1. The resized image can be used (together with the roi.data object) to plot results from spatially explicit phase extraction. See the vignette ‘spatial’ for illustrated examples.

Author(s)

Gianluca Filippa <gian.filippa@gmail.com>


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