Supporting ROIs Test Procedure
As part of the Image Acquisition Toolbox Adaptor Kit, we now offer a test procedure and automated tests for third-party adaptor developers and camera vendors to test adaptors and hardware against the toolbox. This test procedure is part of that suite. For more information, see Testing Adaptors or Hardware.
After implementing ROIs per instructions in “Supporting ROIs” in this Adaptor Kit documentation, follow these steps to test region of interest (ROI).
|Test Procedures||Expected Results|
|Run the following commands:
vidObj = videoinput ('AdaptorName'); vidObj.ROIPosition = [xoffset yoffset x y]; frame = getsnapshot(vidObj); size(frame); image(frame);
xoffset: integer value that defines x offset yoffset: integer value that defines y offset x: new width y: new height
example, if the original
vidObj.ROIPosition = [100 100 320 240]
The output of
To clean up after this step, delete and clear the object.