ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ImageResizer.Plugins.Faces.DetectionResponse< T > Class Template Reference

Public Member Functions

void PopulateFrom (ImageState s)
 Copies layout information from the given image state to the current instance. Does not populate message or 'features' variables More...
 
AlternateResponseException GetResponseException (string jsonCallback)
 

Static Public Member Functions

static void InjectExceptionHandler (ResponseArgs ra)
 

Public Attributes

float dx
 
float dy
 
float dw
 
float dh
 
float ow
 
float oh
 
float cropx
 
float cropy
 
float cropw
 
float croph
 
List< T > features
 
string message
 

Detailed Description

Definition at line 12 of file DetectionResponse.cs.

Member Function Documentation

void ImageResizer.Plugins.Faces.DetectionResponse< T >.PopulateFrom ( ImageState  s)
inline

Copies layout information from the given image state to the current instance. Does not populate message or 'features' variables

Parameters
s

Definition at line 31 of file DetectionResponse.cs.

31  {
32 
33  this.ow = s.originalSize.Width;
34  this.oh = s.originalSize.Height;
35  this.cropx = s.copyRect.X;
36  this.cropy = s.copyRect.Y;
37  this.cropw = s.copyRect.Width;
38  this.croph = s.copyRect.Height;
39  RectangleF dest = PolygonMath.GetBoundingBox(s.layout["image"]);
40  this.dx = dest.X;
41  this.dy = dest.Y;
42  this.dw = dest.Width;
43  this.dh = dest.Height;
44  }

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