Public Member Functions | Properties | List of all members
ImagePlane Class Reference

Plane of an image with a specific index. More...

Inherits object.

Public Member Functions

float get_pixel (self, cvb.Point2D position)
 Gets the pixel value at the given position (as float). More...
 
cvb.Image map (self)
 Create a map from a single image plane, that shares its memory with the original plane. More...
 

Properties

 data_type = property
 cvb.DataType: Data type descriptor for this plane. More...
 
 plane = property
 int: Plane index in the image, to which this plane refers to. More...
 
 rank = property
 int: The number of dimensions of this plane. More...
 

Detailed Description

Plane of an image with a specific index.

Implicitly convert a plane to an image plane.

Parameters

plane : cvb.Plane Plane to convert to image plane. Plane must be 2D.

Member Function Documentation

◆ get_pixel()

float get_pixel (   self,
cvb.Point2D  position 
)

Gets the pixel value at the given position (as float).

Parameters

position : cvb.Point2D Pixel position.

Returns

float The pixel value.

◆ map()

cvb.Image map (   self)

Create a map from a single image plane, that shares its memory with the original plane.

Returns

cvb.Image The mapped image.

Property Documentation

◆ data_type

data_type = property
static

cvb.DataType: Data type descriptor for this plane.

◆ plane

plane = property
static

int: Plane index in the image, to which this plane refers to.

◆ rank

rank = property
static

int: The number of dimensions of this plane.