rescale(x, scaling_factor, scale_mapping, magnification_col, ...)
Coo
objectheader=TRUE
Every
different magnification level found in $fac[, "magnification_col"] must have its row.rescale(your_Coo, scaling_factor=1/500)
and all coordinates will be in cm. The ii) second case is more subtle. First you need to code in your /linkCoo object, in the fac
slot, a column named, say "mag", for magnification. Imagine you have 4 magnifications: 0.5, 1, 2 and 5,
we have to indicate for each magnification, how many pixels stands for how many units in the real world. This information is passed as a data.frame, built externally or in R, that must look like this:
mag pix cm 0.5 1304 10 1 921 10 2 816 5 5 1020 5. We have to do that because, for optical reasons, the ratio pix/real_unit, is not a linear function of the magnification. All shapes will be centered to apply (the single or the different) scaling_factor.