Digital Signal Processing Reference
In-Depth Information
void sqrt ()
Pixel werden durch den Wert ihrer Quadratwurzel ersetzt.
void threshold (int level)
Schwellwertoperation mit
p
th
=
level
, Ergebnis ist 0 oder 255.
void xor (int value)
Binare EXCLUSIVE-OR-Operation der Pixelwerte mit
value
.
C
ImageJ-Kurzreferenz
Die Klasse
ImageProcessor
stellt folgende Methode zur Verknupfung
von
zwei
Bildern zur Verfugung:
void copyBits (ImageProcessor src, int x, int y, int
mode)
Kopiert das Bild
src
in das aktuelle Bild (
this
)andiePosition
(
x
,
y
) mit dem Kopiermodus
mode
. Konstanten fur
mode
sind
in
Blitter
(s. unten) definiert. Fur ein Beispiel s. auch Abschn.
5.7.3.
C.9.2
Blitter
(Interface)
Folgende
mode
-Werte fur die Methode
copyBits()
sind als Konstanten
in
Blitter
definiert (
A
bezeichnet das Zielbild,
B
das Quellbild):
ADD
(Konstante)
A
(
u, v
)
A
(
u, v
)+
B
(
u, v
)
AND
(Konstante)
A
(
u, v
)
←
←
A
(
u, v
)
∧
B
(
u, v
) (bitweise UND-Operation)
AVERAGE
(Konstante)
A
(
u, v
)
(
A
(
u, v
)+
B
(
u, v
))
/
2
COPY
(Konstante)
A
(
u, v
)
←
B
(
u, v
)
COPY INVERTED
(Konstante)
A
(
u, v
)
←
255
− B
(
u, v
)(nurfur 8-Bit-Grauwert- und RGB-
Bilder)
DIFFERENCE
(Konstante)
A
(
u, v
)
←
←|
A
(
u, v
)
−
B
(
u, v
)
|
DIVIDE
(Konstante)
A
(
u, v
)
A
(
u, v
)
/B
(
u, v
)
MAX
(Konstante)
A
(
u, v
)
←
max(
A
(
u, v
)
,B
(
u, v
))
MIN
(Konstante)
A
(
u, v
)
←
min(
A
(
u, v
)
,B
(
u, v
))
MULTIPLY
(Konstante)
A
(
u, v
)
←
←
A
(
u, v
)
·
B
(
u, v
)
OR
(Konstante)
A
(
u, v
)
←
A
(
u, v
)
∨
B
(
u, v
)(bitweiseOR-Operation)
SUBTRACT
(Konstante)
A
(
u, v
)
←
A
(
u, v
)
−
B
(
u, v
)