Skip to contents

Applies 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.

Usage

rigid_harmonization(super_sample)

Arguments

super_sample

A CSuperSample object containing samples to harmonize.

Value

A new CSuperSample object with harmonized tangent images.

Details

This function performs harmonization in two steps:

  1. Batch Correction: For each batch, the mean of its tangent images is subtracted from each tangent image in the batch.

  2. 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.