I need to implemet sliding window 30*7 for features extraction
1 次查看(过去 30 天)
显示 更早的评论
Hello every one, I am working Text line recognition. I need to implemet sliding window 30*7 for features extraction as upper profile, mean of gravity, moment etc. Please guide me or send me code. I am totally new in this field and in matlab. Thank you in advance.
Saeeda
0 个评论
采纳的回答
Image Analyst
2014-4-6
If you're going to be doing specialized custom operations at each window location, then you need to us nlfilter. You define a function and then do whatever you want in there. Attached is a demo. Of you could have some nested for loops, over rows and columns, then inside there call a function like AnalyzeWindow() which you write to do your operations and return your feature vector.
[rows, columns, numberOfColorChannels] = size(yourImage);
for col = 1 : columns-7
for row = 1 : rows-30
results = AnalyzeWindow(yourImage, row, column); % You write this function.
end
end
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Language Support 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!