EMAN2
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...

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.

## ◆ 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
 xx The x coordinate value. yy The y coordinate value. zz The z coordinate value. vv The 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) {}

## ◆ 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.

## ◆ value

 float EMAN::Pixel::value

## ◆ x

 int EMAN::Pixel::x

Definition at line 480 of file geometry.h.

## ◆ y

 int EMAN::Pixel::y

Definition at line 481 of file geometry.h.

## ◆ z

 int EMAN::Pixel::z

Definition at line 482 of file geometry.h.

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