Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

resizeImage

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


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

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

Process Digital Images of a Vegetation Cover

v2.4.2
GPL-2
Authors
Gianluca Filippa, Edoardo Cremonese, Mirco Migliavacca, Marta Galvagno, Matthias Folker, Andrew D. Richardson, Enrico Tomelleri
Initial release
2020-09-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.