ObjectQuery Class

Declaration

struct winrt::Microsoft::Azure::ObjectAnchors::ObjectQuery

Description

Object query parameters associated with an object model.

Methods

ComputeLatestEnvironmentObservationAsync

Computes the current environment observation in the region defined by ObjectQuery.SearchAreas.

Windows::Foundation::IAsyncOperation<::winrt::Microsoft::Azure::ObjectAnchors::EnvironmentObservation> ComputeLatestEnvironmentObservationAsync();

Parameters

Returns

  • Windows::Foundation::IAsyncOperation<::winrt::Microsoft::Azure::ObjectAnchors::EnvironmentObservation> - Environment observation within the query's search areas.

ComputeLatestEnvironmentObservationAsync

Computes the current environment observation in the region defined by ObjectQuery.SearchAreas.

Windows::Foundation::IAsyncOperation<::winrt::Microsoft::Azure::ObjectAnchors::EnvironmentObservation> ComputeLatestEnvironmentObservationAsync(winrt::Microsoft::Azure::ObjectAnchors::EnvironmentObservationTopology const& topology);

Parameters

  • topology - Determines whether to compute triangle indices in addition to vertex positions and normals. Default is . Requesting from a query created with is not supported and will throw an exception.

Returns

  • Windows::Foundation::IAsyncOperation<::winrt::Microsoft::Azure::ObjectAnchors::EnvironmentObservation> - Environment observation within the query's search areas.

Dispose

void Dispose();

Properties

ExpectedMaxVerticalOrientationInDegrees

Expected maximum angle in degrees between up direction of an object instance and gravity, from 0 to 180. Small value indicates object is expected to be up-right, while large value allows more variation on the layout.

float ExpectedMaxVerticalOrientationInDegrees();
void ExpectedMaxVerticalOrientationInDegrees(float const& value);

IsExpectedToBeStandingOnGroundPlane

Prior on object's location whether standing on ground plane or not.

bool IsExpectedToBeStandingOnGroundPlane();
void IsExpectedToBeStandingOnGroundPlane(bool const& value);

MaxScaleChange

Maximum scale change from 1.

float MaxScaleChange();
void MaxScaleChange(float const& value);

MinSurfaceCoverage

Minimum required surface coverage ratio to consider an object instance as true positive, from 0 to 1.

float MinSurfaceCoverage();
void MinSurfaceCoverage(float const& value);

SearchAreas

A collection of search areas that define the regions to look for objects.

Windows::Foundation::Collections::IVector<::winrt::Microsoft::Azure::ObjectAnchors::ObjectSearchArea> SearchAreas();