Openholo  v4.2
Open Source Digital Holographic Library
ophpy.Image2D.Propagation Class Reference

Public Member Functions

def __init__ (self, imgpath, propagation_distance=1, angleX=0, angleY=0, Red=639 *nm, Green=525 *nm, Blue=463 *nm, SLM_width=3840, SLM_height=2160, scale=0.03, pixel_pitch=3.6 *um)
 
def zeropadding (self, img, nzpw)
 
def resizeimg (self, wvl, img)
 
def Fresnel (self, color)
 
def ASM (self, color)
 
def fft (self, f)
 
def ifft (self, f)
 
def SSB (self, ch)
 
def normalize (self, arr, type='angle')
 
def getRGBImage (self, R, G, B, fname, type='phase')
 
def getMonoImage (self, ch, fname)
 
def __init__ (self, imgpath, propagation_distance=1, angleX=0, angleY=0, Red=639 *nm, Green=525 *nm, Blue=463 *nm, SLM_width=3840, SLM_height=2160, scale=0.03, pixel_pitch=3.6 *um)
 
def zeropadding (self, img, nzpw)
 
def resizeimg (self, wvl, img)
 
def Fresnel (self, color)
 
def ASM (self, color)
 
def fft (self, f)
 
def ifft (self, f)
 
def SSB (self, ch)
 
def normalize (self, arr, type='angle')
 
def getRGBImage (self, R, G, B, fname, type='phase')
 
def getMonoImage (self, ch, fname)
 

Public Attributes

 zz
 
 imagein
 
 thetaX
 
 thetaY
 
 wvl_R
 
 wvl_G
 
 wvl_B
 
 w
 
 h
 
 pp
 
 scale
 

Detailed Description

Get Fringe pattern by 2D image
Parameters
imgpath : image path
f : propagation length
angle : phase shift angle
Red, Green, Blue : wavelength
scale : scaling factor
http://openholo.org/

Definition at line 62 of file Image2D.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def ophpy.Image2D.Propagation.__init__ (   self,
  imgpath,
  propagation_distance = 1,
  angleX = 0,
  angleY = 0,
  Red = 639*nm,
  Green = 525*nm,
  Blue = 463*nm,
  SLM_width = 3840,
  SLM_height = 2160,
  scale = 0.03,
  pixel_pitch = 3.6*um 
)

Definition at line 74 of file Image2D.py.

◆ __init__() [2/2]

def ophpy.Image2D.Propagation.__init__ (   self,
  imgpath,
  propagation_distance = 1,
  angleX = 0,
  angleY = 0,
  Red = 639*nm,
  Green = 525*nm,
  Blue = 463*nm,
  SLM_width = 3840,
  SLM_height = 2160,
  scale = 0.03,
  pixel_pitch = 3.6*um 
)

Definition at line 74 of file Image2D.py.

Member Function Documentation

◆ ASM() [1/2]

def ophpy.Image2D.Propagation.ASM (   self,
  color 
)

Definition at line 134 of file Image2D.py.

◆ ASM() [2/2]

def ophpy.Image2D.Propagation.ASM (   self,
  color 
)

Definition at line 134 of file Image2D.py.

◆ fft() [1/2]

def ophpy.Image2D.Propagation.fft (   self,
  f 
)

Definition at line 156 of file Image2D.py.

◆ fft() [2/2]

def ophpy.Image2D.Propagation.fft (   self,
  f 
)

Definition at line 156 of file Image2D.py.

◆ Fresnel() [1/2]

def ophpy.Image2D.Propagation.Fresnel (   self,
  color 
)

Definition at line 110 of file Image2D.py.

◆ Fresnel() [2/2]

def ophpy.Image2D.Propagation.Fresnel (   self,
  color 
)

Definition at line 110 of file Image2D.py.

◆ getMonoImage() [1/2]

def ophpy.Image2D.Propagation.getMonoImage (   self,
  ch,
  fname 
)
Get Single channel image

Definition at line 200 of file Image2D.py.

◆ getMonoImage() [2/2]

def ophpy.Image2D.Propagation.getMonoImage (   self,
  ch,
  fname 
)
Get Single channel image

Definition at line 200 of file Image2D.py.

◆ getRGBImage() [1/2]

def ophpy.Image2D.Propagation.getRGBImage (   self,
  R,
  G,
  B,
  fname,
  type = 'phase' 
)
Get RGB image

Definition at line 190 of file Image2D.py.

◆ getRGBImage() [2/2]

def ophpy.Image2D.Propagation.getRGBImage (   self,
  R,
  G,
  B,
  fname,
  type = 'phase' 
)
Get RGB image

Definition at line 190 of file Image2D.py.

◆ ifft() [1/2]

def ophpy.Image2D.Propagation.ifft (   self,
  f 
)

Definition at line 159 of file Image2D.py.

◆ ifft() [2/2]

def ophpy.Image2D.Propagation.ifft (   self,
  f 
)

Definition at line 159 of file Image2D.py.

◆ normalize() [1/2]

def ophpy.Image2D.Propagation.normalize (   self,
  arr,
  type = 'angle' 
)
normalize

Definition at line 172 of file Image2D.py.

◆ normalize() [2/2]

def ophpy.Image2D.Propagation.normalize (   self,
  arr,
  type = 'angle' 
)
normalize

Definition at line 172 of file Image2D.py.

◆ resizeimg() [1/2]

def ophpy.Image2D.Propagation.resizeimg (   self,
  wvl,
  img 
)
RGB 파장에 맞게 원본 이미지를 리사이징 + zero padding

Definition at line 97 of file Image2D.py.

◆ resizeimg() [2/2]

def ophpy.Image2D.Propagation.resizeimg (   self,
  wvl,
  img 
)
RGB 파장에 맞게 원본 이미지를 리사이징 + zero padding

Definition at line 97 of file Image2D.py.

◆ SSB() [1/2]

def ophpy.Image2D.Propagation.SSB (   self,
  ch 
)
single side band encoding

Definition at line 162 of file Image2D.py.

◆ SSB() [2/2]

def ophpy.Image2D.Propagation.SSB (   self,
  ch 
)
single side band encoding

Definition at line 162 of file Image2D.py.

◆ zeropadding() [1/2]

def ophpy.Image2D.Propagation.zeropadding (   self,
  img,
  nzpw 
)

Definition at line 87 of file Image2D.py.

◆ zeropadding() [2/2]

def ophpy.Image2D.Propagation.zeropadding (   self,
  img,
  nzpw 
)

Definition at line 87 of file Image2D.py.

Member Data Documentation

◆ h

ophpy.Image2D.Propagation.h

Definition at line 83 of file Image2D.py.

◆ imagein

ophpy.Image2D.Propagation.imagein

Definition at line 76 of file Image2D.py.

◆ pp

ophpy.Image2D.Propagation.pp

Definition at line 84 of file Image2D.py.

◆ scale

ophpy.Image2D.Propagation.scale

Definition at line 85 of file Image2D.py.

◆ thetaX

ophpy.Image2D.Propagation.thetaX

Definition at line 77 of file Image2D.py.

◆ thetaY

ophpy.Image2D.Propagation.thetaY

Definition at line 78 of file Image2D.py.

◆ w

ophpy.Image2D.Propagation.w

Definition at line 82 of file Image2D.py.

◆ wvl_B

ophpy.Image2D.Propagation.wvl_B

Definition at line 81 of file Image2D.py.

◆ wvl_G

ophpy.Image2D.Propagation.wvl_G

Definition at line 80 of file Image2D.py.

◆ wvl_R

ophpy.Image2D.Propagation.wvl_R

Definition at line 79 of file Image2D.py.

◆ zz

ophpy.Image2D.Propagation.zz

Definition at line 75 of file Image2D.py.


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