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::Circle Class Reference

A circle is a DICe::Shape defined by a centroid and radius. More...

#include <DICe_Shape.h>

Inheritance diagram for DICe::Circle:
DICe::Shape

Public Member Functions

 Circle (const int_t centroid_x, const int_t centroid_y, const scalar_t &radius)
 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 of the circle global x-coordinate.
 
int_t centroid_y_
 Center of the circle global y-coordinate.
 
scalar_t radius2_
 Radius of the circle. More...
 
int_t min_x_
 Minimum x global coordinate of the circle.
 
int_t max_x_
 Maximum x global coordinate of the circle.
 
int_t min_y_
 Minimum y global coordinate of the circle.
 
int_t max_y_
 Maximum y global coordinate of the circle.
 

Detailed Description

A circle is a DICe::Shape defined by a centroid and radius.

Constructor & Destructor Documentation

◆ Circle()

DICe::Circle::Circle ( const int_t  centroid_x,
const int_t  centroid_y,
const scalar_t radius 
)

Constructor.

Parameters
centroid_xinteger valued global x-coordinate for the center of the circle
centroid_yinteger valued global y-coordinate for the center of the circle
radiusRadius of the circle

Member Data Documentation

◆ radius2_

scalar_t DICe::Circle::radius2_
private

Radius of the circle.

Radius of the circle squared