LAT Hologramm-Software 2.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Hologram Class Reference

Hologramme werden als Objekte vom Typ Hologram dargestellt. More...

Inheritance diagram for Hologram:
Inheritance graph
[legend]
Collaboration diagram for Hologram:
Collaboration graph
[legend]

Public Member Functions

function Hologram ()
 Konstruktor: Wenn SLM verbunden ist, werden dessen Werte für die Auflösung etc. für das Hologramm übernommen Wenn Laser verbunden ist, wird dessen Wellenlänge übernommen. More...
 
function distanceFromCenter (in obj)
 Gibt den Abstand jedes Pixels des Holograms zum Mittelpunkt des Holograms. More...
 
function distanceFromPoint (in obj, in x0, in y0)
 Gibt Matrix mit Abstand jedes Pixels des Holograms zum Punkt x0,y0. More...
 
function angle (in obj, in x0, in y0)
 Abstand zum Bildmittelpunkt. More...
 
function beamImage (in obj, in source, in name)
 Gibt Bild des Eingangsstrahls aus. More...
 
function calculate (in obj)
 Hauptfunktion zur Hologrammberechnung. Die Methode führt alle ausgewählten Algorithmen der Reihe nach aus und addiert die berechneten Hologramme auf. Die Matrizen zu Eingangs- und Ausgangsstrahl werden in den entsprechenden Properties gespeichert. More...
 
function saveImages (in obj)
 Speichert Phase und Amplitude von Hologramm- und Bildebene als Bilddatei ab
More...
 
function progress (in obj, in message)
 

Static Public Member Functions

static function calc (in list)
 Funktion zur automatisierten Berechnung mehrerer Hologramme Die Hologramme werden als 1-dimensionales Array an die Methode übergeben. More...
 
static function sayHi ()
 

Public Attributes

Property displayProgress
 
Property send2SLMWhenFinished
 Bei "true" wird das Bild nach der Berechnung direkt an den verbunden SLM übertragen. More...
 
Property saveImageWhenFinished
 Bei "true" wird das Bild nach der Berechnung im Output-Ordner gespeichert. More...
 
Property pixelX
 Auflösung der Berechnung. More...
 
Property pixelY
 
Property pixelPitch
 Abstand der Pixel. More...
 
Property grayLevels
 Anzahl der Graustufen. More...
 
Property angleCalibrationFactor
 Linerarer Faktor zur Kalibrierung des Ablenkwinkels von bspw. dargestellten Blaze-Gittern. More...
 
Property lensCalibrationFactor
 Linerarer Faktor zur Kalibrierung der Fokusverschiebung durch dargestellte Linsen. More...
 
Property wavelength
 Wellenlänge, für die das Hologramm berechnet wurde in nm. More...
 
Property adaptSize
 'original' oder 'stretch' #wofür war das nochmal? More...
 
Property inputPhase
 
Property inputAmplitude
 Matrix mit relativer Intensitätsamplitude des Inputstrahls. More...
 
Property farFieldPhase
 Phase des Strahls im Fernfeld (nach FFT) More...
 
Property farFieldAmplitude
 Berechnete Intensitätsverteilung im Fernfeld (nach FFT) More...
 
Property displayDuration
 Anzeigedauer des Hologramms. More...
 
Property savePath
 Dateispeicherpfad für Hologramm. More...
 
Property saveName
 Dateiname für Hologramm. More...
 
Property saveNo
 Fortlaufende Nummer für Dateinamen. More...
 
Property inputBeam_source
 
Property inputBeamDiameter
 Durchmesser in mm des gaussförmigen Eingangsstrahls (Nur bei inputBeam_source = 'calculated' relevant) More...
 
Property addPrismAndLens
 Prisma und Linse. More...
 
Property phiX
 Ablenkungswinkel in X-Richtung. More...
 
Property phiY
 Ablenkungswinkel in Y-Richtung. More...
 
