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.
resizeImage(image.in, image.out, roi.in, roi.out, npixels)
The complete path to your original image
The complete path (filename with extension included) where the new, resized image will be saved.
The complete path to your original roi.data
The complete path (filename with extension included) where the new, resized roi.data.RData will be saved
As in extractVIs
to aggregate more than one pixel
Gianluca Filippa <gian.filippa@gmail.com>
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.