| MIL 10 Reference
| Customize Help
| Save Settings

MbufInquire



See also
Availability
Available in MIL-Lite with restrictions (see remarks)
Available in MIL

Available on Windows with restrictions
Available on Linux with restrictions

Partially supported on:
Partially supported on Host system
Partially supported on Matrox CronosPlus
Partially supported on Matrox GPU processing driver
Partially supported on Matrox GigE Vision driver
Partially supported on Matrox IEEE 1394 IIDC driver
Partially supported on Matrox Iris GT
Partially supported on Matrox Morphis
Partially supported on Matrox Morphis QxT
Partially supported on Matrox Orion HD
Partially supported on Matrox Radient eCL
Partially supported on Matrox Radient eV-CXP
Partially supported on Matrox Solios eA/XA
Partially supported on Matrox Solios ecl/xcl/ev-cl
Partially supported on Matrox USB3 Vision driver (requires Update 19)
Partially supported on Matrox Vio

For any information regarding a MIL system added during a MIL Update, see the MIL system’s release note

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Function Map
Parameter Associations
Table: For inquiring general buffer settings
+ combination: Returns the packed or planar color buffer format
+ combination: Returns the packed color buffer format
+ combination: Returns the planar color buffer format
+ combination: Returns the location of the buffer
+ combination: Returns the memory bank used
+ combination: Returns whether the buffer was allocated in paged or non-paged memory
+ combination: Returns the intended purpose of the image buffer
+ combination: Returns the compression type
+ combination: Returns whether the buffer was allocated with an overscan region
+ combination: Returns the storage format and location specifier
+ combination: Returns whether the buffer is FPGA accessible
+ combination: For specifying a location in a specific type of memory
+ combination: Returns the format in which color buffers were stored
Table: For M_KERNEL and M_STRUCT_ELEMENT data buffers
Table: For M_KERNEL data buffers only
Table: For M_IMAGE + M_COMPRESS image buffers
Table: For M_IMAGE + M_COMPRESS (with M_JPEG_LOSSY, M_JPEG_LOSSY_INTERLACED, or M_JPEG2000_LOSSY)
Table: For M_IMAGE + M_COMPRESS (with M_JPEG2000_LOSSY or M_JPEG2000_LOSSLESS)
+ combination: For M_DECOMPOSITION_LEVEL, M_NUMBER_SUBBAND, M_Q_FACTOR (for JPEG2000 lossy buffers), and M_QUANTIZATION (for JPEG2000 lossy buffers)
Table: For M_IMAGE + M_COMPRESS (with M_JPEG2000_LOSSY)
Table: For M_IMAGE + M_COMPRESS (with M_JPEG_LOSSY, M_JPEG_LOSSY_INTERLACED, M_JPEG_LOSSLESS, or M_JPEG_LOSSLESS_INTERLACED)
Table: For M_IMAGE + M_COMPRESS (with M_JPEG_LOSSLESS, or M_JPEG_LOSSLESS_INTERLACED)
Table: For M_IMAGE + M_COMPRESS (with M_JPEG_LOSSY, or M_JPEG_LOSSY_INTERLACED)
Examples
3dplanefit.cpp
aimdpmgrading.cpp
bestplanefitter.cpp
binarybasedcircledetection.cpp
blisterpackinspection.cpp
bottlecapinspection.cpp
calibratedruler.cpp
calibrationfromlist.cpp
cameralasercalibration.cpp
chromasens3dpixa.cpp
codegrading.cpp
colorbasedproductidentification.cpp
colorrelativecalibration.cpp
cookiedetection.cpp
defectdetectionexample.cpp
defectdetectionprocfunc.cpp
defectdetectionprocfunc_capandcontent.cpp
defectdetectiontask.cpp
depthdatamgr.cpp
dmiladdconstantslave.cpp
dmilmdigprocesssharedmemory.cpp
dmilremapslave.cpp
dotspacing.cpp
examplemanagerfor3d.cpp
fixturingusingblob.cpp
flatfieldcorrection.cpp
histogramdisplay.cpp
histogramequalizeadaptive.cpp
inspectiontask.cpp
kinect.cpp
m3dmap.cpp
m3dmap.cs
m3dmap.vb
mappbenchmark.cpp
mappbenchmark.cs
mappbenchmark.vb
matroxgatoreye.cpp
mblob.cpp
mblob.cs
mblob.vb
mbufbayer.cpp
mbufpointeraccess.cpp
mbufpointeraccess.cs
mbufsharedmemory.cpp
mcol.cpp
mcol.cs
mcol.vb
mcolorwarp.cpp
mdigautofocus.cpp
mdigautofocus.cs
mdigautofocus.vb
mdispgtkview.cpp
mdisplay.cpp
mdispmfcdoc.cpp
mdispmfcview.cpp
mdispoverlay.cpp
mdispoverlay.cs
mdispoverlay.vb
mdispqtview.cpp
mdispwindowleveling.cpp
mdispwindowleveling.cs
mdispwindowleveling.vb
meas2stepoverview.cpp
measoverviewexample.cpp
mfunc.cpp
mfunc.cs
mfunc.vb
mgrainteractive.cpp
mgrainteractive.cs
mgrainteractive.vb
microsoftkinect.cpp
milapplication.cs
milapplication.vb
mimdeinterlace.cpp
mimdeinterlace.cs
mimdeinterlace.vb
mimmorphic.cpp
mimpolar.cpp
mimpolar.cs
mimpolar.vb
mimwarp.cpp
mimwarp.cs
mimwarp.vb
mmeas.cpp
mmeas.cs
mmeas.vb
mmodeltracking.cpp
mmodeltracking.cs
mmodeltracking.vb
monitoringapplication.cpp
morphology.cpp
mpat.cpp
mpat.cs
mpat.vb
mpmenubutton.cpp
mreg.cpp
mreg.cs
mreg.vb
mseqprocess.cpp
mseqprocess.cs
mseqprocess.vb
muart.cpp
multipledatamatrixcoderead.cpp
multiviewannotations.cpp
objectseparation.cpp
pcbmodelmatching.cpp
productidentificationoasis.cpp
publishingapplication.cpp
registeredgoldentemplate.cpp
segmentationandanalysisofcells.cpp
sickrangerc.cpp
sickrangere.cpp
simpledilateerode.cpp
stereocalibration.cpp
superresolution.cpp
targetalignmenttask.cpp
tirestringread.cpp
variouscodereadings.cpp
viofeaturesdemo.cpp
wavelettransformation.cpp
Synopsis
Inquire about a MIL data buffer setting.
Syntax
MIL_INT MbufInquire(
MIL_ID BufId, //in
MIL_INT64 InquireType, //in
void *UserVarPtr //out
)
Description

This function inquires about a specified setting of a MIL data buffer.

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 which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
BufId

Specifies the identifier of the source data buffer. The buffer must have been previously allocated on the required system using a function of the Buffer module (for example, MbufAllocColor() or MbufImport()).

InquireType

Specifies the type of buffer setting about which to inquire.

See the Parameter associations section for possible values that can be specified.

UserVarPtr
Accepts the address of one of the following (see the Parameter associations section for specifics on which is expected):
  • same type as the buffer
  • MIL_DOUBLE
  • MIL_ID
  • MIL_INT
  • MIL_INT64

Specifies the address in which to write the requested information.

Since the MbufInquire() function also returns the requested information, you can set this parameter to M_NULL, except when the specified InquireType requires the UserVarPtr parameter to be set to the address of a MIL_INT64 or MIL_DOUBLE. In this case, you must set this parameter to the address of a MIL_INT64 or MIL_DOUBLE, respectively.