Property z
 Z-Verschiebung durch Linse. More...
 
Property addMultispot
 Multispot. More...
 
Property spotList
 Koordinatenmatrix der einzelnen Spots mit Parametern (phiX,phiY,Z,I). I ist die Gewichtung der einzelnen Spots. More...
 
Property addAxicon
 Axikon. More...
 
Property alpha
 Axikonwinkel. More...
 
Property ax_x0
 Verschiebung des Mittelpunkts des Axikons in X-Richtung. More...
 
Property ax_y0
 Verschiebung des Mittelpunkts des Axikons in Y-Richtung. More...
 
Property addVortex
 Vortex. More...
 
Property charge
 Topologische Ordnung des Vortexbeams. More...
 
Property vo_x0
 Verschiebung des Mittelpunkts des Vortexmusters in X-Richtung. More...
 
Property vo_y0
 Verschiebung des Mittelpunkts des Vortexmusters in Y-Richtung. More...
 
Property addGerchbergSaxton
 GerchbergSaxton. More...
 
Property gs_iteration
 Anzahl der Iterationen. More...
 
Property gs_startPhase
 'random' oder 'quadratic' Startbild für den Algorithmus: Zufallsbild oder quadratische Phase More...
 
Property gs_quadraticParameter
 Streckfaktor der Parabel bei quadratischer Startphase. More...
 
Property gs_image
 Dateipfad zu dem Bild, welches dargestellt werden soll. More...
 
Property gs_resizeMode
 'stretch', 'original', 'repeat' Anpassung des Bildes an die Hologrammauflösung More...
 
Property gs_color
 'grayValues' oder 'binary' Konvertierung des darzustelenden Bildes in Graustufen oder Schwarz-Weiß More...
 
Property gs_limitGrayLevel
 Schwellwert für die Schwarz-Weiß-Konvertierung. More...
 
Property gs_invertColors
 Invertierung der Farben. More...
 
Property gs_convergence
 Array, in dem bei jedem Iterationsschritt die aktuelle Abweichung des Hologramms zum Target-Bild angegeben wird. More...
 
Property gs_plot
 Bei "true", wird nach der Berechnung der Fehler über die Iterationen als Plot ausgegeben. More...
 
Property addGeneticAlgorithm
 
Property ga_startPhase
 'random' oder 'gerchbergSaxton' Startbild für den Algorithmus: Zufallsbild oder es wird vorher der Gerchberg-Saxton-Algorithmus ausgeführt, um Startbilder zu generieren More...
 
Property ga_population
 Population = Anzahl der Bilder, die in jedem Schritt getestet werden. More...
 
Property ga_mutationProb
 in % Wahrscheinlichkeit, mit der sich ein Bit in einem Iterationsschritt verändert More...
 
Property ga_elite
 in % Anteil der Bilder, die für den nächsten Iterationsschritt behalten wird More...
 
Property ga_iteration
 Anzahl der Iterationen. More...
 
Property ga_imageDepth
 Farbtiefe → entspricht log2(Graustufen) des Hologramms. More...
 
Property ga_bitCode
 'binary', 'gray' Binäre Codierung der Graustufen oder Nutzung des 'Greycode' (Binär ist deutlich schneller) More...
 
Property ga_image
 Dateipfad zu dem Bild, welches dargestellt werden soll. More...
 
Property ga_resizeMode
 'stretch', 'original', 'repeat' Anpassung des Bildes an die Hologrammauflösung More...
 
Property ga_color
 'grayValues' oder 'binary' Konvertierung des darzustelenden Bildes in Graustufen oder Schwarz-Weiß More...
 
Property ga_limitGrayLevel
 Schwellwert für die Schwarz-Weiß-Konvertierung. More...
 
Property ga_invertColors
 Invertierung der Farben. More...
 
Property ga_evaluation
 'calculated' oder 'camera' Auswahl der Methode zur Evaluation der Bilder. Bei 'calculated' wird die Intensität mittels FFT simuliert, bei 'camera' wird es mit der Kamera aufgenommen More...
 
Property ga_convergence
 Array, in dem bei jedem Iterationsschritt die aktuelle Abweichung des Hologramms zum Target-Bild angegeben wird. More...
 
Property ga_plot
 Bei "true", wird nach der Berechnung der Fehler über die Iterationen als Plot ausgegeben. More...
 
Property addRandomPhase
 Zufallsphase. More...
 
Property maximumRandomPhase
 Prozentsatz der Phase, der auf das Hologramm aufaddiert wird. More...
 
Property addZernike
 Zernike. More...
 
Property weighting
 Das Array enthält die Gewichtungsfaktoren der Zernikepolynome. More...
 
Property addAperture
 Ringlochblende. More...
 
Property r_i
 Innerer Radius der Blende in mm. More...
 
Property r_a
 Äußerer Radius der Blende in mm More...
 

Detailed Description

Hologramme werden als Objekte vom Typ Hologram dargestellt.

Objekte vom Typ Hologram enthalten:

→ Allgemeine Hologrammparameter wie Auflösung,
→ Die Parameter der verwendeten Hologrammalgorithmen
→ Das Hologramm, sowie Informationen über die Input- /Output-Amplitude in Form von Graustufenmatrizen

Außerdem sind in der Klasse die Methoden zur Berechnung der Hologramme enthalten

Definition at line 10 of file Hologram.m.

Constructor & Destructor Documentation

◆ Hologram()

function Hologram::Hologram ( )

Konstruktor: Wenn SLM verbunden ist, werden dessen Werte für die Auflösung etc. für das Hologramm übernommen Wenn Laser verbunden ist, wird dessen Wellenlänge übernommen.

Member Function Documentation

◆ angle()

function Hologram::angle ( in  obj,
in  x0,
in  y0 
)

Abstand zum Bildmittelpunkt.

Gibt zu jedem Pixel des Holograms des Winkel bezogen auf den Punkt x0,y0

◆ beamImage()

function Hologram::beamImage ( in  obj,
in  source,
in  name 
)

Gibt Bild des Eingangsstrahls aus.

◆ calc()

static function Hologram::calc ( in  list)
static

Funktion zur automatisierten Berechnung mehrerer Hologramme Die Hologramme werden als 1-dimensionales Array an die Methode übergeben.

◆ calculate()

function Hologram::calculate ( in  obj)

Hauptfunktion zur Hologrammberechnung. Die Methode führt alle ausgewählten Algorithmen der Reihe nach aus und addiert die berechneten Hologramme auf. Die Matrizen zu Eingangs- und Ausgangsstrahl werden in den entsprechenden Properties gespeichert.

◆ distanceFromCenter()

function Hologram::distanceFromCenter ( in  obj)

Gibt den Abstand jedes Pixels des Holograms zum Mittelpunkt des Holograms.

◆ distanceFromPoint()

function Hologram::distanceFromPoint ( in  obj,
in  x0,
in  y0 
)

Gibt Matrix mit Abstand jedes Pixels des Holograms zum Punkt x0,y0.

◆ progress()

function Hologram::progress ( in  obj,
in  message 
)

◆ saveImages()

function Hologram::saveImages ( in  obj)

Speichert Phase und Amplitude von Hologramm- und Bildebene als Bilddatei ab

◆ sayHi()

static function Hologram::sayHi ( )
static

Member Data Documentation

◆ adaptSize

Property Hologram::adaptSize

'original' oder 'stretch' #wofür war das nochmal?

Definition at line 49 of file Hologram.m.

◆ addAperture

Property Hologram::addAperture

Ringlochblende.

Definition at line 240 of file Hologram.m.

◆ addAxicon

Property Hologram::addAxicon

Axikon.

Definition at line 114 of file Hologram.m.

◆ addGeneticAlgorithm

Property Hologram::addGeneticAlgorithm

