| Customize Help
| Save Settings

MclassCopy



Function Map
Synopsis
Copy data from one classification context to another.
Syntax
void MclassCopy(
MIL_ID SrcContextClassId, //in
MIL_INT64 SrcIndex, //in
MIL_ID DstContextClassId, //in
MIL_INT64 DstIndex, //in
MIL_INT64 CopyType, //in
MIL_INT64 ControlFlag //in
)
Description

This function copies data from the specified source classification context to the specified destination classification context. The source and the destination context must be for the same type of classifier (predefined CNN or tree ensemble).

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
SrcContextClassId

Specifies the identifier of the source classification context from which to copy. Set this parameter to one of the following values.

function map For specifying the source classification context
Click to summarizeValue Description
Click to summarize ContextClassifierId

Specifies the identifier of a predefined CNN or tree ensemble classifier context. This context is allocated using MclassAlloc() with M_CLASSIFIER_CNN_PREDEFINED or M_CLASSIFIER_TREE_ENSEMBLE.

Note that this value is not available when the CopyType is set to M_AUTHORS or M_DATASET.

(summarize)
Click to summarize ContextDatasetFeaturesId

Specifies the identifier of a features dataset context. This context is allocated using MclassAlloc() with M_DATASET_FEATURES.

If the source is a features dataset context, the destination must be a features dataset context or a tree ensemble classifier context.

(summarize)
Click to summarize ContextDatasetImagesId

Specifies the identifier of an images dataset context. This context is allocated using MclassAlloc() with M_DATASET_IMAGES.

If the source is an images dataset context, the destination must be an images dataset context or a predefined CNN classifier context.

(summarize)
SrcIndex

Reserved for future expansion and must be set to M_DEFAULT.

DstContextClassId

Specifies the identifier of the destination classification context in which to copy. Set this parameter to one of the following values.

function map For specifying the destination classification context
Click to summarizeValue Description
Click to summarize ContextClassifierId

Specifies the identifier of a predefined CNN or tree ensemble classifier context. This context is allocated using MclassAlloc() with M_CLASSIFIER_CNN_PREDEFINED or M_CLASSIFIER_TREE_ENSEMBLE.

Note that this value is not available when the CopyType is set to M_AUTHORS or M_DATASET.

(summarize)
Click to summarize ContextDatasetFeaturesId

Specifies the identifier of the features dataset context. This context is allocated using MclassAlloc() with M_DATASET_FEATURES.

Note that this value is not available when the CopyType is set to M_DATASET and SrcContextClassId is set to an identifier of an images dataset context.

(summarize)
Click to summarize ContextDatasetImagesId

Specifies the identifier of the images dataset context. This context is allocated using MclassAlloc() with M_DATASET_IMAGES.

Note that this value is not available when the CopyType is set to M_DATASET and SrcContextClassId is set to an identifier of a features dataset context.

(summarize)
DstIndex

Reserved for future expansion and must be set to M_DEFAULT.

CopyType

Specifies the type of copy operation to perform.

function map Specifies the type of copy operation
Click to summarizeValue Description
Click to summarize M_AUTHORS

Specifies to copy the authors from the source dataset to the destination dataset or classifier object. It overrides any existing class definitions in the destination object. If the destination is a dataset, it should not contain any entries.

When using M_AUTHORS, you must set the SrcContextClassId parameter to the identifier of a features dataset or images dataset context. The DstContextClassId parameter must be set to the identifier of a features dataset or images dataset context.

(summarize)
Click to summarize M_CLASS_DEFINITIONS

Specifies to copy the class definitions from the source classification context to the destination classification context. Class definitions already in the destination are overwritten.

When using M_CLASS_DEFINITIONS, you must set the SrcContextClassId parameter to the identifier a predefined CNN classifier, tree ensemble classifier, features dataset, or images dataset context. The DstContextClassId parameter must be set to the identifier of a predefined CNN classifier, tree ensemble classifier, features dataset, or images dataset context.

(summarize)
Click to summarize M_DATASET

Specifies to copy the entire dataset. It overrides the entries, class definitions, and authors.

When using M_DATASET, you must set the SrcContextClassId parameter to the identifier of a features or images dataset context. The DstContextClassId parameter must be set to the identifier of a features or images dataset context. The source and the destination context must be for the same type of dataset.

(summarize)
ControlFlag

Reserved for future expansion and must be set to M_DEFAULT.

Compilation information
Header Include mil.h.
Library Use mil.lib; milclass.lib.
DLL Requires mil.dll; milclass.dll.
AUTHORS CLASS DEFINITIONS DATASET AUTHORS CLASS DEFINITIONS DATASET DATASET DATASET