필터 지우기
필터 지우기

How to get a rectangular sliding window around a pixel?

조회 수: 2 (최근 30일)
Rachel
Rachel 2014년 1월 21일
답변: Image Analyst 2014년 1월 21일
I am new to matlab and I would really appreciate any help!
I want to implement a rectangular sliding window around a pixel and perform some operations on it. Can someone help me do the rectangular sliding window part?
Thanks in advance!

채택된 답변

Walter Roberson
Walter Roberson 2014년 1월 21일
blkproc()

추가 답변 (1개)

Image Analyst
Image Analyst 2014년 1월 21일
What do you want to do? How about imfilter() or conv2() for simple linear filters. If you want nonlinear filters (basically any custom operations that you can think of, you can use nlfilter(). Attached is an example of nlfilter() to take the variance in a local sliding window.

Community Treasure Hunt

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

Start Hunting!

Translated by