Definition at line 176 of file Hologram.m.

◆ addGerchbergSaxton

Property Hologram::addGerchbergSaxton

GerchbergSaxton.

Definition at line 140 of file Hologram.m.

◆ addMultispot

Property Hologram::addMultispot

Multispot.

Definition at line 107 of file Hologram.m.

◆ addPrismAndLens

Property Hologram::addPrismAndLens

Prisma und Linse.

Definition at line 94 of file Hologram.m.

◆ addRandomPhase

Property Hologram::addRandomPhase

Zufallsphase.

Definition at line 226 of file Hologram.m.

◆ addVortex

Property Hologram::addVortex

Vortex.

Definition at line 127 of file Hologram.m.

◆ addZernike

Property Hologram::addZernike

Zernike.

Definition at line 233 of file Hologram.m.

◆ alpha

Property Hologram::alpha

Axikonwinkel.

Definition at line 117 of file Hologram.m.

◆ angleCalibrationFactor

Property Hologram::angleCalibrationFactor

Linerarer Faktor zur Kalibrierung des Ablenkwinkels von bspw. dargestellten Blaze-Gittern.

Definition at line 40 of file Hologram.m.

◆ ax_x0

Property Hologram::ax_x0

Verschiebung des Mittelpunkts des Axikons in X-Richtung.

Definition at line 120 of file Hologram.m.

◆ ax_y0

Property Hologram::ax_y0

Verschiebung des Mittelpunkts des Axikons in Y-Richtung.

Definition at line 123 of file Hologram.m.

◆ charge

Property Hologram::charge

Topologische Ordnung des Vortexbeams.

Definition at line 130 of file Hologram.m.

◆ displayDuration

Property Hologram::displayDuration

Anzeigedauer des Hologramms.

Definition at line 66 of file Hologram.m.

◆ displayProgress

Property Hologram::displayProgress

Verhalten Bei "true" wird während der Berechnung der Berechnungsfortschritt angezeigt

Definition at line 19 of file Hologram.m.

◆ farFieldAmplitude

Property Hologram::farFieldAmplitude

Berechnete Intensitätsverteilung im Fernfeld (nach FFT)

Definition at line 63 of file Hologram.m.

◆ farFieldPhase

Property Hologram::farFieldPhase

Phase des Strahls im Fernfeld (nach FFT)

Definition at line 60 of file Hologram.m.

◆ ga_bitCode

Property Hologram::ga_bitCode

'binary', 'gray' Binäre Codierung der Graustufen oder Nutzung des 'Greycode' (Binär ist deutlich schneller)

Definition at line 197 of file Hologram.m.

◆ ga_color

Property Hologram::ga_color

'grayValues' oder 'binary' Konvertierung des darzustelenden Bildes in Graustufen oder Schwarz-Weiß

Definition at line 207 of file Hologram.m.

◆ ga_convergence

Property Hologram::ga_convergence

Array, in dem bei jedem Iterationsschritt die aktuelle Abweichung des Hologramms zum Target-Bild angegeben wird.

Definition at line 219 of file Hologram.m.

◆ ga_elite

Property Hologram::ga_elite

in % Anteil der Bilder, die für den nächsten Iterationsschritt behalten wird

Definition at line 188 of file Hologram.m.

◆ ga_evaluation

Property Hologram::ga_evaluation

'calculated' oder 'camera' Auswahl der Methode zur Evaluation der Bilder. Bei 'calculated' wird die Intensität mittels FFT simuliert, bei 'camera' wird es mit der Kamera aufgenommen

Definition at line 216 of file Hologram.m.

◆ ga_image

Property Hologram::ga_image

Dateipfad zu dem Bild, welches dargestellt werden soll.

Definition at line 201 of file Hologram.m.

◆ ga_imageDepth

Property Hologram::ga_imageDepth

Farbtiefe → entspricht log2(Graustufen) des Hologramms.

Definition at line 194 of file Hologram.m.

