Digital Image Correlation Engine  Version 1.0
A modular, high-performance, image correlation tool used to compute full-field displacements and strains from digital images
Public Member Functions | Private Attributes | List of all members
DICe::Rectangle Class Reference

A rectangle is a DICe::Shape defined by a centroid and an x and y size. More...

#include <DICe_Shape.h>

Inheritance diagram for DICe::Rectangle:
DICe::Shape

Public Member Functions

 Rectangle (const int_t centroid_x, const int_t centroid_y, const int_t width, const int_t height)
 Constructor. More...
 
virtual std::set< std::pair< int_t, int_t > > get_owned_pixels (Teuchos::RCP< Local_Shape_Function > shape_function=Teuchos::null, const int_t cx=0, const int_t cy=0, const scalar_t skin_factor=1.0) const
 See base class documentation.
 
virtual void deactivate_pixels (const int_t size, bool *pixel_flags, int_t *x_coords, int_t *y_coords) const
 See base class documentation.
 

Private Attributes

int_t centroid_x_
 Center global x-coordinate.
 
int_t centroid_y_
 Center global y-coordinate.
 
int_t width_
 Width of the rectangle.
 
int_t height_
 Height of the rectangle.
 
int_t origin_x_
 Origin is the upper left corner (needed if the rectangle is of an even dimension)
 
int_t origin_y_
 Origin is the upper left corner.
 

Detailed Description

A rectangle is a DICe::Shape defined by a centroid and an x and y size.

Constructor & Destructor Documentation

◆ Rectangle()

DICe::Rectangle::Rectangle ( const int_t  centroid_x,
const int_t  centroid_y,
const int_t  width,
const int_t  height 
)

Constructor.

Parameters
centroid_xinteger valued global x-coordinate for the center
centroid_yinteger valued global y-coordinate for the center
widthinteger valued width of the rectangle
heightinteger valued height of the rectangle