Classes | |
class | ChannelMeasure |
A Measure class that works on a single channel. More... | |
class | ImageMeasure |
A Measure class that works on a RGB image. More... | |
Functions | |
def | linearise |
Change a 2D grid into a 1D list. | |
def | gridify |
Converts a 1D list into a 2D grid. | |
def | max_tuple |
Takes the pointwise maximum of two tuples. | |
def | max_grid |
Takes the point-wise maximum of a list of grids. | |
def | render_node |
Renders a node into a grid. | |
def | render_outline |
Renders a tree into a grid. |
def quadtree_image.gridify | ( | lst, | ||
dims | ||||
) |
def quadtree_image.linearise | ( | grid | ) |
def quadtree_image.max_grid | ( | grids | ) |
def quadtree_image.max_tuple | ( | tuple1, | ||
tuple2 | ||||
) |
Takes the pointwise maximum of two tuples.
For example, given the two tuples (100, 3, 50) and (20, 20, 20), the result is the tuple (100, 20, 50).
Definition at line 30 of file quadtree_image.py.
def quadtree_image.render_node | ( | grid, | ||
node, | ||||
outline = False , |
||||
interpolate = False | ||||
) |
def quadtree_image.render_outline | ( | tree, | ||
factor, | ||||
outline = False , |
||||
interpolate = False | ||||
) |