◆ ga_invertColors

Property Hologram::ga_invertColors

Invertierung der Farben.

Definition at line 213 of file Hologram.m.

◆ ga_iteration

Property Hologram::ga_iteration

Anzahl der Iterationen.

Definition at line 191 of file Hologram.m.

◆ ga_limitGrayLevel

Property Hologram::ga_limitGrayLevel

Schwellwert für die Schwarz-Weiß-Konvertierung.

Definition at line 210 of file Hologram.m.

◆ ga_mutationProb

Property Hologram::ga_mutationProb

in % Wahrscheinlichkeit, mit der sich ein Bit in einem Iterationsschritt verändert

Definition at line 185 of file Hologram.m.

◆ ga_plot

Property Hologram::ga_plot

Bei "true", wird nach der Berechnung der Fehler über die Iterationen als Plot ausgegeben.

Definition at line 222 of file Hologram.m.

◆ ga_population

Property Hologram::ga_population

Population = Anzahl der Bilder, die in jedem Schritt getestet werden.

Definition at line 182 of file Hologram.m.

◆ ga_resizeMode

Property Hologram::ga_resizeMode

'stretch', 'original', 'repeat' Anpassung des Bildes an die Hologrammauflösung

Definition at line 204 of file Hologram.m.

◆ ga_startPhase

Property Hologram::ga_startPhase

'random' oder 'gerchbergSaxton' Startbild für den Algorithmus: Zufallsbild oder es wird vorher der Gerchberg-Saxton-Algorithmus ausgeführt, um Startbilder zu generieren

Definition at line 179 of file Hologram.m.

◆ grayLevels

Property Hologram::grayLevels

Anzahl der Graustufen.

Definition at line 37 of file Hologram.m.

◆ gs_color

Property Hologram::gs_color

'grayValues' oder 'binary' Konvertierung des darzustelenden Bildes in Graustufen oder Schwarz-Weiß

Definition at line 159 of file Hologram.m.

◆ gs_convergence

Property Hologram::gs_convergence

Array, in dem bei jedem Iterationsschritt die aktuelle Abweichung des Hologramms zum Target-Bild angegeben wird.

Definition at line 168 of file Hologram.m.

◆ gs_image

Property Hologram::gs_image

Dateipfad zu dem Bild, welches dargestellt werden soll.

Definition at line 153 of file Hologram.m.

◆ gs_invertColors

Property Hologram::gs_invertColors

Invertierung der Farben.

Definition at line 165 of file Hologram.m.

◆ gs_iteration

Property Hologram::gs_iteration

Anzahl der Iterationen.

Definition at line 143 of file Hologram.m.

◆ gs_limitGrayLevel

Property Hologram::gs_limitGrayLevel

Schwellwert für die Schwarz-Weiß-Konvertierung.

Definition at line 162 of file Hologram.m.

◆ gs_plot

Property Hologram::gs_plot

Bei "true", wird nach der Berechnung der Fehler über die Iterationen als Plot ausgegeben.

Definition at line 171 of file Hologram.m.

◆ gs_quadraticParameter

Property Hologram::gs_quadraticParameter

Streckfaktor der Parabel bei quadratischer Startphase.

Definition at line 149 of file Hologram.m.

◆ gs_resizeMode

Property Hologram::gs_resizeMode

'stretch', 'original', 'repeat' Anpassung des Bildes an die Hologrammauflösung

Definition at line 156 of file Hologram.m.

◆ gs_startPhase

Property Hologram::gs_startPhase

'random' oder 'quadratic' Startbild für den Algorithmus: Zufallsbild oder quadratische Phase

Definition at line 146 of file Hologram.m.

◆ inputAmplitude

Property Hologram::inputAmplitude

Matrix mit relativer Intensitätsamplitude des Inputstrahls.

Definition at line 57 of file Hologram.m.

◆ inputBeam_source

Property Hologram::inputBeam_source

