Public Member Functions | |
| None | __init__ (self) |
| None | __init__ (self, int resX, int resY) |
| None | __init__ (self, ConstMatrix_float m) |
| None | __init__ (self, ConstDistanceMap arg0) |
| ConstDistanceMap | __isub__ (self, ConstDistanceMap rhs) |
| DistanceMap | assign (self, ConstDistanceMap other) |
| None | clear (self) |
| float | data (self) |
| float | data (ConstDistanceMap self) |
| float | getValue (self, int x, int y) |
| float | getValue (self, int i) |
| float | getValue (ConstDistanceMap self, int x, int y) |
| float | getValue (ConstDistanceMap self, int i) |
| None | invalidateAll (self) |
| ConstDistanceMap | mergeMax (self, ConstDistanceMap rhs) |
| ConstDistanceMap | mergeMin (self, ConstDistanceMap rhs) |
| None | negate (self) |
| None | set (self, int x, int y, float val) |
| None | set (self, int i, float val) |
| None | set (self, Const_std_vector_float data) |
| None | unset (self, int x, int y) |
| None | unset (self, int i) |
| Public Member Functions inherited from mrmeshpy.ConstDistanceMap | |
| __init__ (self, *args, **kwargs) | |
| DistanceMap | __sub__ (self, ConstDistanceMap rhs) |
| float | get (self, int x, int y) |
| float | get (self, int i) |
| DistanceMap | getDerivativeMap (self) |
| float | getInterpolated (self, float x, float y) |
| std_vector_std_pair_unsigned_long_unsigned_long | getLocalMaximums (self) |
| tuple[int, int] | getMaxIndex (self) |
| tuple[int, int] | getMinIndex (self) |
| tuple[float, float] | getMinMaxValues (self) |
| tuple[DistanceMap, DistanceMap] | getXYDerivativeMaps (self) |
| int | heapBytes (self) |
| bool | isInBounds (self, int x, int y) |
| bool | isInBounds (self, int i) |
| bool | isValid (self, int x, int y) |
| bool | isValid (self, int i) |
| DistanceMap | max (self, ConstDistanceMap rhs) |
| DistanceMap | min (self, ConstDistanceMap rhs) |
| int | numPoints (self) |
| int | resX (self) |
| int | resY (self) |
| Vector3f | unproject (self, int x, int y, ConstAffineXf3f toWorld) |
| Vector3f | unprojectInterpolated (self, float x, float y, ConstAffineXf3f toWorld) |
| Public Member Functions inherited from mrmeshpy.ConstRectIndexer | |
| __init__ (self, *args, **kwargs) | |
| bool | areNeigbors (self, ConstPixelId v0, ConstPixelId v1) |
| bool | areNeigbors (self, ConstVector2i pos0, ConstVector2i pos1) |
| ConstVector2i | dims (self) |
| PixelId | getNeighbor (self, ConstPixelId v, OutEdge2 toNei) |
| PixelId | getNeighbor (self, ConstPixelId v, ConstVector2i pos, OutEdge2 toNei) |
| int | size (self) |
| int | toIndex (self, ConstVector2i pos) |
| PixelId | toPixelId (self, ConstVector2i pos) |
| Vector2i | toPos (self, ConstPixelId id) |
| Vector2i | toPos (self, int id) |
| Public Member Functions inherited from mrmeshpy.RectIndexer | |
| None | __init__ (self) |
| None | __init__ (self, ConstVector2i dims) |
| None | __init__ (self, ConstRectIndexer arg0) |
| None | resize (self, ConstVector2i dims) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| Static Public Member Functions inherited from mrmeshpy.RectIndexer | |
| None | __init__ (*args, **kwargs) |
Additional Inherited Members | |
| Static Public Attributes inherited from mrmeshpy.ConstDistanceMap | |
| typing | NOT_VALID_VALUE = -3.4028234663852886e+38 |
Generated from: MR::DistanceMap Aliases: std_shared_ptr_DistanceMap this class allows to store distances from the plane in particular pixels validVerts keeps only pixels with mesh-intersecting rays from them
|
static |
| None mrmeshpy.DistanceMap.__init__ | ( | self | ) |
| None mrmeshpy.DistanceMap.__init__ | ( | self, | |
| int | resX, | ||
| int | resY ) |
Preferable constructor with resolution arguments Access by the index (i) is equal to (y*resX + x)
| None mrmeshpy.DistanceMap.__init__ | ( | self, | |
| ConstMatrix_float | m ) |
make from 2d array
| None mrmeshpy.DistanceMap.__init__ | ( | self, | |
| ConstDistanceMap | arg0 ) |
Implicit copy constructor.
| ConstDistanceMap mrmeshpy.DistanceMap.__isub__ | ( | self, | |
| ConstDistanceMap | rhs ) |
replaces values with cell-wise subtracted values. Invalid values remain only if both corresponding cells are invalid
| DistanceMap mrmeshpy.DistanceMap.assign | ( | self, | |
| ConstDistanceMap | other ) |
Reimplemented from mrmeshpy.RectIndexer.
| None mrmeshpy.DistanceMap.clear | ( | self | ) |
clears data, sets resolutions to zero
| float mrmeshpy.DistanceMap.data | ( | ConstDistanceMap | self | ) |
Reimplemented from mrmeshpy.ConstDistanceMap.
| float mrmeshpy.DistanceMap.data | ( | self | ) |
Reimplemented from mrmeshpy.ConstDistanceMap.
| float mrmeshpy.DistanceMap.getValue | ( | ConstDistanceMap | self, |
| int | i ) |
Reimplemented from mrmeshpy.ConstDistanceMap.
| float mrmeshpy.DistanceMap.getValue | ( | ConstDistanceMap | self, |
| int | x, | ||
| int | y ) |
Reimplemented from mrmeshpy.ConstDistanceMap.
| float mrmeshpy.DistanceMap.getValue | ( | self, | |
| int | i ) |
Reimplemented from mrmeshpy.ConstDistanceMap.
| float mrmeshpy.DistanceMap.getValue | ( | self, | |
| int | x, | ||
| int | y ) |
returns value in (X,Y) element without check on valid use this only if you sure that distance map has no invalid values or for serialization
Reimplemented from mrmeshpy.ConstDistanceMap.
| None mrmeshpy.DistanceMap.invalidateAll | ( | self | ) |
invalidates all elements
| ConstDistanceMap mrmeshpy.DistanceMap.mergeMax | ( | self, | |
| ConstDistanceMap | rhs ) |
replaces values with cell-wise maximum values. Invalid values remain only if both corresponding cells are invalid
| ConstDistanceMap mrmeshpy.DistanceMap.mergeMin | ( | self, | |
| ConstDistanceMap | rhs ) |
replaces values with cell-wise minimum values. Invalid values remain only if both corresponding cells are invalid
| None mrmeshpy.DistanceMap.negate | ( | self | ) |
replaces every valid element in the map with its negative value
| None mrmeshpy.DistanceMap.set | ( | self, | |
| Const_std_vector_float | data ) |
sets all values at one time
| None mrmeshpy.DistanceMap.set | ( | self, | |
| int | i, | ||
| float | val ) |
sets value in index element (the coord must be valid, UB otherwise)
| None mrmeshpy.DistanceMap.set | ( | self, | |
| int | x, | ||
| int | y, | ||
| float | val ) |
sets value in (X,Y) element (the coords must be valid, UB otherwise)
| None mrmeshpy.DistanceMap.unset | ( | self, | |
| int | i ) |
invalidates value in index element (the coord must be valid, UB otherwise)
| None mrmeshpy.DistanceMap.unset | ( | self, | |
| int | x, | ||
| int | y ) |
invalidates value in (X,Y) element (the coords must be valid, UB otherwise)