EMAN2
Public Member Functions | Public Attributes | List of all members
EMAN::Pixel Class Reference

Pixel describes a 3D pixel's coordinates and its intensity value. More...

#include <geometry.h>

Public Member Functions

 Pixel (int xx, int yy, int zz, float vv)
 Construct a Pixel object given its 3D coordinates and its value. More...
 
 Pixel (const Pixel &p)
 
IntPoint get_point () const
 Get the pixel's coordinates as an integer point. More...
 
float get_value () const
 Get the pixel's intensity value. More...
 

Public Attributes

int x
 
int y
 
int z
 
float value
 

Detailed Description

Pixel describes a 3D pixel's coordinates and its intensity value.

Definition at line 452 of file geometry.h.

Constructor & Destructor Documentation

◆ Pixel() [1/2]

EMAN::Pixel::Pixel ( int  xx,
int  yy,
int  zz,
float  vv 
)
inline

Construct a Pixel object given its 3D coordinates and its value.

Parameters
xxThe x coordinate value.
yyThe y coordinate value.
zzThe z coordinate value.
vvThe pixel's intensity value.

Definition at line 460 of file geometry.h.

460: x(xx), y(yy), z(zz), value(vv) { }
float value
Definition: geometry.h:483

◆ Pixel() [2/2]

EMAN::Pixel::Pixel ( const Pixel p)
inline

Definition at line 462 of file geometry.h.

462: x(p.x), y(p.y), z(p.z), value(p.value) {}

Member Function Documentation

◆ get_point()

IntPoint EMAN::Pixel::get_point ( ) const
inline

Get the pixel's coordinates as an integer point.

Returns
An integer point containing the pixel's coordinates.

Definition at line 467 of file geometry.h.

468 {
469 return IntPoint(x, y, z);
470 }

References x, y, and z.

◆ get_value()

float EMAN::Pixel::get_value ( ) const
inline

Get the pixel's intensity value.

Returns
The pixel's intensity value.

Definition at line 475 of file geometry.h.

476 {
477 return value;
478 }

References value.

Member Data Documentation

◆ value

float EMAN::Pixel::value

◆ x

int EMAN::Pixel::x

◆ y

int EMAN::Pixel::y

◆ z

int EMAN::Pixel::z

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