how to slide different horizontal window over an image pixel by pixel and store each generated sub image ?
조회 수: 3 (최근 30일)
이전 댓글 표시
i want to slide different size of horizontal window pixel by pixel over an input image and save each generated sub image after fitting this window. But at a time only one window will be used. can any one please provide me the code for this? i also think that according to window size i have to padding with same size with input image. please help someone
댓글 수: 0
답변 (1개)
Ameer Hamza
2018년 6월 1일
It seems like you want 2d convolution of an image. Use conv2.
result_Image = conv2(image, window);
In default options, it will automatically pad zeros.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!