Eingangsstrahl Sourse = 'calculated', 'fromFile', 'measured' Gibt an, woher die Intensitätsverteilung für den Eingangsstrahl genommen werden sollen

Definition at line 81 of file Hologram.m.

◆ inputBeamDiameter

Property Hologram::inputBeamDiameter

Durchmesser in mm des gaussförmigen Eingangsstrahls (Nur bei inputBeam_source = 'calculated' relevant)

Definition at line 84 of file Hologram.m.

◆ inputPhase

Property Hologram::inputPhase

Bilder Matrix mit Phaseninformation des Hologramms

Definition at line 54 of file Hologram.m.

◆ lensCalibrationFactor

Property Hologram::lensCalibrationFactor

Linerarer Faktor zur Kalibrierung der Fokusverschiebung durch dargestellte Linsen.

Definition at line 43 of file Hologram.m.

◆ maximumRandomPhase

Property Hologram::maximumRandomPhase

Prozentsatz der Phase, der auf das Hologramm aufaddiert wird.

Definition at line 229 of file Hologram.m.

◆ phiX

Property Hologram::phiX

Ablenkungswinkel in X-Richtung.

Definition at line 97 of file Hologram.m.

◆ phiY

Property Hologram::phiY

Ablenkungswinkel in Y-Richtung.

Definition at line 100 of file Hologram.m.

◆ pixelPitch

Property Hologram::pixelPitch

Abstand der Pixel.

Definition at line 34 of file Hologram.m.

◆ pixelX

Property Hologram::pixelX

Auflösung der Berechnung.

Definition at line 29 of file Hologram.m.

◆ pixelY

Property Hologram::pixelY

Definition at line 31 of file Hologram.m.

◆ r_a

Property Hologram::r_a

Äußerer Radius der Blende in mm

Definition at line 246 of file Hologram.m.

◆ r_i

Property Hologram::r_i

Innerer Radius der Blende in mm.

Definition at line 243 of file Hologram.m.

◆ saveImageWhenFinished

Property Hologram::saveImageWhenFinished

Bei "true" wird das Bild nach der Berechnung im Output-Ordner gespeichert.

Definition at line 25 of file Hologram.m.

◆ saveName

Property Hologram::saveName

Dateiname für Hologramm.

Definition at line 73 of file Hologram.m.

◆ saveNo

Property Hologram::saveNo

Fortlaufende Nummer für Dateinamen.

Definition at line 76 of file Hologram.m.

◆ savePath

Property Hologram::savePath

Dateispeicherpfad für Hologramm.

Definition at line 70 of file Hologram.m.

◆ send2SLMWhenFinished

Property Hologram::send2SLMWhenFinished

Bei "true" wird das Bild nach der Berechnung direkt an den verbunden SLM übertragen.

Definition at line 22 of file Hologram.m.

◆ spotList

Property Hologram::spotList

Koordinatenmatrix der einzelnen Spots mit Parametern (phiX,phiY,Z,I). I ist die Gewichtung der einzelnen Spots.

Definition at line 110 of file Hologram.m.

◆ vo_x0

Property Hologram::vo_x0

Verschiebung des Mittelpunkts des Vortexmusters in X-Richtung.

Definition at line 133 of file Hologram.m.

◆ vo_y0

Property Hologram::vo_y0

Verschiebung des Mittelpunkts des Vortexmusters in Y-Richtung.

Definition at line 136 of file Hologram.m.

◆ wavelength

Property Hologram::wavelength

Wellenlänge, für die das Hologramm berechnet wurde in nm.

Definition at line 46 of file Hologram.m.

◆ weighting

Property Hologram::weighting

Das Array enthält die Gewichtungsfaktoren der Zernikepolynome.

Definition at line 236 of file Hologram.m.

◆ z

Property Hologram::z

Z-Verschiebung durch Linse.

Definition at line 103 of file Hologram.m.


The documentation for this class was generated from the following file: