Calculating the Minimum and The Maximum of a Slidig Window
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
How would you create the fastest implementation to extract the Minimum and the Maximum of a Local Sliding Window over an image?
So far I used this:
localMaxImage = colfilt(inputImage, [winLength winLength], 'sliding', @max);
localMinImage = colfilt(inputImage, [winLength winLength], 'sliding', @min);
Yet it is really slow. I know I can use `imerode` and `imdilate`, Yet I'm looking for a toolbox free implementation. Thank You.
2 件のコメント
José-Luis
2014 年 9 月 8 日
編集済み: Image Analyst
2014 年 9 月 11 日
Royi, you have asked 23 questions in this forum so far and not accepted a single one. Have you had bad luck with your answers? If not, seeing that might make contributors here less inclined to help you.
採用された回答
Matt J
2014 年 9 月 11 日
I've never used it, but this FEX contribution is MEX-driven, and so should be fast
0 件のコメント
その他の回答 (1 件)
Anand
2014 年 9 月 11 日
What do you mean toolbox-free? colfilt is also from the Image Processing Toolbox. Can you use ordfilt2
localMaxImage = ordfilt2(inputImage, winLength^2, true(winLength));
localMinImage = ordfilt2(inputImage, 1 , true(winLength));
This should be faster than colfilt, but maybe you can't use it.
参考
カテゴリ
Help Center および File Exchange で Computer Vision with Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!