Create Anaglyph (GIMP Plugin)
Main page: https://github.com/goto40/create_anaglyph
|
This class is responsible to compute the depth of a layer. More...
Public Member Functions | |
def | __init__ (self, gimp_image, mindisp, maxdisp) |
Creates a DepthAlgo. More... | |
def | is_depth_map (self, gimp_layer) |
Determines if a layer is a depth map. More... | |
def | has_map (self, gimp_layer) |
def | has_reldepthmap (self, gimp_layer) |
Determines if a layer has (uses) a depth map as relative map (relative depth values between the neighboring layers) More... | |
def | has_fixdepthmap (self, gimp_layer) |
Determines if a layer has (uses) a depth map as fixed map fixed depth values) More... | |
def | has_depth (self, gimp_layer) |
Determines if a used depth is specified for the layer. More... | |
def | get_disparity (self, gimp_layer) |
Determines the depth value or the map of depth values of a layer. More... | |
Public Attributes | |
gimp_image | |
mindisp | |
maxdisp | |
n | |
depthmaps | |
normallayers | |
This class is responsible to compute the depth of a layer.
This can be a single depth value or a depth map.
Definition at line 4 of file depth_algorithm.py.
def depth_algorithm.DepthAlgo.__init__ | ( | self, | |
gimp_image, | |||
mindisp, | |||
maxdisp | |||
) |
Creates a DepthAlgo.
gimp_image | the gimp image to be processed |
min_disp | the minimum disparity to be processed (relative to image width) |
max_disp | the maximum disparity to be processed (relative to image width) |
Definition at line 8 of file depth_algorithm.py.
def depth_algorithm.DepthAlgo.get_disparity | ( | self, | |
gimp_layer | |||
) |
Determines the depth value or the map of depth values of a layer.
gimp_layer | the layer to be investigated. the depth value (as absolute disparity in pixels) either as single value or as array of values. |
Definition at line 87 of file depth_algorithm.py.
def depth_algorithm.DepthAlgo.has_depth | ( | self, | |
gimp_layer | |||
) |
Determines if a used depth is specified for the layer.
gimp_layer | the layer to be investigated. |
Definition at line 75 of file depth_algorithm.py.
def depth_algorithm.DepthAlgo.has_fixdepthmap | ( | self, | |
gimp_layer | |||
) |
Determines if a layer has (uses) a depth map as fixed map fixed depth values)
gimp_layer | the layer to be investigated. |
Definition at line 66 of file depth_algorithm.py.
def depth_algorithm.DepthAlgo.has_map | ( | self, | |
gimp_layer | |||
) |
gimp_layer | the layer to be investigated. |
Definition at line 50 of file depth_algorithm.py.
def depth_algorithm.DepthAlgo.has_reldepthmap | ( | self, | |
gimp_layer | |||
) |
Determines if a layer has (uses) a depth map as relative map (relative depth values between the neighboring layers)
gimp_layer | the layer to be investigated. |
Definition at line 57 of file depth_algorithm.py.
def depth_algorithm.DepthAlgo.is_depth_map | ( | self, | |
gimp_layer | |||
) |
Determines if a layer is a depth map.
gimp_layer | the layer to be investigated. |
Definition at line 40 of file depth_algorithm.py.
depth_algorithm.DepthAlgo.depthmaps |
Definition at line 19 of file depth_algorithm.py.
depth_algorithm.DepthAlgo.gimp_image |
Definition at line 15 of file depth_algorithm.py.
depth_algorithm.DepthAlgo.maxdisp |
Definition at line 17 of file depth_algorithm.py.
depth_algorithm.DepthAlgo.mindisp |
Definition at line 16 of file depth_algorithm.py.
depth_algorithm.DepthAlgo.n |
Definition at line 18 of file depth_algorithm.py.
depth_algorithm.DepthAlgo.normallayers |
Definition at line 20 of file depth_algorithm.py.