<< CreateFeatureStruct Image Processing Design CreatePixelIndexList >>

Image Processing Design >> Image Processing Design > CreateHistogram

CreateHistogram

berechnet das Grauwerthistogramm eines Bildes

Aufruf

Histogramm = CreateHistogram(Bild);

[Histogramm BinListe] = CreateHistogram(Bild);

Histogramm = CreateHistogram(Bild, AnzahlBins);

[Histogramm BinListe] = CreateHistogram(Bild, AnzahlBins);

Parameter

Bild

2D-Matrix vom typ uint8, uint16, uint32, double oder boolean

AnzahlBins

Anzahl der Grauwertintervalle für ein Bild vom Typ double. Dieser Parameter ist optional und wird ignoriert, wenn Bild einen anderen Typ als double hat.

Histogramm

Zeilenvektor, der die Anzahl der Pixel pro Grauwert oder Grauwertintervall enthält.

BinListe

Zeilenvektor, der die Mittelpunkte der Grauwertintervalle (Bins) enthält. Dieser Parameter ist optional.

Beschreibung

Diese Funktion berechnet das Grauwerthistogramm eines Bildes. Wenn das Bild vom Typ double ist, kann die Anzahl der Grauwertintervalle angegeben werden.

Beispiel

global IPD_PATH;

RGB = ReadImage(IPD_PATH + 'demos\teaset.png');

Bild = RGB2Gray(RGB);

figure(); ShowImage(Bild, 'Grauwertbild');

Histogramm = CreateHistogram(Bild, 10);

figure(); plot(Histogramm);

Siehe auch


Report an issue
<< CreateFeatureStruct Image Processing Design CreatePixelIndexList >>