Einzelnen Beitrag anzeigen

HPW

Registriert seit: 28. Feb 2003
160 Beiträge
 
Delphi 7 Professional
 
#1

Delta/Diff von 2 Bitmaps ermitteln

  Alt 10. Jul 2004, 14:47
Ich suche die schnellste Methode das Delta/Diff von 2 Bitmaps herauszufinden!
Etwa so:

Code:
  // 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];
Gibt es noch andere Ansätze (vor allem schnellere!)?
Hans-Peter
  Mit Zitat antworten Zitat