Ver Mensaje Individual
  #2  
Antiguo 27-11-2011
MaxiDucoli MaxiDucoli is offline
Miembro
 
Registrado: feb 2006
Posts: 134
Reputación: 19
MaxiDucoli Va por buen camino
Smile SimilarColors

Hola, mirá, yo estuve usando una vez para encontrar un color similar en 3 imagenes esto:

function SimilarColors(Color1, Color2, Tolerance: Integer): Boolean;
begin
Result := ((Abs((Color1 and $ff) - (Color2 and $ff)) <= Tolerance) and
(Abs(((Color1 and $ff00) shr 8) - ((Color2 and $ff00) shr 8)) <= Tolerance) and
(Abs(((Color1 and $ff0000) shr 16) - ((Color2 and $ff0000) shr 16)) <= Tolerance));
end;

Si tu color de fondo es sólido o un color mas o menos igual en todo el fondo, capaz que esto te sirva.
Recorre la imagen y anda comparando el color y listo.
Espero que te sirva!
Saludos!
Responder Con Cita