Harmonize Tangent Images Across Batches Using Rigid Correction
Source:R/honnorat.R
rigid_harmonization.RdApplies a rigid harmonization procedure to tangent images
in a CSuperSample object.
First, batch means are subtracted from each sample's
tangent images (batch correction), then the overall mean is added back
(global correction). The harmonized tangent images are used
to reconstruct new CSample objects, which are collected
into a new CSuperSample.
Details
This function performs harmonization in two steps:
Batch Correction: For each batch, the mean of its tangent images is subtracted from each tangent image in the batch.
Global Correction: The overall mean (across all batches) of tangent images is added back to each tangent image.
The harmonized tangent images are then used to reconstruct samples
using the reference point and metric from the original CSuperSample.