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

Public Member Functions

Color __getitem__ (self, Vector2i p)
 
Color __getitem__ (self, Vector2i p)
 
None __init__ (self)
 
None __init__ (self, Image arg0)
 
None __init__ (self, std_vector_Color pixels, Vector2i resolution)
 
None __setitem__ (self, Vector2i arg0, Color arg1)
 
int heapBytes (self)
 
Color sample (self, FilterType filter, Vector2f pos)
 
Color sampleBilinear (self, Vector2f pos)
 
Color sampleDiscrete (self, Vector2f pos)
 

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

◆ __getitem__() [1/2]

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

◆ __getitem__() [2/2]

Color mrmeshpy.Image.__getitem__ ( self,
Vector2i p )

◆ __setitem__()

None mrmeshpy.Image.__setitem__ ( self,
Vector2i arg0,
Color arg1 )

◆ 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: