Performance optimation MATLAB Image Processing
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello,
i created a code to do some image processing with the videostream of a gige-Camera. Unfortunately i have some performance issues. May you could help me with some trick?
Here is a short summary of my program:
// get the videostream:
vid = videoinput('gige', 1, 'Mono8');
// use a loop to grap a single frames from the videostream and do some image processing (here corner detection):
for k = 1:100
frame = getsnapshot(vid);
corner_detection = corner(frame, 9,'SensitivityFactor',0.10,'QualityLevel',0.1)
end
Unfortunately this solution is very slow. So is there a way in MATLAB to increase the performance? For exampel use pointer instead of variables?
댓글 수: 0
답변 (2개)
Walter Roberson
2016년 1월 19일
If you have the Computer Vision toolbox, try http://www.mathworks.com/help/vision/ref/vision.cornerdetector-class.html
Note: No, MATLAB does not offer pointers at the user interface. If you care to write your code in C or C++ then when it is possible to get a true pointer to the data block that stores the array.
댓글 수: 0
Madhura Suresh
2016년 1월 20일
It might give you better performance.
Also, instead of using snapshot - you can increase the FramesPerTrigger, get all the frames and process them later
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 GigE Vision Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!