Percentage difference between images: Difference between revisions

"Ada" section: Correct reference to "Left.G" to "Right.G".
m (syntax highlighting fixup automation)
("Ada" section: Correct reference to "Left.G" to "Right.G".)
 
(One intermediate revision by one other user not shown)
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.
Line 1,735:
{{trans|Kotlin}}
{{libheader|DOME}}
<syntaxhighlight lang="ecmascriptwren">import "graphics" for Canvas, Color, ImageData
import "dome" for Window
 
6

edits