Hello J Gudenkauf,
Here is a little clarification to the problem you are experiencing.
When you reduce the Region of Interest (ROI), you are reducing the amount of the image that is transferred from the framegrabber.
- In your case, the original image is 1392 x 1039, so the entire image is sent from the camera to the framegrabber (1424).
- When you set the ROI, the framegrabber will only transfer the ROI accross the PCI bus to system memory (allowing more PCI bandwidth for other processes).
- The ROI will now fit the space you have, but the entire image is not available to save (so this is the reason for the black pixel border).
Here are couple of suggestions that I have to work around this issue:
- If you have IMAQ Vision, there is a function (IMAQ
Resample) that will resize an image. One application could be to creating thumbnails of an image (same Field of View but lower resolution). A similar function is IMAQ Extract that will crop a subset of the image (smaller Field of View but preserving the image resolution). Both of these functions require IMAQ Vision.
- NI-IMAQ (the driver for the 1424) has the ability to scale an image by capturing every other, 4th or 8th pixel. The Field of View is preserved, but the image resolution is lose. You can access this parameter in MAX by adjusting the Scale parameter (property of the camera).
Here are some insights to your issue, and please let me know if you have any questions,
Alan Hagler