Skip to main content

MagmCopyResult

Copy a trained composite-definition model from a train AGM result buffer to a find AGM context.

Syntax

void MagmCopyResult(
AIL_ID SrcTrainResultId, //in
AIL_INT64 SrcIndex, //in
AIL_ID DstContextId, //out
AIL_INT64 DstIndex, //in
AIL_INT64 CopyType, //in
AIL_INT64 ControlFlag //in
)

Description

This function copies a model from a train AGM result buffer to a find AGM context. You can only copy trained results after calling MagmTrain.

You must use MagmCopyResult to add a composite-definition model to a find AGM context. Once added, you must preprocess the context before calling MagmFind.

Parameters

SrcTrainResultId (in, AIL_ID)

Specifies the identifier of the source result buffer from which to copy. The result buffer must have been allocated using MagmAllocResult with M_GLOBAL_EDGE_BASED_TRAIN_RESULT, and must contain the results of a call to MagmTrain.

SrcIndex (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

DstContextId (out, AIL_ID)

Specifies the identifier of the destination context in which to store the copied results. The context must have been allocated using MagmAlloc with M_GLOBAL_EDGE_BASED_FIND.

DstIndex (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

CopyType (in, AIL_INT64)

Specifies the type of copy operation to perform.

Specifies the type of copy operation

ValueDescription
M_TRAINED_MODELSpecifies to copy the trained composite-definition model from the train AGM result buffer to the find AGM context.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Copyright © 2026 Zebra Technologies.