| cancelCapture | Cancels a capture in progress, if any. |
| capture[=dataFolderAndName] | |
| Captures a single frame and store it in a wave. |
| dataFolderAndName is a data folder path to a wave or a simple name of a wave in the current data folder. The wave may or may not exist when you invoke capture. If it does exist, it is overwritten. |
| If you omit =dataFolderAndName, ModifyCamera creates the wave with the name M_Frame in the current data folder. |
| The created wave is a three-layer RGB wave of type unsigned byte. |
| It is best to use the capture keyword without any other keywords because the order of execution of keywords is unspecified. |
| ModifyCamera executes the capture before returning control to Igor. The time required is hardware-dependent and sets the speed limit when capturing a sequence of frames. |
| customFocusPoint={fx,fy} | |
| Specifies a custom focus point where fx and fy are in the range [0,1] in relative frame coordinates measured from the top-left corner of the frame. You must invoke setFocusPointMode before other keywords to set a custom focus point. |
| grabSequence={nf ,dt } | Grabs a sequence of nf frames every dt milliseconds and stores the frames in the 4D wave M_FrameSequence in the current data folder. |
| nf and dt are integers greater than or equal to 1. |
| Time resolution is on the order of 1 millisecond and may be further degraded by hardware limitations. |
| grabToFunction | Starts a continuous loop of grabbing camera frames and passing them to the user function specified by the grabFunctionName keyword. The loop is terminated when the user function returns a negative number or a timeout occurs. For details, see GrabToFunction Details below. |
| grabFunctionName=func | |
| Sets the user function that is called continuously when you execute the grabToFunction keyword. For details, see GrabToFunction Details below. |
| setPixelFormat=pixelFormatStr | |
| pixelFormatStr is a string containg one of the following: |
| ARGB32, ARGB32_Premultiplied, RGB32, RGB24, RGB565, RGB555, ARGB8565_Premultiplied, BGRA32, BGRA32_Premultiplied, BGR32, BGR24, BGR565, BGR555, BGRA5658_Premultiplied, AYUV444, Format_AYUV444_Premultiplied, YUV444, YUV420P, YV12, UYVY, YUYV, NV12, NV21, Format_IMC1, Format_IMC2, Format_IMC3, Format_IMC4, Format_Y8, Format_Y16, Format_Jpeg, |
| While the various "Premultiplied" formats are supported, they are not useful because all exports are strictly in RGB (no alpha). Also, since the capture results in an RGB wave, any pixel format choice here would potentially entail additional time-consuming conversions from the internal format to RGB. |
| searchAndLock | In stillImage capture mode, this keyword instructs the camera to search and lock the focus in preparation for a capture. |
| setAspectRatio={w,h} | Sets the viewing aspect ratio in pixels. |
| setAutoAperture | Tells the camera driver to determine the best aperture setting. |
| setAutoISOSensitivity | Tells the camera driver to determine the optimal ISO setting. |
| setAutoShutterSpeed | Tells the camera driver to determine the optimal shutter speed. |
| setCaptureMode=cm | Sets the capture mode: |
| | cm = 0: | Preview | | cm = 1: | Still image | | cm = 2: | Video capture |
|
| setColorFilter=cf | Sets the color filter that is applied to the input. Supported filters include: |
| | Value | Filter | | 0 | None | | 1 | Grayscale | | 2 | Negative | | 3 | Solarize | | 4 | Sepia | | 5 | Posterize | | 6 | Whiteboard | | 7 | Blackboard | | 8 | Aqua | | 1000 | Start of vendor-specific color filters |
|
| setContrast=contrast | Sets the contrast in the range [-1,1]. The default is 0. |
| setDenoising=dn | Sets denoising in the range [-1,1]. The default is 0. |
| setExposureComp=ec | Sets exposure compensation in ev units. |
| setExposureMode=em | Sets the camera's exposure mode. The following modes are supported: |
| | em | Exposure Mode | | 0 | Auto | | 1 | Manual | | 2 | Portrait | | 3 | Night | | 4 | Backlight | | 5 | Spotlight | | 6 | Sports | | 7 | Snow | | 8 | Beach | | 9 | Large aperture | | 10 | Small aperture | | 11 | Action | | 12 | Landscape | | 13 | Night portrait | | 14 | Theater | | 15 | Sunset | | 16 | Steady photo | | 17 | Fireworks | | 18 | Party | | 19 | Candlelight | | 20 | Barcode | | 1000 | Start of vendor-specific exposure modes |
|
| setFlashMode=fm | Sets the operating mode of the camera's flash. Supported flash modes are: |
| | fm | Flash Mode | | 1 | Auto | | 2 | Off | | 4 | On | | 8 | Redeye reduction | | 16 | Fill | | 32 | Torch | | 64 | Video light | | 128 | Front curtain | | 256 | Rear curtain | | 512 | Manual |
|
| setFocusMode=fm | Sets the camera's focus mode. Supported focus modes are: |
| | fm | Focus Mode | | 1 | Manual | | 2 | Hyperfocal | | 4 | Infinity | | 8 | Auto focus | | 16 | Continuous | | 32 | Macro |
|
| setFocusPointMode=fpm | |
| Sets the camera's focus point mode. Supported focus point modes are: |
| | Value | Focus Point Mode | | 0 | Auto | | 1 | Center | | 2 | Face detection | | 3 | Custom point |
|
| setFrameRate={min,max} | |
| Sets the frame rate in the range [min,max]. |
| setManualAperture=fn | Sets the aperture to a specific f-number. You may want to check that fn is in the supported range. See GetCamera supportedApertures. |
| setManualIsoSensitivity=isoInt | |
| Sets the ISO manually to isoInt. You may want to check that isoInt is in the supported list. See GetCamera supportedIsoSensitivities. |
| setManualShutterSpeed=ss | |
| Sets manual shutter speed to ss , in seconds. You may want to check that ss is within supported range. See GetCamera supportedShutterSpeeds. |
| setManualWB=temp | Sets the manual white balance to the specified temperature in degrees Kelvin. |
| setMeteringMode=mm | Sets the metering mode. Supported metering modes are: |
| | mm | Metering Mode | | 1 | Matrix | | 2 | Average | | 3 | Spot |
|
| setPixelFormat=pf | The following pixel format values are defined: |
| | pf | Pixel Format | | 1 | ARGB32 | | 2 | ARGB32_Premultiplied | | 3 | RGB32 | | 4 | RGB24 | | 5 | RGB565 | | 6 | RGB555 | | 7 | ARGB8565_Premultiplied | | 8 | BGRA32 | | 9 | BGRA32_Premultiplied | | 10 | BGR32 | | 11 | BGR24 | | 12 | BGR565 | | 13 | BGR555 | | 14 | BGRA5658_Premultiplied | | 15 | AYUV444 | | 16 | Format_AYUV444_Premultiplied | | 17 | YUV444 | | 18 | YUV420P | | 19 | YV12 | | 20 | UYVY |
|
| While the various "Premultiplied" formats are supported, they are not useful because all exports are strictly in RGB (no alpha). Also, since the capture results in an RGB wave, any pixelFormat choice here would potentially entail additional time-consuming conversions from the internal format to RGB. |
| setResolution={w,h} | Sets the resolution to w (width) and h (height). You may want to check that you are using values supported by the driver. See GetCamera viewfinderResolutions. |
| setSaturation=st | Sets the saturation change in the range [-1,1]. The default is 0. |
| setSharpening=sr | Sets the sharpening change in the range [-1,1]. The default is 0. |
| setSpotMeteringPoint={x,y} | |
| Sets the metering point. x and y are the horizontal and vertical fractions of the frame measured from the top-left corner and in the range [0,1]. |
| setWBMode=wb | Sets the white balance mode. Supported white balance modes are: |
| | wb | White Balance Mode | | 0 | Auto | | 1 | Manual | | 2 | Sunlight | | 3 | Cloudy | | 4 | Shade | | 5 | Tungsten | | 6 | Fluorescent | | 7 | Flash | | 8 | Sunset | | 1000 | Start of vendor-specific white balance modes |
|
| startPreview | Starts live video in the camera window. |
| stopPreview | Stops live video in the camera window. |
| unlock | Unlocks focus and return to focus searching. See the searchAndLock keyword. |
| zoomTo={opticalZoom, digitalZoom} | |
| Sets the camera's optical and digital zoom values. There may be a delay before the optical zoom attains the requested value. |