displacements.scale: Scale displacements

Description Usage Arguments Value

View source: R/fiji-imagej_bunwarpj_reg.R

Description

Applies a scale factor to adjust the magnitudes of displacement vectors

Usage

1
2
displacements.scale(d_tx, scale_factor, xyz_disp = TRUE,
  return_sp = FALSE, r_ref = NA)

Arguments

d_tx

a data frame containing the transformation vectors imported from bUnwarpJ

scale_factor

the scale factor (numeric) to adjust the displacement magnitudes

xyz_disp

(logical) TRUE if x,y and z displacements are to be scaled, and FALSE if only x,y displacements are to be scaled.

return_sp

(logical) TRUE to return a SpatialPointsDataFrame based on the CRS projection of a reference raster object

r_ref

a raster that has the CRS projection of the displacements

Value

A data frame of the scaled displacements


jngtz/map.displ.r documentation built on Oct. 29, 2020, 4:43 p.m.