Asked by mahesh chathuranga
on 20 Sep 2013

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.

*No products are associated with this question.*

Answer by Image Analyst
on 20 Sep 2013

Accepted answer

It gives a single number but you can multiply by ones(blockSize) to expand it. See the attached demos scripts.

Show 5 older comments

mahesh chathuranga
on 25 Sep 2013

It gives the error message ??? Undefined function or method 'blockproc' for input arguments of type 'function_handle'.

Error in ==> Untitled at 44 blockyImage8 = blockproc(single(grayImage), blockSize, medianFilterFunction);

Image Analyst
on 25 Sep 2013

mahesh chathuranga
on 25 Sep 2013

I,m working with R2009a,it uses blkproc. but is there any method in matlab to find the old codes.

Opportunities for recent engineering grads.

## 0 Comments