See the Parameter associations section for possible values that can be returned.

The following inquire types allow you to inquire about general types of buffer settings.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For inquiring general buffer settings
CollapseInquireType Description
MIL system-specific
tooltip (†)
UserVarPtr
- Possible values returned
Collapse M_ALLOCATION_OVERSCAN_SIZE

Inquires the size of the overscan region of the image buffer. SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the size of the overscan region, in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANCESTOR_ID

Inquires the MIL identifier of the ancestor buffer. Only child buffers have an ancestor buffer. The ancestor buffer is the buffer from which the specified buffer (BufId) ultimately originated. It is the root buffer; it does not have a parent buffer (it is not a child buffer of another buffer). Note that the identifier of the specified buffer is returned if it does not have an ancestor buffer.

To establish the parent buffer of the specified buffer, use M_PARENT_ID instead.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse UserVarPtr data type info

Data type: MIL_ID

a b c d e f g h i j k l m n o p q r s
Collapse MIL Buffer ID

Specifies the MIL identifier of the ancestor buffer.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANCESTOR_OFFSET_BAND

Inquires the band offset relative to the ancestor buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the band offset.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANCESTOR_OFFSET_BIT

Inquires the bit offset relative to the ancestor buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the offset, in bits.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANCESTOR_OFFSET_X

Inquires the X-offset relative to the ancestor buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the X-offset.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANCESTOR_OFFSET_Y

Inquires the Y-offset relative to the ancestor buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the Y-offset.

a b c d e f g h i j k l m n o p q r s
Collapse M_ASSOCIATED_LUT

Inquires the identifier of the LUT buffer associated with the image buffer (returns M_DEFAULT if no LUT). SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse UserVarPtr data type info

Data type: MIL_ID

a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies that no LUT buffer is associated with the image buffer.

a b c d e f g h i j k l m n o p q r s
Collapse MIL LUT buffer identifier

Specifies the MIL identifier of the LUT buffer that is associated with the image buffer.

a b c d e f g h i j k l m n o p q r s
Collapse M_BITMAPINFO
[This is only applicable to Windows]

Inquires a pointer (LPBITMAPINFO) to the header of the DIB associated with the MIL buffer.

(summarize)
a b c d e g h i j k l m n o p q r s
Collapse M_NULL

Specifies that there is no DIB associated with the MIL buffer.

a b c d e g h i j k l m n o p q r s
Collapse Value

Specifies the pointer to the DIB header.

a b c d e g h i j k l m n o p q r s
Collapse M_DATA_FORMAT

Inquires the color or monochrome storage format of the buffer. This includes whether it is packed or planar format. Note that to retrieve the entire list of attributes, use MbufInquire() with M_EXTENDED_ATTRIBUTE or M_EXTENDED_FORMAT. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_PACKED +

Specifies that the buffer's bands are stored in packed format (color buffer only); that is, the pixel components are stored together (RGB RGB RGB...). INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_PLANAR +

Specifies that the buffer's bands are stored in planar format (color buffer only); that is, each pixel is stored as three component planes (RRR... GGG... BBB...). INFO

a b d e f g h i j k l m n p q r
Collapse M_DATA_TYPE

Inquires the buffer data type. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_FLOAT

Specifies that the buffer uses the float data type.

a b c d e f g h i j k l m n o p q r s
Collapse M_SIGNED

Specifies that the buffer uses the signed data type.

a b c d e f g h i j k l m n o p q r s
Collapse M_UNSIGNED

Specifies that the buffer uses the unsigned data type.

a b c d e f g h i j k l m n o p q r s
Collapse M_DC_HANDLE
[This is only applicable to Windows]

Inquires the device context handle (HDC) of the buffer. The buffer device context must have been successfully allocated using MbufControl() with M_DC_ALLOC.

(summarize)
a b c d e g h i j k l m n o p q r s
Collapse M_NULL

Specifies that no device context is associated with the buffer.

a b c d e g h i j k l m n o p q r s
Collapse Value

Specifies the handle of the device context that is associated with the buffer.

a b c d e g h i j k l m n o p q r s
Collapse M_DDRAW_SURFACE
[This is only applicable to Windows]

Inquires a pointer (LPDIRECTDRAWSURFACE) to the DirectDraw surface associated with the MIL buffer.

(summarize)
a b c d e g h i j k l m n o p q r s
Collapse M_NULL

Specifies that there is no DirectDraw surface associated with the MIL buffer.

a b c d e g h i j k l m n o p q r s
Collapse Value

Specifies the pointer to the DirectDraw surface.

a b c d e g h i j k l m n o p q r s
Collapse M_DIB_HANDLE
[This is only applicable to Windows]

Inquires the handle (HBITMAP) of the DIB associated with the MIL buffer. To ensure that the buffer has a DIB handle, the buffer must have been successfully allocated using with M_DIB + M_GDI.

(summarize)
a b c d e g h i j k l m n o p q r s
Collapse M_NULL

Specifies that no DIB handle is associated with the buffer.

a b c d e g h i j k l m n o p q r s
Collapse Value

Specifies the handle of the DIB associated with the buffer.

a b c d e g h i j k l m n o p q r s
Collapse M_EXTENDED_ATTRIBUTE

Inquires the attributes of the specified buffer. This inquire type only returns attributes that were explicitly set; any attribute left to its default is not returned.

To retrieve only the color or monochrome storage format of the buffer, use MbufInquire() with M_DATA_FORMAT. To retrieve the actual format of the specified buffer, use MbufInquire() with M_EXTENDED_FORMAT.

Note that you cannot set the UserVarPtr parameter to M_NULL when InquireType is set to M_EXTENDED_ATTRIBUTE. In addition, a valid MIL_INT64 pointer must be passed to the function; otherwise, an error will occur.

To convert the returned attributes, select the Benchmarks and Utilities item in the tree structure of the MILConfig utility. Then, select the Buffer format item. On the Value type pane, paste the returned attributes in the text box provided. Then, click on the Value lookup button. The results of the translation are presented below the Value lookup button. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse UserVarPtr data type info

Data type: MIL_INT64

a b c d e f g h i j k l m n o p q r s
Collapse M_ARRAY +

Specifies a buffer to store array type data. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_IMAGE +

Specifies a buffer to store image data. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_KERNEL +
//For 1D or 2D data

Specifies a kernel buffer to store a custom filter for convolution functions. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_LUT +

Specifies a buffer to store lookup table data. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_STRUCT_ELEMENT +
//For 1D or 2D data

Specifies a buffer to store structuring element data for morphology functions. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_EXTENDED_FORMAT

Inquires the actual color or monochrome storage format of the specified buffer.

When you inquire M_EXTENDED_FORMAT, the returned value includes any buffer attributes that you set, any setting that was left to its default, and values that were internally calculated by MIL.

To retrieve only the color or monochrome storage format of the buffer that you set, use MbufInquire() with M_DATA_FORMAT. To retrieve all the attributes of the buffer as set using MbufAlloc...() with Attribute, use MbufInquire() with M_EXTENDED_ATTRIBUTE.

Note that you cannot set the UserVarPtr parameter to M_NULL when InquireType is set to M_EXTENDED_FORMAT. In addition, a valid MIL_INT64 pointer must be passed to the function; otherwise, an error will occur.

Some buffer attributes are not returned when using a remote computer because they are not applicable to a remote computer. These attributes include, but are not limited to, M_LINUX_MXIMAGE, M_DIB, M_GDI, M_HOST_MEMORY, and M_VIDEO_MEMORY.

