Openholo
v4.2
Open Source Digital Holographic Library
|
Public Member Functions | |
def | __init__ (self, RGBimg, Depthimg, f=1, angleX=0, angleY=0, Red=639 *nm, Green=525 *nm, Blue=463 *nm, SLM_width=3840, multicore=True, SLM_height=2160, scale=0.03, pixel_pitch=3.6 *um, zeropadding=3840, field_length=1000e-3, near_depth=800e-3, far_depth=1200e-3, DepthQuantization=256) |
def | resizeimg (self, wvl, img) |
def | Prop (self, color, image, amap, n) |
def | prop_R (self, n) |
def | prop_G (self, n) |
def | prop_B (self, n) |
def | parallelCal (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='angle') |
def | getMonoImage (self, ch, fname) |
def | __init__ (self, RGBimg, Depthimg, f=1, angleX=0, angleY=0, Red=639 *nm, Green=525 *nm, Blue=463 *nm, SLM_width=3840, multicore=True, SLM_height=2160, scale=0.03, pixel_pitch=3.6 *um, zeropadding=3840, field_length=1000e-3, near_depth=800e-3, far_depth=1200e-3, DepthQuantization=256) |
def | resizeimg (self, wvl, img) |
def | Prop (self, color, image, amap, n) |
def | prop_R (self, n) |
def | prop_G (self, n) |
def | prop_B (self, n) |
def | parallelCal (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='angle') |
def | getMonoImage (self, ch, fname) |
Public Attributes | |
zz | |
imagein | |
depthimg | |
thetaX | |
thetaY | |
wvl_R | |
wvl_G | |
wvl_B | |
w | |
h | |
pp | |
scale | |
UD | |
DQ | |
nzp | |
img_R | |
img_G | |
img_B | |
num_cpu | |
num_point | |
Get Fringe pattern by 2D Depth map image and RGB color image Parameters imgpath : image path f : propagation length angle : phase shift angle Red, Green, Blue : wavelength scale : scaling factor Depth map parameters field_len = 1000e-3 near_depth = 800e-3 far_depth = 1200e-3 Depth quantization (깊이 계조) DQ = 256 # 0 to 255 Unit depth UD = -(far_depth - near_depth) / 256 http://openholo.org/
Definition at line 60 of file Depthmap.py.
def ophpy.Depthmap.Propagation.__init__ | ( | self, | |
RGBimg, | |||
Depthimg, | |||
f = 1 , |
|||
angleX = 0 , |
|||
angleY = 0 , |
|||
Red = 639*nm , |
|||
Green = 525*nm , |
|||
Blue = 463*nm , |
|||
SLM_width = 3840 , |
|||
multicore = True , |
|||
SLM_height = 2160 , |
|||
scale = 0.03 , |
|||
pixel_pitch = 3.6*um , |
|||
zeropadding = 3840 , |
|||
field_length = 1000e-3 , |
|||
near_depth = 800e-3 , |
|||
far_depth = 1200e-3 , |
|||
DepthQuantization = 256 |
|||
) |
Definition at line 86 of file Depthmap.py.
def ophpy.Depthmap.Propagation.__init__ | ( | self, | |
RGBimg, | |||
Depthimg, | |||
f = 1 , |
|||
angleX = 0 , |
|||
angleY = 0 , |
|||
Red = 639*nm , |
|||
Green = 525*nm , |
|||
Blue = 463*nm , |
|||
SLM_width = 3840 , |
|||
multicore = True , |
|||
SLM_height = 2160 , |
|||
scale = 0.03 , |
|||
pixel_pitch = 3.6*um , |
|||
zeropadding = 3840 , |
|||
field_length = 1000e-3 , |
|||
near_depth = 800e-3 , |
|||
far_depth = 1200e-3 , |
|||
DepthQuantization = 256 |
|||
) |
Definition at line 86 of file Depthmap.py.
def ophpy.Depthmap.Propagation.fft | ( | self, | |
f | |||
) |
Definition at line 183 of file Depthmap.py.
def ophpy.Depthmap.Propagation.fft | ( | self, | |
f | |||
) |
Definition at line 183 of file Depthmap.py.
def ophpy.Depthmap.Propagation.getMonoImage | ( | self, | |
ch, | |||
fname | |||
) |
Get Single channel image
Definition at line 227 of file Depthmap.py.
def ophpy.Depthmap.Propagation.getMonoImage | ( | self, | |
ch, | |||
fname | |||
) |
Get Single channel image
Definition at line 227 of file Depthmap.py.
def ophpy.Depthmap.Propagation.getRGBImage | ( | self, | |
R, | |||
G, | |||
B, | |||
fname, | |||
type = 'angle' |
|||
) |
Get RGB image
Definition at line 217 of file Depthmap.py.
def ophpy.Depthmap.Propagation.getRGBImage | ( | self, | |
R, | |||
G, | |||
B, | |||
fname, | |||
type = 'angle' |
|||
) |
Get RGB image
Definition at line 217 of file Depthmap.py.
def ophpy.Depthmap.Propagation.ifft | ( | self, | |
f | |||
) |
Definition at line 186 of file Depthmap.py.
def ophpy.Depthmap.Propagation.ifft | ( | self, | |
f | |||
) |
Definition at line 186 of file Depthmap.py.
def ophpy.Depthmap.Propagation.normalize | ( | self, | |
arr, | |||
type = 'angle' |
|||
) |
normalize
Definition at line 199 of file Depthmap.py.
def ophpy.Depthmap.Propagation.normalize | ( | self, | |
arr, | |||
type = 'angle' |
|||
) |
normalize
Definition at line 199 of file Depthmap.py.
def ophpy.Depthmap.Propagation.parallelCal | ( | self, | |
color | |||
) |
Definition at line 164 of file Depthmap.py.
def ophpy.Depthmap.Propagation.parallelCal | ( | self, | |
color | |||
) |
Definition at line 164 of file Depthmap.py.
def ophpy.Depthmap.Propagation.Prop | ( | self, | |
color, | |||
image, | |||
amap, | |||
n | |||
) |
Definition at line 124 of file Depthmap.py.
def ophpy.Depthmap.Propagation.Prop | ( | self, | |
color, | |||
image, | |||
amap, | |||
n | |||
) |
Definition at line 124 of file Depthmap.py.
def ophpy.Depthmap.Propagation.prop_B | ( | self, | |
n | |||
) |
Definition at line 158 of file Depthmap.py.
def ophpy.Depthmap.Propagation.prop_B | ( | self, | |
n | |||
) |
Definition at line 158 of file Depthmap.py.
def ophpy.Depthmap.Propagation.prop_G | ( | self, | |
n | |||
) |
Definition at line 152 of file Depthmap.py.
def ophpy.Depthmap.Propagation.prop_G | ( | self, | |
n | |||
) |
Definition at line 152 of file Depthmap.py.
def ophpy.Depthmap.Propagation.prop_R | ( | self, | |
n | |||
) |
Definition at line 146 of file Depthmap.py.
def ophpy.Depthmap.Propagation.prop_R | ( | self, | |
n | |||
) |
Definition at line 146 of file Depthmap.py.
def ophpy.Depthmap.Propagation.resizeimg | ( | self, | |
wvl, | |||
img | |||
) |
RGB 파장에 맞게 원본 이미지를 리사이징 + zero padding
Definition at line 113 of file Depthmap.py.
def ophpy.Depthmap.Propagation.resizeimg | ( | self, | |
wvl, | |||
img | |||
) |
RGB 파장에 맞게 원본 이미지를 리사이징 + zero padding
Definition at line 113 of file Depthmap.py.
def ophpy.Depthmap.Propagation.SSB | ( | self, | |
ch | |||
) |
single side band encoding
Definition at line 189 of file Depthmap.py.
def ophpy.Depthmap.Propagation.SSB | ( | self, | |
ch | |||
) |
single side band encoding
Definition at line 189 of file Depthmap.py.
ophpy.Depthmap.Propagation.depthimg |
Definition at line 89 of file Depthmap.py.
ophpy.Depthmap.Propagation.DQ |
Definition at line 101 of file Depthmap.py.
ophpy.Depthmap.Propagation.h |
Definition at line 97 of file Depthmap.py.
ophpy.Depthmap.Propagation.imagein |
Definition at line 88 of file Depthmap.py.
ophpy.Depthmap.Propagation.img_B |
Definition at line 105 of file Depthmap.py.
ophpy.Depthmap.Propagation.img_G |
Definition at line 104 of file Depthmap.py.
ophpy.Depthmap.Propagation.img_R |
Definition at line 103 of file Depthmap.py.
ophpy.Depthmap.Propagation.num_cpu |
Definition at line 107 of file Depthmap.py.
ophpy.Depthmap.Propagation.num_point |
Definition at line 110 of file Depthmap.py.
ophpy.Depthmap.Propagation.nzp |
Definition at line 102 of file Depthmap.py.
ophpy.Depthmap.Propagation.pp |
Definition at line 98 of file Depthmap.py.
ophpy.Depthmap.Propagation.scale |
Definition at line 99 of file Depthmap.py.
ophpy.Depthmap.Propagation.thetaX |
Definition at line 91 of file Depthmap.py.
ophpy.Depthmap.Propagation.thetaY |
Definition at line 92 of file Depthmap.py.
ophpy.Depthmap.Propagation.UD |
Definition at line 100 of file Depthmap.py.
ophpy.Depthmap.Propagation.w |
Definition at line 96 of file Depthmap.py.
ophpy.Depthmap.Propagation.wvl_B |
Definition at line 95 of file Depthmap.py.
ophpy.Depthmap.Propagation.wvl_G |
Definition at line 94 of file Depthmap.py.
ophpy.Depthmap.Propagation.wvl_R |
Definition at line 93 of file Depthmap.py.
ophpy.Depthmap.Propagation.zz |
Definition at line 87 of file Depthmap.py.