필터 지우기
필터 지우기

problem of applying block processing function

조회 수: 1 (최근 30일)
mahesh chathuranga
mahesh chathuranga 2013년 9월 20일
my image is gray scale image of 100*120. my programme is
*fun=@(x) x.*2;
B = blkproc(I,[4 4],[1 1],fun);*
when i'm looking for 1st sub block it gives only a single number, it equals to the twice of (1,1) pixel value of original image. can't i get the twice of 1st 4*4 block.is it possible or not.

채택된 답변

Image Analyst
Image Analyst 2013년 9월 20일
It gives a single number but you can multiply by ones(blockSize) to expand it. See the attached demos scripts.
  댓글 수: 8
Image Analyst
Image Analyst 2013년 9월 25일
You must have a really, really old version of MATLAB. It had a different name back then, something like blkproc, blkprc, or something like that. You need to find out what it's called in your ancient version of MATLAB. Or just upgrade.
mahesh chathuranga
mahesh chathuranga 2013년 9월 25일
I,m working with R2009a,it uses blkproc. but is there any method in matlab to find the old codes.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by