To convert the returned attributes, select the Benchmarks and Utilities item in the tree structure of the MILConfig utility. Then, select the Buffer format item. On the Value type pane, paste the returned attributes in the text box provided. Then, click on the Value lookup button. The results of the translation are presented below the Value lookup button.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse UserVarPtr data type info

Data type: MIL_INT64

a b c d e f g h i j k l m n o p q r s
Collapse M_ARRAY +

Specifies a buffer to store array type data. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_IMAGE +

Specifies a buffer to store image data. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_KERNEL +
//For 1D or 2D data

Specifies a kernel buffer to store a custom filter for convolution functions. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_LUT +

Specifies a buffer to store lookup table data. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_STRUCT_ELEMENT +
//For 1D or 2D data

Specifies a buffer to store structuring element data for morphology functions. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_HOST_ADDRESS

Inquires the Host address of the buffer, if the buffer is visible from the Host address space and is not a planar 3-band buffer. For a planar 3-band buffer, you can determine its Host address by allocating a child buffer for the required band and then using M_HOST_ADDRESS to determine its Host address.

If available, this address can be used to directly access the data of a MIL buffer with the Host CPU.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse UserVarPtr data type info

Data type: same type as the buffer
Note: The required data type of the address passed to UserVarPtr is dependent on the data type of the source data buffer. For example, if you allocated the buffer using 8 + M_UNSIGNED, pass UserVarPtr the address of an MIL_UINT8 *.

a b c d e f g h i j k l m n o p q r s
Collapse M_NULL

Specifies that the buffer is not visible from the Host address space or the buffer is a planar 3-band buffer.

a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the Host address of the buffer.

a b c d e f g h i j k l m n o p q r s
Collapse M_MAP

Inquires whether the buffer is mapped to the address space of the process.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DISABLE

Specifies that the buffer is not mapped to the memory address space of the process.

a b c d e f g h i j k l m n o p q r s
Collapse M_ENABLE

Specifies that the buffer is mapped to the memory address space of the process.

a b c d e f g h i j k l m n o p q r s
Collapse M_MAX

Inquires the maximum pixel value possible in the buffer. SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the expected maximum pixel value within the range of the buffer type. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_MIN

Inquires the minimum pixel value possible in the buffer. SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the expected minimum pixel value within the range of the buffer type. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_MODIFICATION_COUNT

Inquires the current value of the modification counter of the image buffer. The modification counter is initialized to a number that is unique to the image buffer and is given its own unique range.

This number is incremented each time the image buffer is modified.

If the image buffer is freed, this number will not be reassigned to a new image buffer.

If the image buffer is accessed externally, for example, when using MbufCreateColor() or MbufCreate2d(), MbufControl() with M_MODIFIED must be called to indicate that the image buffer's contents have been modified. Calling this function will increment the counter.

This feature is useful for optimization. For example, you can avoid repeating certain computations (for example, analysis computations) if you know that the image buffer has not been modified. In this case, inquire the count before the first computation in the sequence of computations, and then inquire it again before repeating the same sequence. If no modifications have been made to the image buffer, you can avoid repeating the sequence unnecessarily.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the current value of the modification counter.

a b c d e f g h i j k l m n o p q r s
Collapse M_MODIFICATION_HOOK

Inquires the status of the modification hook, which runs a user-defined function upon an event. These user-defined functions are initially hooked to the buffer modification event using MbufHookFunction(). SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DISABLE

Specifies that the user-defined functions should not be called. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_ENABLE

Specifies that the user-defined functions should be called.

a b c d e f g h i j k l m n o p q r s
Collapse M_OWNER_SYSTEM

Inquires the identifier of the system on which the buffer has been allocated. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse UserVarPtr data type info

Data type: MIL_ID

a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT_HOST

Specifies the default Host system of the current MIL application.

a b c d e f g h i j k l m n o p q r s
Collapse MIL system identifier

Specifies a valid system identifier, previously allocated using MsysAlloc().

a b c d e f g h i j k l m n o p q r s
Collapse M_OWNER_SYSTEM_TYPE

Inquires the type of system on which the buffer was allocated. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_SYSTEM_1394_TYPE

Specifies a MIL IEEE 1394 IIDC system.

e
Collapse M_SYSTEM_CRONOSPLUS_TYPE

Specifies a MIL CronosPlus system.

b
Collapse M_SYSTEM_GIGE_VISION_TYPE

Specifies a MIL GigE Vision system.

c s
Collapse M_SYSTEM_GPU_TYPE

Specifies a MIL GPU system.

d
Collapse M_SYSTEM_HOST_TYPE

Specifies the Host.

a
Collapse M_SYSTEM_IRIS_GT_TYPE

Specifies a MIL Iris GT system.

f
Collapse M_SYSTEM_MORPHIS_TYPE

Specifies a MIL Morphis system.

g
Collapse M_SYSTEM_MORPHISQXT_TYPE

Specifies a MIL Morphis QxT system.

h
Collapse M_SYSTEM_ORION_HD_TYPE

Specifies a MIL Orion HD system.

i
Collapse M_SYSTEM_RADIENT_TYPE

Specifies a MIL Radient system.

j
Collapse M_SYSTEM_RADIENTCXP_TYPE

Specifies a MIL Radient eV-CXP system.

k
Collapse M_SYSTEM_SOLIOS_TYPE

Specifies a MIL Solios system.

l m
Collapse M_SYSTEM_USB3_VISION_TYPE

Specifies a MIL USB3 Vision system.

o
Collapse M_SYSTEM_VIO_TYPE

Specifies a MIL Vio system.

n
Collapse M_PARENT_ID

Inquires the MIL identifier of the parent buffer. Only child buffers have a parent buffer. The parent buffer is the buffer from which the specified buffer (BufId) was defined. The parent buffer can itself have a parent buffer. If the specified buffer has no parent buffer, the identifier of the specified buffer is returned.

To establish the ancestor buffer (root buffer) of the specified buffer, use M_ANCESTOR_ID instead.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse UserVarPtr data type info

Data type: MIL_ID

a b c d e f g h i j k l m n o p q r s
Collapse MIL Buffer ID

Specifies the MIL identifier of the parent buffer.

a b c d e f g h i j k l m n o p q r s
Collapse M_PARENT_OFFSET_BAND

Inquires the band offset relative to the parent buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the band offset.

a b c d e f g h i j k l m n o p q r s
Collapse M_PARENT_OFFSET_X

Inquires the X-offset relative to the parent buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the X-offset.

a b c d e f g h i j k l m n o p q r s
Collapse M_PARENT_OFFSET_Y

Inquires the Y-offset relative to the parent buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the Y-offset.

a b c d e f g h i j k l m n o p q r s
Collapse M_PHYSICAL_ADDRESS

Inquires the physical address of the buffer if it is not a planar 3-band buffer. For a planar 3-band buffer, you can determine its physical address by allocating a child buffer for the required band and then using M_PHYSICAL_ADDRESS to determine its physical address.

This type of address is available only for a non-paged buffer mapped to the Host or for a buffer allocated in a frame grabber's on-board memory. This type of address is used mostly for access by bus masters other than the Host CPU.

To use this inquire type, the buffer must not have been allocated on a DMIL remote system. If it is, use M_PHYSICAL_ADDRESS_REMOTE instead.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_NULL

Specifies that the buffer is not visible from the physical address space.

a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the address of the buffer.

a b c d e f g h i j k l m n o p q r s
Collapse M_PHYSICAL_ADDRESS_REMOTE

