/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { /** *

The X and Y coordinates of a point on an image. The X and Y values returned * are ratios of the overall image size. For example, if the input image is 700x200 * and the operation returns X=0.5 and Y=0.25, then the point is at the (350,50) * pixel coordinate on the image.

An array of Point objects, * Polygon, is returned by DetectText and by * DetectCustomLabels. Polygon represents a fine-grained * polygon around a detected item. For more information, see Geometry in the Amazon * Rekognition Developer Guide.

See Also:

AWS * API Reference

*/ class AWS_REKOGNITION_API Point { public: Point(); Point(Aws::Utils::Json::JsonView jsonValue); Point& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The value of the X coordinate for a point on a Polygon.

*/ inline double GetX() const{ return m_x; } /** *

The value of the X coordinate for a point on a Polygon.

*/ inline bool XHasBeenSet() const { return m_xHasBeenSet; } /** *

The value of the X coordinate for a point on a Polygon.

*/ inline void SetX(double value) { m_xHasBeenSet = true; m_x = value; } /** *

The value of the X coordinate for a point on a Polygon.

*/ inline Point& WithX(double value) { SetX(value); return *this;} /** *

The value of the Y coordinate for a point on a Polygon.

*/ inline double GetY() const{ return m_y; } /** *

The value of the Y coordinate for a point on a Polygon.

*/ inline bool YHasBeenSet() const { return m_yHasBeenSet; } /** *

The value of the Y coordinate for a point on a Polygon.

*/ inline void SetY(double value) { m_yHasBeenSet = true; m_y = value; } /** *

The value of the Y coordinate for a point on a Polygon.

*/ inline Point& WithY(double value) { SetY(value); return *this;} private: double m_x; bool m_xHasBeenSet; double m_y; bool m_yHasBeenSet; }; } // namespace Model } // namespace Rekognition } // namespace Aws