gucoordinates
Public Attributes | List of all members
gu_pixel_coordinate Struct Reference

A gu_pixel_coordinate represents the coordinate of a pixel within an image. More...

#include <pixel_coordinate.h>

Inheritance diagram for gu_pixel_coordinate:
Inheritance graph
Collaboration diagram for gu_pixel_coordinate:
Collaboration graph

Public Attributes

pixels_t x
 The x coordinate of the pixel within the image. More...
 
pixels_t y
 The y coordinate of the pixel within the image. More...
 
pixels_u res_width
 The width of the resolution of the image. More...
 
pixels_u res_height
 The height of the resolution of the image. More...
 

Detailed Description

A gu_pixel_coordinate represents the coordinate of a pixel within an image.

Definition at line 73 of file pixel_coordinate.h.

Member Data Documentation

◆ res_height

pixels_u gu_pixel_coordinate::res_height

◆ res_width

pixels_u gu_pixel_coordinate::res_width

◆ x

pixels_t gu_pixel_coordinate::x

The x coordinate of the pixel within the image.

The x coordinate must be in the range of:

-floor((res_width - 1) / 2) <= x <= ceil((res_width - 1) / 2)

Definition at line 82 of file pixel_coordinate.h.

Referenced by CGTEST::PixelCoordinateCPPTests::cchange(), gu_pixel_coordinate_equals(), CGTEST::GUCoordinatesTests< Class >::pixel_equal(), px_coord_to_cam_coord(), px_coord_to_pct_coord(), GU::PixelCoordinate::set_x(), and GU::PixelCoordinate::x().

◆ y

pixels_t gu_pixel_coordinate::y

The y coordinate of the pixel within the image.

The y coordinate must be in the range of:

-floor((res_height - 1) / 2) <= x <= ceil((res_height - 1) / 2)

Definition at line 91 of file pixel_coordinate.h.

Referenced by CGTEST::PixelCoordinateCPPTests::cchange(), gu_pixel_coordinate_equals(), CGTEST::GUCoordinatesTests< Class >::pixel_equal(), px_coord_to_cam_coord(), px_coord_to_pct_coord(), GU::PixelCoordinate::set_y(), and GU::PixelCoordinate::y().


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