Public Member Functions | |
None | __init__ (self) |
None | __init__ (self, Image arg0) |
None | __init__ (self, std_vector_Color pixels, Vector2i resolution) |
int | heapBytes (self) |
Color | sample (self, FilterType filter, Vector2f pos) |
Color | sampleBilinear (self, Vector2f pos) |
Color | sampleDiscrete (self, Vector2f pos) |
Protected Member Functions | |
Color | _Subscript (self, Vector2i p) |
Color | _Subscript (self, Vector2i p) |
Static Protected Member Functions | |
_pybind11_conduit_v1_ (*args, **kwargs) | |
Generated from: MR::Image struct to hold Image data \\ingroup BasicStructuresGroup
None mrmeshpy.Image.__init__ | ( | self | ) |
Implicit default constructor.
Reimplemented in mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.
None mrmeshpy.Image.__init__ | ( | self, | |
Image | arg0 ) |
Implicit copy constructor.
Reimplemented in mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.
None mrmeshpy.Image.__init__ | ( | self, | |
std_vector_Color | pixels, | ||
Vector2i | resolution ) |
Implicit aggregate constructor.
Reimplemented in mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.
|
staticprotected |
Reimplemented in mrmeshpy.MeshTexture.
fetches some texture element specified by integer coordinates
int mrmeshpy.Image.heapBytes | ( | self | ) |
returns the amount of memory this object occupies on heap
Color mrmeshpy.Image.sample | ( | self, | |
FilterType | filter, | ||
Vector2f | pos ) |
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns sampled color at it according to given filter
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns bilinear interpolated color at it
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns the color of the closest pixel