필터 지우기
필터 지우기

Calculating the Minimum and The Maximum of a Slidig Window

조회 수: 1 (최근 30일)
Royi Avital
Royi Avital 2014년 4월 23일
답변: Matt J 2014년 9월 11일
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
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.
Royi Avital
Royi Avital 2014년 9월 8일
Well, I guess as you see, I don't remember getting the right answer. You may look at my profile in StackExchange, I accept more than 80% of answers.
Anyhow, When I try answering someone, I never look at that. We're not trying to get scored, we're trying to assist people and build well organized information source.

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2014년 9월 11일
I've never used it, but this FEX contribution is MEX-driven, and so should be fast

추가 답변 (1개)

Anand
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 CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by