MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Image Class Reference
+ Inheritance diagram for mrmeshpy.Image:

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)
 

Detailed Description

Generated from:  MR::Image

struct to hold Image data
\\ingroup BasicStructuresGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.Image.__init__ ( self)
Implicit default constructor.

Reimplemented in mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.

◆ __init__() [2/3]

None mrmeshpy.Image.__init__ ( self,
Image arg0 )
Implicit copy constructor.

Reimplemented in mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.

◆ __init__() [3/3]

None mrmeshpy.Image.__init__ ( self,
std_vector_Color pixels,
Vector2i resolution )
Implicit aggregate constructor.

Reimplemented in mrmeshpy.MeshTexture, and mrmeshpy.MeshTexture.

Member Function Documentation

◆ _pybind11_conduit_v1_()

mrmeshpy.Image._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

Reimplemented in mrmeshpy.MeshTexture.

◆ _Subscript() [1/2]

Color mrmeshpy.Image._Subscript ( self,
Vector2i p )
protected
fetches some texture element specified by integer coordinates

◆ _Subscript() [2/2]

Color mrmeshpy.Image._Subscript ( self,
Vector2i p )
protected

◆ heapBytes()

int mrmeshpy.Image.heapBytes ( self)
returns the amount of memory this object occupies on heap

◆ sample()

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

◆ sampleBilinear()

Color mrmeshpy.Image.sampleBilinear ( self,
Vector2f pos )
Given texture position in [0,1]x[0,1] (which is clamped if necessary),
returns bilinear interpolated color at it

◆ sampleDiscrete()

Color mrmeshpy.Image.sampleDiscrete ( self,
Vector2f pos )
Given texture position in [0,1]x[0,1] (which is clamped if necessary),
returns the color of the closest pixel

The documentation for this class was generated from the following file: