Could someone give me MATLAB code for slide window over an image ?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I want to slide window over an image from left to right with different scales and positions. Could someone give me MATLAB code to do it? Thanks in advance.
댓글 수: 0
답변 (1개)
Image Analyst
2014년 5월 13일
You can do it with conv() or imfilter() but the window must stay the same as it slides along. You can do this
out = conv2(double(in), windowValues);
out = imfilter(in, windowValues);
You might be able to change the window size on the fly if you use blockproc, nlfilter, or do it yourself with nested for loops.
댓글 수: 2
Image Analyst
2014년 5월 13일
Never heard of it. I don't have code for that. Check the Computer Vision System Toolbox, which has tracking capabilities.
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!