Inquires the physical address of the buffer on a DMIL remote system, if it is not a planar 3-band buffer. For a planar 3-band buffer, you can determine its physical address by allocating a child buffer for the required band and then using M_PHYSICAL_ADDRESS_REMOTE to determine its physical address.

This type of address is available only for a non-paged buffer mapped to the DMIL remote system. This type of address is used mostly for access by bus masters other than the Host CPU.

To use this inquire type, the buffer must have been allocated on a DMIL remote system. If it is not, use M_PHYSICAL_ADDRESS instead.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_NULL

Specifies that the buffer is not visible from the physical address space.

a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the address of the buffer.

a b c d e f g h i j k l m n o p q r s
Collapse M_PITCH

Inquires the number of pixels between the beginnings of any two adjacent lines of the buffer data. SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the pitch, in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse M_PITCH_BYTE

Inquires the number of bytes between the beginnings of any two adjacent lines of the buffer data. SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the pitch, in bytes.

a b c d e f g h i j k l m n o p q r s
Collapse M_REGION_TYPE

Inquires whether the image buffer contains ROI information, and, if so, in which format the ROI is saved. ROIs are set with MbufSetRegion().

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_NONE

Specifies that no ROI is defined.

a b c d e f g h i j k l m n o p q r s
Collapse M_RASTER

Specifies that the ROI is in raster format.

a b c d e f g h i j k l m n o p q r s
Collapse M_VECTOR

Specifies that the ROI is in vector format.

a b c d e f g h i j k l m n o p q r s
Collapse M_VECTOR_AND_RASTER

Specifies that the ROI is in raster and vector format.

a b c d e f g h i j k l m n o p q r s
Collapse M_RESOLUTION_X

Inquires the X resolution of the image buffer in pixels per inch (PPI). If M_RESOLUTION_X in MbufControl() is not set, the inquire returns 0. SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the X resolution in PPI.

a b c d e f g h i j k l m n o p q r s
Collapse M_RESOLUTION_Y

Inquires the Y resolution of the image buffer in pixels per inch (PPI). If M_RESOLUTION_Y in MbufControl() is not set, the inquire returns 0. SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the Y resolution in PPI.

a b c d e f g h i j k l m n o p q r s
Collapse M_SIZE_BAND

Inquires the number of buffer color bands. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse 1

Specifies the buffer has one band.

a b c d e f g h i j k l m n o p q r s
Collapse 2

Specifies the buffer has two bands.

a b c d e f g h i j k l m n o p q r s
Collapse 3

Specifies the buffer has three bands.

a b c d e f g h i j k l m n o p q r s
Collapse M_SIZE_BIT

Inquires the depth per band. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the depth per band, in bits.

a b c d e f g h i j k l m n o p q r s
Collapse M_SIZE_BYTE

Inquires the size of the buffer.

If the buffer has an M_JPEG2000_LOSSY attribute, this value might be smaller than the requested size of the compressed buffer (M_TARGET_SIZE). This is the case if the data could be compressed into a size smaller than the target buffer.

Use M_SIZE_BYTE to establish the real size of the buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the size of the buffer, in bytes.

a b c d e f g h i j k l m n o p q r s
Collapse M_SIZE_X

Inquires the width of the buffer. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the width of the buffer, in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse M_SIZE_Y

Inquires the height of the buffer. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the height of the buffer, in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse M_SYSTEM_LOCATION

Inquires whether the specified buffer is allocated on a system on the master computer or the remote computer.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_LOCAL

Specifies that the buffer is allocated on a system on the master computer.

a b c d e f g h i j k l m n o p q r s
Collapse M_REMOTE

Specifies that the buffer is allocated on a system on the remote computer.

a b c d e f g h i j k l m n o p q r s
Collapse M_TYPE

Inquires the buffer data type and depth. Depth is returned in bits. SET SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse depth value + M_FLOAT

Specifies the data depth and that the data type is floating-point.

a b c d e f g h i j k l m n o p q r s
Collapse depth value + M_SIGNED

Specifies the data depth and that the data type is signed.

a b c d e f g h i j k l m n o p q r s
Collapse depth value + M_UNSIGNED

Specifies the data depth and that the data type is unsigned.

a b c d e f g h i j k l m n o p q r s
Collapse M_XPIXMAP_HANDLE
[This is only applicable to Linux]

Inquires the device context of the X11 pixmap of the buffer. The buffer device context must have been successfully allocated using MbufControl() with M_XPIXMAP_ALLOC.

(summarize)
a b c d e g h i j k l m n o p q r s
Collapse M_NULL

Specifies that no device context is associated with the buffer.

a b c d e g h i j k l m n o p q r s
Collapse Value

Specifies the handle of the device context that is associated with the buffer.

a b c d e g h i j k l m n o p q r s
Collapse M_YCBCR_RANGE

Inquires whether or not pixel values are limited to a signal's YCBCR range. SET

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DISABLE

Specifies not to YCbCr encode the YUV buffer's pixel values.

a b c d e f g h i j k l m n o p q r s
Collapse M_YCBCR_HD

Specifies to encode the YUV buffer's pixel values using the high-definition YCbCr standard.

a b c d e f g h i j k l m n o p q r s
Collapse M_YCBCR_SD

Specifies to encode the YUV buffer's pixel values using the standard-definition YCbCr standard.

a b c d e f g h i j k l m n o p q r s
Combination constants for M_PACKED (when InquireType=M_DATA_FORMAT and UserVarPtr=M_PACKED); M_PACKED; M_PLANAR (when InquireType=M_DATA_FORMAT and UserVarPtr=M_PLANAR); M_PLANAR.

One of the following values might be combined with the above-mentioned values to determine the packed or planar color buffer format.

function map Returns the packed or planar color buffer format
CollapseCombination value Description
Collapse M_RGB24

Specifies 24-bit color depth (RGB 8:8:8) packed or planar pixels. INFO

Collapse M_RGB48

Specifies 48-bit color depth (RGB 16:16:16). INFO

Collapse M_YUV16

Specifies YUV16 (4:2:2) pixels. INFO

Combination constants for M_PACKED (when InquireType=M_DATA_FORMAT and UserVarPtr=M_PACKED); M_PACKED.

One of the following values might be combined with the above-mentioned values to determine the packed color buffer format.

function map Returns the packed color buffer format
CollapseCombination value Description
MIL system-specific
tooltip (†)
Collapse M_BGR24

Specifies 24-bit color depth packed pixels (BGRBGR). INFO

a b c d e f g h i j k l m o p q r s
Collapse M_BGR32

Specifies 32-bit color depth packed pixels (BGRXBGRX). INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_RGB15

Specifies 16-bit color depth packed pixels (XRGB 1:5:5:5). INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_RGB16

Specifies 16-bit color depth packed pixels (RGB 5:6:5). INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_YUV16_UYVY

Specifies YUV16 packed (4:2:2) pixels, whereby the components of each pixel are stored in the UYVY order. INFO

c e o s
Collapse M_YUV16_YUYV

Specifies YUV16 packed (4:2:2) pixels, whereby the components of each pixel are stored in the YUYV order. INFO

a b c d e f g h i j k l m n o p q r s
Combination constants for M_PLANAR (when InquireType=M_DATA_FORMAT and UserVarPtr=M_PLANAR); M_PLANAR.

One of the following values might be combined with the above-mentioned values to determine the planar color buffer format.

function map Returns the planar color buffer format
CollapseCombination value Description
MIL system-specific
tooltip (†)
Collapse M_RGB3

Specifies 3-bit color depth (RGB 1:1:1) planar pixels.

a b d e f g h i j k l m n p q r
Collapse M_RGB96

Specifies 96-bit color depth (RGB 32:32:32) planar pixels.

a b d e f g h i j k l m n p q r
Collapse M_YUV9

Specifies YUV9 planar pixels.

a b d e f g h i j k l m n p q r
Collapse M_YUV12

Specifies YUV12 planar pixels.

a b d e f g h i j k l m n p q r
Collapse M_YUV24

Specifies YUV24 planar pixels.

a b d e f g h i j k l m n p q r
Combination constants for M_ARRAY (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_ARRAY); M_ARRAY (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_ARRAY); M_IMAGE (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_IMAGE); M_IMAGE (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_IMAGE); M_KERNEL (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_KERNEL); M_KERNEL (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_KERNEL); M_LUT (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_LUT); M_LUT (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_LUT); M_STRUCT_ELEMENT (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_STRUCT_ELEMENT); M_STRUCT_ELEMENT (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_STRUCT_ELEMENT).

One of the following values might be combined with the above-mentioned values to determine the location of the buffer.

function map Returns the location of the buffer
CollapseCombination value Description
MIL system-specific
tooltip (†)
Collapse M_HOST_MEMORY +

Specifies that the buffer is in Host memory.

a b c d e f g h i j k l m n o p q r s
Collapse M_MAPPABLE

Specifies that the buffer is in non-paged memory. INFO

a b c e f g h j k l m n o p q r s
Collapse M_OFF_BOARD

Specifies that the buffer is not in on-board memory. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_ON_BOARD +

Specifies that the buffer is in on-board memory. INFO

f g h i j k l m n p q r
Collapse M_VIDEO_MEMORY

Specifies that the buffer is in (off-screen) display memory of your graphics controller. INFO

a b c d e f g h i j k l m n o p q r s

The following value might be combined with the above-mentioned values to determine the memory bank in which the buffer was allocated.

function map Returns the memory bank used
CollapseCombination value Description
Collapse M_MEMORY_BANK_n
[This is only applicable to Windows]

Specifies that the buffer is allocated in the specified memory bank. INFO

Combination constants for M_ARRAY (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_ARRAY); M_ARRAY (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_ARRAY); M_IMAGE (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_IMAGE); M_IMAGE (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_IMAGE); M_KERNEL (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_KERNEL); M_KERNEL (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_KERNEL); M_LUT (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_LUT); M_LUT (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_LUT); M_STRUCT_ELEMENT (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_STRUCT_ELEMENT); M_STRUCT_ELEMENT (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_STRUCT_ELEMENT).

One of the following values might be combined with the above-mentioned values to determine whether the buffer was allocated in paged or non-paged memory.

function map Returns whether the buffer was allocated in paged or non-paged memory
CollapseCombination value Description
Collapse M_NON_PAGED

Specifies that the buffer is in MIL reserved, non-pageable memory.

Collapse M_PAGED

Specifies that the buffer is in pageable memory.

Combination constants for M_IMAGE (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_IMAGE); M_IMAGE (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_IMAGE).

One or more of the following values are combined with the above-mentioned values to determine the intended purpose of the buffer.

function map Returns the intended purpose of the image buffer
CollapseCombination value Description
MIL system-specific
tooltip (†)
Collapse M_COMPRESS +

Specifies an image buffer that can hold compressed data. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_DISP

Specifies an image buffer that can be displayed.

a b c d e f g h i j k l m n o p q r s
Collapse M_GRAB

Specifies an image buffer in which to grab data. INFO

a b c e f g h i j k l m n o p q r s
Collapse M_PROC +

Specifies an image buffer that can be processed.

a b c d e f g h i j k l m n o p q r s
Combination constants for M_COMPRESS.

One of the following values might be combined with the above-mentioned value to determine the compression type.

function map Returns the compression type
CollapseCombination value Description
Collapse M_JPEG2000_LOSSLESS

Specifies that the buffer will be used to hold JPEG2000 lossless data. INFO

Collapse M_JPEG2000_LOSSY

Specifies that the buffer will be used to hold JPEG2000 lossy data. INFO

Collapse M_JPEG_LOSSLESS

Specifies that the buffer will be used to hold JPEG lossless data. INFO

Collapse M_JPEG_LOSSLESS_INTERLACED

Specifies that the buffer will be used to hold JPEG lossless data in separate fields. INFO

Collapse M_JPEG_LOSSY

Specifies that the buffer will be used to hold JPEG lossy data. INFO

Collapse M_JPEG_LOSSY_INTERLACED

Specifies that the buffer will be used to hold JPEG lossy data in separate fields. INFO

Combination constant for M_PROC.

The following value might be combined with the above-mentioned value to determine whether the buffer was allocated with an overscan region.

function map Returns whether the buffer was allocated with an overscan region
CollapseCombination value Description
Collapse M_ALLOCATION_OVERSCAN

Specifies that the buffer is allocated with an overscan region. INFO

Combination constants for M_IMAGE (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_IMAGE); M_IMAGE (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_IMAGE).

One of the following values might be combined with the above-mentioned values to determine the storage format and location specifier.

You might have set this value, or it could have been automatically selected by MIL.

function map Returns the storage format and location specifier
CollapseCombination value Description
MIL system-specific
tooltip (†)
Collapse M_DIB

Specifies that the buffer is a DIB buffer. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_DIRECTX

Specifies that the buffer is a DirectX surface.

a b c d e g h i j k l m n o p q r s
Collapse M_GDI

Specifies that the buffer is compatible with GDI. INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_LINUX_MXIMAGE

Specifies that the buffer is an X11 Ximage.

a b c d e g h i j k l m n o p q r s
Combination constant for M_ARRAY (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_ARRAY); M_ARRAY (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_ARRAY); M_IMAGE (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_IMAGE); M_IMAGE (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_IMAGE); M_LUT (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_LUT); M_LUT (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_LUT).

The following value might be combined with the above-mentioned values to determine whether the buffer is FPGA accessible.

function map Returns whether the buffer is FPGA accessible
CollapseCombination value Description
MIL system-specific
tooltip (†)
Collapse M_FPGA_ACCESSIBLE +

Specifies that the buffer is allocated in a bank of memory that is accessible from the Processing FPGA. INFO

j l m p r
Combination constants for M_FPGA_ACCESSIBLE; M_ON_BOARD.

One of the following values might be combined with the above-mentioned values to set a location in a specific type of memory.

function map For specifying a location in a specific type of memory
CollapseCombination value Description
MIL system-specific
tooltip (†)
Collapse M_FAST_MEMORY

Specifies that the buffer is in the fastest memory available. INFO

j l m p r
Collapse M_SHARED

Specifies that the buffer is in shared processing memory. INFO

j k l m p q r
Combination constants for M_IMAGE (when InquireType=M_EXTENDED_ATTRIBUTE and UserVarPtr=M_IMAGE); M_IMAGE (when InquireType=M_EXTENDED_FORMAT and UserVarPtr=M_IMAGE).

One of the following values might be combined with the above-mentioned values to determine the format in which color buffers were stored.

function map Returns the format in which color buffers were stored
CollapseCombination value Description
MIL system-specific
tooltip (†)
Collapse M_PACKED +

Specifies that the buffer's bands are stored in packed format (color buffer only); that is, the pixel components are stored together (RGB RGB RGB...). INFO

a b c d e f g h i j k l m n o p q r s
Collapse M_PLANAR +

Specifies that the buffer's bands are stored in planar format (color buffer only); that is, each pixel is stored as three component planes (RRR... GGG... BBB...). INFO

a b d e f g h i j k l m n p q r

For M_KERNEL and M_STRUCT_ELEMENT data buffers only (see MbufControlNeighborhood() for possible values), you can set the InquireType parameter to one of the following values.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For M_KERNEL and M_STRUCT_ELEMENT data buffers
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_OFFSET_CENTER_X

Inquires the X-coordinate of the center of the kernel or structuring element. SET

(summarize)
Collapse 0 <= Value < SizeX

Specifies the value of the X-coordinate.

Collapse M_OFFSET_CENTER_Y

Inquires the Y-coordinate of the center of the kernel or structuring element. SET

(summarize)
Collapse 0 <= Value < SizeY

Specifies the value of the Y-coordinate.

Collapse M_OVERSCAN

Inquires the overscan type. SET

(summarize)
Collapse M_DEFAULT

Specifies that MIL automatically selects the type of overscan to optimize speed and logic according to the specified operation and the target system.

Collapse M_DISABLE

Specifies that no overscan will be used, unless processing the border pixels is faster than ignoring them; in the latter case, MIL automatically selects the overscan to optimize speed according to the specified operation and the target system.

Collapse M_FAST

Specifies that MIL automatically selects the overscan to optimize speed according to the specified operation and the target system. INFO

Collapse M_MIRROR

Specifies a type of overscan that processes the border pixels of a source image using overscan pixel values that mirror the source buffer pixel values. INFO

Collapse M_REPLACE

Specifies a type of overscan that processes the border pixels of a source image using overscan pixel values set to the overscan replacement value (M_OVERSCAN_REPLACE_VALUE).

Collapse M_TRANSPARENT

Specifies a type of overscan that processes the border pixels of a source image using transparent overscan pixel values. INFO

Collapse M_OVERSCAN_REPLACE_VALUE

Inquires the replacement value for the overscan pixel values. SET

(summarize)
Collapse M_REPLACE_MAX

Specifies that the overscan neighborhood pixel values will be set to the maximum value of the source buffer.

Collapse M_REPLACE_MIN

Specifies that the overscan neighborhood pixel values will be set to the minimum value of the source buffer.

Collapse Value

Specifies the value of the overscan neighborhood pixels.

Collapse M_SATURATION

Inquires whether results are saturated. SET

(summarize)
Collapse M_DISABLE

Specifies not to saturate results, except when MIL can take advantage of optimization routines to accelerate the processing. INFO

Collapse M_ENABLE

Specifies to saturate results. INFO

For M_KERNEL data buffers only (see MbufControlNeighborhood() for possible values), you can set the InquireType parameter to one of the following values.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For M_KERNEL data buffers only
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_ABSOLUTE_VALUE

Inquires whether the absolute value should be taken. SET

(summarize)
Collapse M_DISABLE

Specifies not to take the absolute value of the result.

Collapse M_ENABLE

Specifies to take the absolute value of the result. INFO

Collapse M_FILTER_MODE

Inquires the mode in which to apply the filter. SET

(summarize)
Collapse M_KERNEL

Specifies the use of a non-recursive implementation of the filter. INFO

Collapse M_RECURSIVE

Specifies the use of a recursive implementation of an Infinite Impulse Response (IIR) filter, when applicable. INFO

Collapse M_FILTER_OPERATION

Inquires the type of neighborhood operation to perform using the selected filter.

If MbufControlNeighborhood() M_FILTER_TYPE is set to M_USER_DEFINED, then M_FILTER_OPERATION is not supported. SET

(summarize)
Collapse M_EDGE_DETECT

Specifies to compute the gradient of the image using the Shen-Castan or Canny-Deriche filter.

Collapse M_EDGE_DETECT_SQR

Specifies to compute the square of the gradient of the image using the Shen-Castan or Canny-Deriche filter.

Collapse M_FIRST_DERIVATIVE_X

Specifies to compute the first derivative of the image with respect to X using the Shen-Castan or Canny-Deriche filter.

Collapse M_FIRST_DERIVATIVE_Y

Specifies to compute the first derivative of the image with respect to Y using the Shen-Castan or Canny-Deriche filter.

Collapse M_HORIZ_EDGE

Specifies to compute the absolute value of the horizontal derivative of the image using the Shen-Castan or Canny-Deriche filter.

Collapse M_LAPLACIAN_EDGE

Specifies to compute the Laplacian values of the image using the Shen-Castan or Canny-Deriche filter.

Collapse M_SECOND_DERIVATIVE_X

Specifies to compute the second derivative of the image with respect to X using the Shen-Castan or Canny-Deriche filter.

Collapse M_SECOND_DERIVATIVE_XY

Specifies to compute the second derivative of the image with respect to X and Y using the Shen-Castan or Canny-Deriche filter.

Collapse M_SECOND_DERIVATIVE_Y

Specifies to compute the second derivative of the image with respect to Y using the Shen-Castan or Canny-Deriche filter.

Collapse M_SHARPEN

Specifies to compute a sharpening operation on the image using the Shen-Castan or Canny-Deriche filter.

Collapse M_SMOOTH

Specifies to compute a smoothing operation on the image using the Shen-Castan or Canny-Deriche filter.

Collapse M_VERT_EDGE

Specifies to compute the absolute value of the vertical derivative of the image using the Shen-Castan or Canny-Deriche filter.

Collapse M_FILTER_SMOOTHNESS

Inquires the degree of smoothness (strength of the denoising) applied by the filter during the neighborhood operation.

If MbufControlNeighborhood() M_FILTER_TYPE is set to M_USER_DEFINED, then M_FILTER_SMOOTHNESS is not supported. SET

(summarize)
Collapse 0 <= Value <= 100

Specifies the smoothness value. INFO

Collapse M_FILTER_TYPE

Inquires the type of filter used to perform the neighborhood operation. SET

(summarize)
Collapse M_DERICHE

Specifies a Canny-Deriche Infinite Support filter. INFO

Collapse M_SHEN

Specifies a Shen-Castan Infinite Support Exponential filter. INFO

Collapse M_USER_DEFINED

Specifies a user-defined filter. INFO

Collapse M_NORMALIZATION_FACTOR

Inquires the normalization factor. SET

(summarize)
Collapse Value > 0

Specifies the normalization factor. INFO

For M_IMAGE + M_COMPRESS image buffers (see MbufAlloc...() for possible values), you can set the InquireType parameter to one of the following values.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For M_IMAGE + M_COMPRESS image buffers
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_COMPRESSION_TYPE
[For essential MIL-Lite information, see remarks ]

Inquires the type of compression. SET SET

(summarize)
Collapse M_JPEG2000_LOSSLESS

Specifies that the buffer holds JPEG2000 lossless data. INFO

Collapse M_JPEG2000_LOSSY

Specifies that the buffer holds JPEG2000 lossy data. INFO

Collapse M_JPEG_LOSSLESS

Specifies that the buffer holds JPEG lossless data. INFO

Collapse M_JPEG_LOSSLESS_INTERLACED

Specifies that the buffer holds JPEG lossless data in separate fields. INFO

Collapse M_JPEG_LOSSY

Specifies that the buffer holds JPEG lossy data. INFO

Collapse M_JPEG_LOSSY_INTERLACED

Specifies that the buffer holds JPEG lossy data in separate fields. INFO

