Openholo
v4.2
Open Source Digital Holographic Library
|
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 | |
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.
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.
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.
def ophpy.Image2D.Propagation.ASM | ( | self, | |
color | |||
) |
Definition at line 134 of file Image2D.py.
def ophpy.Image2D.Propagation.ASM | ( | self, | |
color | |||
) |
Definition at line 134 of file Image2D.py.
def ophpy.Image2D.Propagation.fft | ( | self, | |
f | |||
) |
Definition at line 156 of file Image2D.py.
def ophpy.Image2D.Propagation.fft | ( | self, | |
f | |||
) |
Definition at line 156 of file Image2D.py.
def ophpy.Image2D.Propagation.Fresnel | ( | self, | |
color | |||
) |
Definition at line 110 of file Image2D.py.
def ophpy.Image2D.Propagation.Fresnel | ( | self, | |
color | |||
) |
Definition at line 110 of file Image2D.py.
def ophpy.Image2D.Propagation.getMonoImage | ( | self, | |
ch, | |||
fname | |||
) |
Get Single channel image
Definition at line 200 of file Image2D.py.
def ophpy.Image2D.Propagation.getMonoImage | ( | self, | |
ch, | |||
fname | |||
) |
Get Single channel image
Definition at line 200 of file Image2D.py.
def ophpy.Image2D.Propagation.getRGBImage | ( | self, | |
R, | |||
G, | |||
B, | |||
fname, | |||
type = 'phase' |
|||
) |
Get RGB image
Definition at line 190 of file Image2D.py.
def ophpy.Image2D.Propagation.getRGBImage | ( | self, | |
R, | |||
G, | |||
B, | |||
fname, | |||
type = 'phase' |
|||
) |
Get RGB image
Definition at line 190 of file Image2D.py.
def ophpy.Image2D.Propagation.ifft | ( | self, | |
f | |||
) |
Definition at line 159 of file Image2D.py.
def ophpy.Image2D.Propagation.ifft | ( | self, | |
f | |||
) |
Definition at line 159 of file Image2D.py.
def ophpy.Image2D.Propagation.normalize | ( | self, | |
arr, | |||
type = 'angle' |
|||
) |
normalize
Definition at line 172 of file Image2D.py.
def ophpy.Image2D.Propagation.normalize | ( | self, | |
arr, | |||
type = 'angle' |
|||
) |
normalize
Definition at line 172 of file Image2D.py.
def ophpy.Image2D.Propagation.resizeimg | ( | self, | |
wvl, | |||
img | |||
) |
RGB 파장에 맞게 원본 이미지를 리사이징 + zero padding
Definition at line 97 of file Image2D.py.
def ophpy.Image2D.Propagation.resizeimg | ( | self, | |
wvl, | |||
img | |||
) |
RGB 파장에 맞게 원본 이미지를 리사이징 + zero padding
Definition at line 97 of file Image2D.py.
def ophpy.Image2D.Propagation.SSB | ( | self, | |
ch | |||
) |
single side band encoding
Definition at line 162 of file Image2D.py.
def ophpy.Image2D.Propagation.SSB | ( | self, | |
ch | |||
) |
single side band encoding
Definition at line 162 of file Image2D.py.
def ophpy.Image2D.Propagation.zeropadding | ( | self, | |
img, | |||
nzpw | |||
) |
Definition at line 87 of file Image2D.py.
def ophpy.Image2D.Propagation.zeropadding | ( | self, | |
img, | |||
nzpw | |||
) |
Definition at line 87 of file Image2D.py.
ophpy.Image2D.Propagation.h |
Definition at line 83 of file Image2D.py.
ophpy.Image2D.Propagation.imagein |
Definition at line 76 of file Image2D.py.
ophpy.Image2D.Propagation.pp |
Definition at line 84 of file Image2D.py.
ophpy.Image2D.Propagation.scale |
Definition at line 85 of file Image2D.py.
ophpy.Image2D.Propagation.thetaX |
Definition at line 77 of file Image2D.py.
ophpy.Image2D.Propagation.thetaY |
Definition at line 78 of file Image2D.py.
ophpy.Image2D.Propagation.w |
Definition at line 82 of file Image2D.py.
ophpy.Image2D.Propagation.wvl_B |
Definition at line 81 of file Image2D.py.
ophpy.Image2D.Propagation.wvl_G |
Definition at line 80 of file Image2D.py.
ophpy.Image2D.Propagation.wvl_R |
Definition at line 79 of file Image2D.py.
ophpy.Image2D.Propagation.zz |
Definition at line 75 of file Image2D.py.