reflectance

Description

Given an image which has source data and a set of labelled ROIs (regions of interest), generate gradient and intercept values to correct the image to reflectance values.

The ROIs must correspond to calibration target patches in the image. The calibration target can be selected by the user.

The image must know what camera and filters it came from, and the camera must have filter information including nominal reflectances for each patch on that target.

The outputs are the gradient and intercept of the fit for each filter. All source data is removed, so it does not obscure image data in subsequent operations. The next operation should be an expr node performing out=(in-c)/m.


Connections

Inputs

Index Name Type Desc
0 img img (none)

Outputs

Index Name Type Desc
0 m number (none)
1 c number (none)

Parameters

reflectancetarget: string (default None)The calibration target to use
show_patches: boolean (default True)Show the patch names on the plot
zero_fudge: boolean (default False)Add an extra zero point
simpler_data_fudge: boolean (default False)Force all points to have same number of pixels and same SD

Automatically generated by generate_autodocs.py

Date: 2025-06-12T17:28:29.051109