Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

GMImage.NormalizedMaxError

The normalized max error per pixel computed when an image is color reduced.

Component Version macOS Windows Linux Server FileMaker iOS SDK
GraphicsMagick 2.0 Yes Yes Yes Yes Yes
MBS( "GMImage.NormalizedMaxError"; ImageRef )   More

Parameters

Parameter Description Example
ImageRef The image reference number. 1

Result

Returns the normalized max error as number.

Description

The normalized max error per pixel computed when an image is color reduced.

Examples

Compares two images:

Set Variable [$img1; Value:MBS( "GMImage.NewFromContainer"; test::Container1 )]
Set Variable [$img2; Value:MBS( "GMImage.NewFromContainer"; test::Container2 )]
Set Variable [$result; Value:MBS( "GMImage.Compare"; $img1; $img2 )]
If [$result = 1]
    Show Custom Dialog ["Image Comparison"; "equal"]
Else If [$result = 0]
    Set Variable [$e; Value:MBS( "GMImage.NormalizedMaxError"; $img1 )]
    If [$e ≠ 0 and $e < ,03]
        Show Custom Dialog ["Image Comparison"; "very similar: " & MBS( "GMImage.NormalizedMaxError"; $img1 )]
    Else
        Show Custom Dialog ["Image Comparison"; "not equal"]
    End If
End If
Set Variable [$r; Value:MBS("GMImage.Release"; $img1)]
Set Variable [$r; Value:MBS("GMImage.Release"; $img2)]

See also

Created 18th August 2014, last changed 21st December 2018


GMImage.Normalize   -   GMImage.NormalizedMeanError

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins

Start Chat