Create Anaglyph (GIMP Plugin)
Main page: https://github.com/goto40/create_anaglyph
|
This class represents an algorithm to compute two stereo images from gimp layers and to combine them to an anaglyph. More...
Public Member Functions | |
def | __init__ (self, f1=1.0, f2=1.0) |
Creates an anaglyph algorithm. More... | |
def | shiftx (self, img, d) |
Helper function to shift an image with a given disparity value. More... | |
def | shiftx_ext (self, img, d) |
Helper function to shift an image with a given disparity map. More... | |
def | update (self, layer_data, d) |
Update the image using a single depth value. More... | |
def | update_ext (self, layer_data, d) |
Update the image using a depth map. More... | |
def | get_result (self, swap_lr) |
Combines the result collected so far (left and right image) as anaglyph. More... | |
Public Attributes | |
f1 | |
f2 | |
imsum | |
left | |
right | |
aleft | |
aright | |
This class represents an algorithm to compute two stereo images from gimp layers and to combine them to an anaglyph.
Definition at line 34 of file anaglyph_algorithm.py.
def anaglyph_algorithm.Anaglyph.__init__ | ( | self, | |
f1 = 1.0 , |
|||
f2 = 1.0 |
|||
) |
Creates an anaglyph algorithm.
f1 | the darkening factor for the left image (1.0 = no modification) |
f2 | the darkening factor for the left image (1.0 = no modification) |
Definition at line 36 of file anaglyph_algorithm.py.
def anaglyph_algorithm.Anaglyph.get_result | ( | self, | |
swap_lr | |||
) |
Combines the result collected so far (left and right image) as anaglyph.
swap_lr | if true the left and right image are swapped. |
Definition at line 122 of file anaglyph_algorithm.py.
def anaglyph_algorithm.Anaglyph.shiftx | ( | self, | |
img, | |||
d | |||
) |
Helper function to shift an image with a given disparity value.
Definition at line 49 of file anaglyph_algorithm.py.
def anaglyph_algorithm.Anaglyph.shiftx_ext | ( | self, | |
img, | |||
d | |||
) |
Helper function to shift an image with a given disparity map.
Definition at line 58 of file anaglyph_algorithm.py.
def anaglyph_algorithm.Anaglyph.update | ( | self, | |
layer_data, | |||
d | |||
) |
Update the image using a single depth value.
layer_data | the layer to be added (as numpy array) |
d | the disparity of the layer |
Definition at line 68 of file anaglyph_algorithm.py.
def anaglyph_algorithm.Anaglyph.update_ext | ( | self, | |
layer_data, | |||
d | |||
) |
Update the image using a depth map.
layer_data | the layer to be added (as numpy array) |
d | the disparity map of the layer |
Definition at line 97 of file anaglyph_algorithm.py.
anaglyph_algorithm.Anaglyph.aleft |
Definition at line 46 of file anaglyph_algorithm.py.
anaglyph_algorithm.Anaglyph.aright |
Definition at line 47 of file anaglyph_algorithm.py.
anaglyph_algorithm.Anaglyph.f1 |
Definition at line 41 of file anaglyph_algorithm.py.
anaglyph_algorithm.Anaglyph.f2 |
Definition at line 42 of file anaglyph_algorithm.py.
anaglyph_algorithm.Anaglyph.imsum |
Definition at line 43 of file anaglyph_algorithm.py.
anaglyph_algorithm.Anaglyph.left |
Definition at line 44 of file anaglyph_algorithm.py.
anaglyph_algorithm.Anaglyph.right |
Definition at line 45 of file anaglyph_algorithm.py.