For M_IMAGE + M_COMPRESS image buffers with a M_JPEG_LOSSY, M_JPEG_LOSSY_INTERLACED, or M_JPEG2000_LOSSY compression type, you can set the InquireType parameter to one of the following values.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For M_IMAGE + M_COMPRESS (with M_JPEG_LOSSY, M_JPEG_LOSSY_INTERLACED, or M_JPEG2000_LOSSY)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_Q_FACTOR +
[For essential MIL-Lite information, see remarks ]

Inquires the quantization factor for both JPEG2000 lossy and JPEG lossy buffers. Note that for 3-band buffers, only the quantization factor associated with the first band is returned. SET

(summarize)
Collapse 1 <= Value <= 99

Specifies the quantization factor. INFO

Collapse M_Q_FACTOR_CHROMINANCE
[For essential MIL-Lite information, see remarks ]

Inquires the quantization factor of the U and V bands for both JPEG2000 lossy and JPEG lossy buffers in YUV format. SET

(summarize)
Collapse 1 <= Value <= 99

Specifies the factor. INFO

Collapse M_Q_FACTOR_LUMINANCE
[For essential MIL-Lite information, see remarks ]

Inquires the quantization factor of the Y band for both JPEG2000 lossy and JPEG lossy buffers in YUV format. SET

(summarize)
Collapse 1 <= Value <= 99

Specifies the factor. INFO

Collapse M_QUANTIZATION +
[For essential MIL-Lite information, see remarks ]

Inquires the identifier of the array buffer containing the quantization table (for a JPEG lossy or JPEG2000 lossy buffer), which is associated with the image buffer. Note that for 3-band buffers, only the identifier of the array buffer associated with the first band is returned. SET

(summarize)
Collapse MIL M_ARRAY buffer identifier

Specifies the identifier of the array buffer containing the table.

Collapse M_QUANTIZATION_CHROMINANCE
[For essential MIL-Lite information, see remarks ]

Inquires the identifier of the array buffer containing the quantization table associated with the U and V bands, for both JPEG2000 lossy and JPEG lossy buffers in YUV format. SET

(summarize)
Collapse MIL M_ARRAY buffer identifier

Specifies the identifier of the array buffer containing the table.

Collapse M_QUANTIZATION_LUMINANCE
[For essential MIL-Lite information, see remarks ]

Inquires the identifier of the array buffer containing the quantization table associated with the Y band, for both JPEG2000 lossy and JPEG lossy buffers in YUV format. SET

(summarize)
Collapse MIL M_ARRAY buffer identifier

Specifies the identifier of the array buffer containing the table.

For M_IMAGE + M_COMPRESS image buffers with a M_JPEG2000_LOSSY or M_JPEG2000_LOSSLESS compression type, you can set the InquireType parameter to one of the following values.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For M_IMAGE + M_COMPRESS (with M_JPEG2000_LOSSY or M_JPEG2000_LOSSLESS)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_DECOMPOSITION_LEVEL +
[For essential MIL-Lite information, see remarks ]

Inquires the number of iterations the discrete wavelet transform is applied to the image (for single-band images) or on the first band of the image (for 3-band images). SET

(summarize)
Collapse Value >= 0

Specifies the number of iterations (decomposition levels). INFO

Collapse M_NUMBER_SUBBAND +
[For essential MIL-Lite information, see remarks ]

Inquires the number of sub-bands rendered from the discrete wavelet transform passed on an image (for 1-band images) or on the first band of a 3-band image.

(summarize)
Collapse Value

Specifies the number of sub-bands.

Combination constants for the values listed in For M_IMAGE + M_COMPRESS (with M_JPEG2000_LOSSY or M_JPEG2000_LOSSLESS); and for the following values: M_Q_FACTOR; M_QUANTIZATION.

You can add one of the following values to the above-mentioned values to set the band about which to inquire.

Note that when dealing with M_Q_FACTOR and M_QUANTIZATION, the following combination constants are available only for use with JPEG2000 lossy buffers.

function map For M_DECOMPOSITION_LEVEL, M_NUMBER_SUBBAND, M_Q_FACTOR (for JPEG2000 lossy buffers), and M_QUANTIZATION (for JPEG2000 lossy buffers)
CollapseCombination value Description
Collapse M_BLUE

Inquires about the blue band only (for RGB buffers).

Collapse M_GREEN

Inquires about the green band only (for RGB buffers).

Collapse M_RED

Inquires about the red band only (for RGB buffers).

Collapse M_U

Inquires about the U band only (for YUV buffers).

Collapse M_V

Inquires about the V band only (for YUV buffers).

Collapse M_Y

Inquires about the Y band only (for YUV buffers).

For M_IMAGE + M_COMPRESS image buffers with a M_JPEG2000_LOSSY compression type, you can set the InquireType parameter to the following value.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For M_IMAGE + M_COMPRESS (with M_JPEG2000_LOSSY)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_TARGET_SIZE
[For essential MIL-Lite information, see remarks ]

Inquires the requested size of the compressed buffer in bytes.

Use M_SIZE_BYTE to establish the real size of the buffer. SET

(summarize)
Collapse M_DEFAULT

Specifies M_DEFAULT if no size has been requested.

Collapse Value > 0

Specifies the size, in bytes. INFO

For M_IMAGE + M_COMPRESS image buffers with a M_JPEG_LOSSY, M_JPEG_LOSSY_INTERLACED, M_JPEG_LOSSLESS, or M_JPEG_LOSSLESS_INTERLACED compression type, you can set the InquireType parameter to one of the following values.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For M_IMAGE + M_COMPRESS (with M_JPEG_LOSSY, M_JPEG_LOSSY_INTERLACED, M_JPEG_LOSSLESS, or M_JPEG_LOSSLESS_INTERLACED)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_HUFFMAN_DC
[For essential MIL-Lite information, see remarks ]

Inquires the identifier of the array buffer containing the DC Huffman table which is associated with the image buffer. For 3-band buffers, only the identifier of the array buffer associated with the first band is returned. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_ID

Collapse MIL M_ARRAY buffer identifier

Specifies the identifier of the array buffer containing the table. INFO

Collapse M_HUFFMAN_DC_CHROMINANCE
[For essential MIL-Lite information, see remarks ]

Inquires the identifier of the array buffer containing the DC Huffman table that is associated with the U and V bands of a JPEG lossy buffer in YUV format. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_ID

Collapse MIL M_ARRAY buffer identifier

Specifies the identifier of the array buffer containing the table.

Collapse M_HUFFMAN_DC_LUMINANCE
[For essential MIL-Lite information, see remarks ]

Inquires the identifier of the array buffer containing the DC Huffman table that is associated with the Y band of a JPEG lossy buffer in YUV format. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_ID

Collapse MIL M_ARRAY buffer identifier

Specifies the identifier of the array buffer containing the table.

For M_IMAGE + M_COMPRESS image buffers with a M_JPEG_LOSSLESS or M_JPEG_LOSSLESS_INTERLACED compression type, you can set the InquireType parameter to one of the following values.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For M_IMAGE + M_COMPRESS (with M_JPEG_LOSSLESS, or M_JPEG_LOSSLESS_INTERLACED)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_PREDICTOR
[For essential MIL-Lite information, see remarks ]

Inquires the type of predictor. This inquire type is supported for JPEG lossless buffers only. SET

(summarize)
Collapse 0

Specifies predictor #0 (no prediction).

Collapse 1

Specifies predictor #1 (the "pixel-to-the-left" predictor).

Collapse 2

Specifies predictor #2 (the "pixel-above" predictor).

Collapse M_RESTART_INTERVAL
[For essential MIL-Lite information, see remarks ]

Inquires the number of lines between restart markers (for JPEG lossless buffers) or number of 8x8 blocks of data between restart markers (for JPEG lossy buffers). SET

