Percentage difference between images: Difference between revisions

"Ada" section: Correct reference to "Left.G" to "Right.G".
m (→‎{{header|Wren}}: Changed to Wren S/H)
("Ada" section: Correct reference to "Left.G" to "Right.G".)
 
Line 33:
<syntaxhighlight lang="ada">function "-" (Left, Right : Pixel) return Count is
begin
return (Left.R - Right.R) + (Left.G - LeftRight.G) + (Left.B - Right.B);
end "-";</syntaxhighlight>
Mean of 1-norm distances. Constraint_Error is propagated when images have different size.
6

edits