--------------------------------------------------------------------------------
               Matrox Imaging Library (6.1) Milgen.txt Readme File
                                  May 15, 2000
     Copyright  2000 by Matrox Electronic Systems Ltd. All rights reserved.
--------------------------------------------------------------------------------


This document explains the current limitations and particularities when using
MIL with Matrox Genesis (subject to change in future releases). 


Contents

1. Matrox Genesis with MIL.
   1.1 Commands common to both MIL and MIL-Lite.
   1.2 Commands specific to MIL.
2. Matrox Genesis with ActiveMIL.
3. Matrox Genesis with Intellicam.


1. Matrox Genesis with MIL.

   1.1 Commands common to both MIL and MIL-Lite.
       
       - MdigControl(), MdigInquire():
         M_GRAB_INPUT_GAIN is used to set/get the input-signal's gain (see the 
         Board-specific notes). Used alone, this control will apply to all the 
         selected channels of the camera. However, it is also possible to apply 
         this control to a specific channel(M_CH0, M_CH1, M_CH2 or M_CH3). For 
         example, the following command will set the gain of channels 0 and 3 to 
         M_GAIN3: 
         MdigControl(DigId,M_GRAB_INPUT_GAIN+M_CH0+M_CH3,M_GAIN3). Note that 
         while MdigControl() can apply to many channels, MdigInquire() can only 
         apply to one channel at a time.  

       - MdigGrab():
         On Matrox Genesis and Matrox Genesis-LC, only vertical sub-sampling 
         factors that are a multiple of 2 are supported when grabbing in a Host 
         buffer (i.e. M_GRAB_SCALE_Y with 1/2,1/4,...,1/16).

       - MdigGrabWait():             
         M_GRAB_NEXT_FIELD is not supported.

       - MdigHookFunction():         
         On Matrox Genesis-LC, M_GRAB_FRAME_START and 
         M_GRAB_FIELD_END/_ODD/_EVEN are not supported.

       - MsysAlloc():                
         When using MIL with a Matrox Genesis system that has more than one node 
         (located on the same board, or on multiple boards), you can allocate 
         each node as described in the Board-specific notes, or you can add 
         M_NODE# (where # represents the node number) to the system number.  For 
         example, to allocate the 2 nodes on a Matrox Genesis processor board 
         system use:
               MsysAlloc(...,M_DEV0+M_NODE0,...,...) for the 1st node,
               MsysAlloc(...,M_DEV0+M_NODE1,...,...) for the 2nd node.
    
   1.2 Commands specific to MIL.

       - MimResize(), MimRotate():
         Overscan defaults to M_CLEAR regardless of the interpolation mode 
         specified.
                              
       - MpatGetResult():
         For time critical applications, it is possible to get the number of 
         matches, the scores, and the positions in one call using Matrox Genesis
         native functions.  For more information, please refer to the 
         README.TXT file in the \GENESIS\DOC directory.

       - MpatSetSearchParameter():   
         Models allocated and saved on a Matrox Genesis system cannot be 
         restored on a Host system. To save a Matrox Genesis model in a Host 
         compatible format, issue the MpatSetSearchParameter() command with the 
         "Parameter" parameter set to M_MODEL_FILE_TYPE, and the "Value" 
         parameter set to M_MODEL_FILE_TYPE_HOST before saving the model. To 
         re-enable the saving in a Matrox Genesis format, set the "Value" 
         parameter to M_MODEL_FILE_TYPE_GENESIS. Note that models saved in a 
         Matrox Genesis format have better pixel resolution than those saved in 
         a Host format.
       
            
2. Matrox Genesis with ActiveMIL.

   - In the Digitizer control: 
     - On Matrox Genesis-LC, the GrabFrameStart, GrabFieldEnd, GrabFieldEndOdd, 
       and GrabFieldEndEven events are not supported.
     - The Grab method: On Matrox Genesis and Matrox Genesis-LC, only vertical 
       sub-sampling factors that are a multiple of 2 are supported when grabbing 
       in a Host buffer. That is, Digitizer.ScaleY =  1/2,1/4,...,1/16.
     - The GrabWait method: mGrabNextField is not supported.

   - Native board-level programming is not possible under Windows NT using
     Visual Basic.


3. Matrox Genesis with Intellicam.

   - When selecting the Matrox Genesis board for the first time in Intellicam, 
     you will be prompted to select the board type. If you check the "Save board 
     type" option, you will never be prompted again. The following explains how
     to undo the "Save board type" option, so you will be prompted again with 
     the Matrox Genesis Board Type Dialog Box:
     
     Run REGEDIT and delete the following key: 
     HKEY_CURRENT_USER\Software\Matrox\Intellicam\Settings\GenesisBoardType
 
