필터 지우기
필터 지우기

how can i use the function blockproc to move the sliding window in smaller jumps (one pixel) than the window size by using the BorderSize parameter?

조회 수: 1 (최근 30일)
This link describe what i must do: http://www.fp.ucalgary.ca/mhallbey/texture_calculations.htm (it's a texture calculation). For each sliding window (sub image), i make its cooccurrence matrix and i calculate its texture measure (exemple: contrast)and this value is affected to the central pixel of this current window. i know that blockproc() moves in "jumps" of the window size. so how can i do to make blockproc() to move in smaller jumps (one pixel).

답변 (1개)

Image Analyst
Image Analyst 2012년 12월 1일
편집: Image Analyst 2012년 12월 1일
Use nlfilter instead.
By the way, there is a function that computes the gray level co-occurrence matrix you know. It's called graycomatrix().
  댓글 수: 5
Image Analyst
Image Analyst 2012년 12월 1일
You're welcome. Is your problem solved then? If so, mark as "Answered."
doudou
doudou 2012년 12월 2일
i still have a little problem concerning the parameters of textureFeature() or graycoprops(glcm, properties). Normally glcm is a constant matrix, but in my case it is variable (sliding window)i'm still blocked, can you help me to write the right syntax? example: Im2=nlfilter(Im1,[3 3],@graycoprops(??,'contrast')

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

Community Treasure Hunt

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

Start Hunting!

Translated by