Compute

Compute 1:

Compute the structural similarity (SetReference must have been called before).

Syntax

Definition:

METHOD Compute : HRESULT
VAR_INPUT
    ipSrcImage : ITcVnImage;
    ipSSIM     : Reference To ITcVnImage;
END_VAR

Compute 2: Inputs

Name

Type

Description

ipSrcImage

ITcVnImage

Source image (USINT)

ipSSIM

Reference To ITcVnImage

Returns the SSIM (REAL, values from 0 to 1)

Compute 3: Return value

HRESULT