(summarize)
Collapse Value >= 0

Specifies after how many rows (for JPEG lossless buffers) or 8x8 blocks (for JPEG lossy buffers) of data to place restart markers. INFO

For M_IMAGE + M_COMPRESS image buffers with a M_JPEG_LOSSY or M_JPEG_LOSSY_INTERLACED compression type, you can set the InquireType parameter to one of the following values.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.

function map For M_IMAGE + M_COMPRESS (with M_JPEG_LOSSY, or M_JPEG_LOSSY_INTERLACED)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_HUFFMAN_AC
[For essential MIL-Lite information, see remarks ]

Inquires the identifier of the array buffer containing the AC Huffman table that is associated with the image buffer. For 3-band buffers, only the identifier of the array buffer associated with the first band is returned. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_ID

Collapse MIL M_ARRAY buffer identifier

Specifies the identifier of the array buffer containing the table. INFO

Collapse M_HUFFMAN_AC_CHROMINANCE
[For essential MIL-Lite information, see remarks ]

Inquires the identifier of the array buffer containing the AC Huffman table that is associated with the U and V bands of a JPEG buffer in YUV format. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_ID

Collapse MIL M_ARRAY buffer identifier

Specifies the identifier of the array buffer containing the table.

Collapse M_HUFFMAN_AC_LUMINANCE
[For essential MIL-Lite information, see remarks ]

Inquires the identifier of the array buffer containing the AC Huffman table that is associated with the Y band of a JPEG buffer in YUV format. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_ID

Collapse MIL M_ARRAY buffer identifier

Specifies the identifier of the array buffer containing the table.

Return value
The returned value is the requested information, cast to a MIL_INT; if the requested information cannot be retrieved, M_ERROR is returned. For inquire types which specify that the UserVarPtr parameter must be set to the address of a MIL_INT64 or MIL_DOUBLE, the return value is M_NULL.
Remarks
  • [MIL-Lite]
    Note that during development and at runtime, compression support, particularly for an M_COMPRESS buffer type, requires the presence of a MIL license that grants access to the compression/decompression package. This access is only granted by default with the development license dongle for the full version of MIL. In other cases, you must purchase access to this package separately.
  • [MIL-Lite]
    While an image buffer with an M_KERNEL or an M_STRUCT_ELEMENT attribute are available under MIL-Lite, these attributes are not required for the image buffer to be available to other MIL-Lite functions.
Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
ALLOCATION OVERSCAN SIZE ANCESTOR ID ANCESTOR OFFSET BAND ANCESTOR OFFSET BIT ANCESTOR OFFSET X ANCESTOR OFFSET Y ASSOCIATED LUT DEFAULT BITMAPINFO NULL DATA FORMAT PACKED PACKED PLANAR PLANAR DATA TYPE FLOAT SIGNED UNSIGNED DC HANDLE NULL DDRAW SURFACE NULL DIB HANDLE NULL EXTENDED ATTRIBUTE ARRAY ARRAY IMAGE IMAGE KERNEL LUT LUT STRUCT ELEMENT EXTENDED FORMAT ARRAY ARRAY IMAGE IMAGE KERNEL LUT LUT STRUCT ELEMENT HOST ADDRESS NULL MAP DISABLE ENABLE MAX MIN MODIFICATION COUNT MODIFICATION HOOK DISABLE ENABLE OWNER SYSTEM DEFAULT HOST OWNER SYSTEM TYPE SYSTEM 1394 TYPE SYSTEM CRONOSPLUS TYPE SYSTEM GIGE VISION TYPE SYSTEM GPU TYPE SYSTEM HOST TYPE SYSTEM IRIS GT TYPE SYSTEM MORPHIS TYPE SYSTEM MORPHISQXT TYPE SYSTEM ORION HD TYPE SYSTEM RADIENT TYPE SYSTEM RADIENTCLHS TYPE SYSTEM RADIENTCXP TYPE SYSTEM RADIENTEVCL TYPE SYSTEM RADIENTPRO TYPE SYSTEM SOLIOS TYPE SYSTEM USB3 VISION TYPE SYSTEM VIO TYPE PARENT ID PARENT OFFSET BAND PARENT OFFSET X PARENT OFFSET Y PHYSICAL ADDRESS NULL PHYSICAL ADDRESS REMOTE NULL PITCH PITCH BYTE REGION TYPE NONE RASTER VECTOR VECTOR AND RASTER RESOLUTION X RESOLUTION Y SIZE BAND SIZE BIT SIZE BYTE SIZE X SIZE Y SYSTEM LOCATION LOCAL REMOTE TYPE FLOAT SIGNED UNSIGNED XPIXMAP HANDLE NULL YCBCR RANGE DISABLE YCBCR HD YCBCR SD RGB24 RGB48 YUV16 BGR24 BGR32 RGB15 RGB16 YUV16 UYVY YUV16 YUYV RGB3 RGB96 YUV9 YUV12 YUV24 HOST MEMORY MAPPABLE OFF BOARD ON BOARD VIDEO MEMORY MEMORY BANK n NON PAGED PAGED COMPRESS DISP GRAB PROC JPEG2000 LOSSLESS JPEG2000 LOSSY JPEG LOSSLESS JPEG LOSSLESS INTERLACED JPEG LOSSY JPEG LOSSY INTERLACED ALLOCATION OVERSCAN DIB DIRECTX GDI LINUX MXIMAGE FPGA ACCESSIBLE FAST MEMORY SHARED PACKED PLANAR OFFSET CENTER X OFFSET CENTER Y OVERSCAN DEFAULT DISABLE FAST MIRROR REPLACE TRANSPARENT OVERSCAN REPLACE VALUE REPLACE MAX REPLACE MIN SATURATION DISABLE ENABLE ABSOLUTE VALUE DISABLE ENABLE FILTER MODE KERNEL RECURSIVE FILTER OPERATION EDGE DETECT EDGE DETECT SQR FIRST DERIVATIVE X FIRST DERIVATIVE Y HORIZ EDGE LAPLACIAN EDGE SECOND DERIVATIVE X SECOND DERIVATIVE XY SECOND DERIVATIVE Y SHARPEN SMOOTH VERT EDGE FILTER SMOOTHNESS FILTER TYPE DERICHE SHEN USER DEFINED NORMALIZATION FACTOR COMPRESSION TYPE JPEG2000 LOSSLESS JPEG2000 LOSSLESS JPEG2000 LOSSY JPEG2000 LOSSY JPEG LOSSLESS JPEG LOSSLESS JPEG LOSSLESS INTERLACED JPEG LOSSLESS INTERLACED JPEG LOSSY JPEG LOSSY JPEG LOSSY INTERLACED JPEG LOSSY INTERLACED Q FACTOR Q FACTOR CHROMINANCE Q FACTOR LUMINANCE QUANTIZATION ARRAY buffer identifier QUANTIZATION CHROMINANCE ARRAY buffer identifier QUANTIZATION LUMINANCE ARRAY buffer identifier DECOMPOSITION LEVEL NUMBER SUBBAND BLUE GREEN RED U V Y TARGET SIZE DEFAULT HUFFMAN DC ARRAY buffer identifier HUFFMAN DC CHROMINANCE ARRAY buffer identifier HUFFMAN DC LUMINANCE ARRAY buffer identifier PREDICTOR RESTART INTERVAL HUFFMAN AC ARRAY buffer identifier HUFFMAN AC CHROMINANCE ARRAY buffer identifier HUFFMAN AC LUMINANCE ARRAY buffer identifier COMPRESS PROC