Thema: Delphi ColorMap

Einzelnen Beitrag anzeigen

Benutzerbild von nailor
nailor

Registriert seit: 12. Dez 2002
Ort: Karlsruhe
1.989 Beiträge
 
#1

ColorMap

  Alt 15. Apr 2003, 23:17
Ich weiß nicht, ob es offiziell so heißt, aber bei MatLAb hieß es so: ColorMap.

In delphi kann man zb mit:
Delphi-Quellcode:
for i := 0 to 255 do
  cm[i] := i shl r;
Wobei cm ein array mit 255 cardinals für die Delphi-Farbwerte ist, und rgb für rot=0, blau=8 grün=16 gesetzt wird.

ein array mit Farbwerten erstellen, das von links nach rechts "Sinn" macht. Meine Frage ist nun: hat jemand noch andere Colormaps, zb: von grün über blau über gelb zu rot, so wie es zb bei Wärmebildkameraas ist?
Michael N.
http://nailor.devzero.de/code/sharpmath/testing/ --- Tests, Feedback, Anregungen, ... aller Art sehr willkommen!
::: don't try so hard - it'll happen for a reason :::
  Mit Zitat antworten Zitat