Limits of ROI in imaqtool
조회 수: 3 (최근 30일)
이전 댓글 표시
I am working on a code that will use the Image Acquisition Tool in the command line with functions I have created. Currently I am having problems with the Range of Interest commands, and I keep getting an error that says:
Error using imaqdevice/subsasgn (line 33)
VideoResolution width exceeded. The sum of the ROIPosition X offset and Width values is too large.
I understand this is because the numbers entered are too large for the system to handle, but I ma trying to create a function that will handle this. I created a line already that dealt with possible negatives in X-Offset and Y-Offset, but I need to either change this or add another line that will catch the above error. Here is the code I have already:
vid.ROIPosition = [max(0,ROI(1)),max(0,ROI(2)),min(ROI(3),CurROI(3)),min(ROI(4),CurROI(4))];
Anything would be helpful, thank you!
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Acquisition Using Image Acquisition Explorer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!