MIL_ID SysId, | //in |
MIL_INT64 ContextType, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_ID *ContextImIdPtr | //out |
This function allocates an image processing context on the specified system.
When the image processing context is no longer required, you should release its memory, using MimFree().
Note that image processing contexts allocated with MimAlloc() can be saved using either MimStream() or MimSave() and restored using MimRestore().
Specifies the system on which to allocate the context. This parameter should be set to one of the following values:
For specifying the system
identifier
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies the type of image processing context. This parameter should be set to one of the following values:
For specifying the type of
context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_BINARIZE_ADAPTIVE_CONTEXT |
Specifies an image processing context that can be used with MimBinarizeAdaptive() to perform an adaptive binarization. |
||||||||||||||||||||||||||||||||||||||
M_BINARIZE_ADAPTIVE_FROM_SEED_CONTEXT |
Specifies an image processing context that can be used with MimBinarizeAdaptive() to perform an adaptive binarization using seeds. |
||||||||||||||||||||||||||||||||||||||
M_DEAD_PIXEL_CONTEXT |
Specifies an image processing context that can be used with MimDeadPixelCorrection(). |
||||||||||||||||||||||||||||||||||||||
M_DEINTERLACE_CONTEXT |
Specifies an image processing context that can be used with MimDeinterlace(). |
||||||||||||||||||||||||||||||||||||||
M_FIND_ORIENTATION_CONTEXT |
Specifies an image processing context that can be used with MimFindOrientation(). |
||||||||||||||||||||||||||||||||||||||
M_FLAT_FIELD_CONTEXT |
Specifies an image processing context that can be used with MimFlatField(). |
||||||||||||||||||||||||||||||||||||||
M_HISTOGRAM_EQUALIZE_ADAPTIVE_CONTEXT |
Specifies an image processing context that can be used with MimHistogramEqualizeAdaptive(). |
||||||||||||||||||||||||||||||||||||||
M_LOCATE_PEAK_1D_CONTEXT |
Specifies an image processing context that can be used with MimLocatePeak1d(). |
||||||||||||||||||||||||||||||||||||||
M_MATCH_CONTEXT |
Specifies an image processing context that can be used with MimMatch(). |
||||||||||||||||||||||||||||||||||||||
M_REARRANGE_CONTEXT |
Specifies an image processing context that can be used with MimRearrange(). |
||||||||||||||||||||||||||||||||||||||
M_STAT_MULTIPLE_CONTEXT |
Specifies an image processing context that can be used with MimStatMultiple(). |
||||||||||||||||||||||||||||||||||||||
M_WAVELET_TRANSFORM_CONTEXT |
Specifies an image processing context that can be used with MimWaveletTransform() and MimWaveletDenoise(). |
||||||||||||||||||||||||||||||||||||||
M_WAVELET_TRANSFORM_CUSTOM_CONTEXT |
Specifies a custom image processing context that can be used with MimWaveletTransform() and MimWaveletDenoise(). |
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |