![]() |
Delta/Diff von 2 Bitmaps ermitteln
Ich suche die schnellste Methode das Delta/Diff von 2 Bitmaps herauszufinden!
Etwa so:
Code:
Gibt es noch andere Ansätze (vor allem schnellere!)?
// Zeige das Delta im Delta image.
for y := 0 to imgOne.Picture.Bitmap.Height -1 do for x := 0 to imgOne.Picture.Bitmap.Width -1 do if (imgOne.Picture.Bitmap.Canvas.Pixels[x, y] <> imgTwo.Picture.Bitmap.Canvas.Pixels[x, y]) then imgDelta.Picture.Bitmap.Canvas.Pixels[x, y] := imgTwo.Picture.Bitmap.Canvas.Pixels[x, y]; |
Re: Delta/Diff von 2 Bitmaps ermitteln
Hallo
Canvas.pixels ist so ziemlich das langsamste, was du verwenden kannst, gugg dir die scanline-eigenschaft der Bitmap an. hier ist eine andere Variante: ![]() Mfg Frank |
Re: Delta/Diff von 2 Bitmaps ermitteln
Danke für den Tip.
mal schauen wie schnell das dann wird. |
Re: Delta/Diff von 2 Bitmaps ermitteln
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:22 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz