problem of applying block processing function
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuesta aceptada
Image Analyst
el 20 de Sept. de 2013
It gives a single number but you can multiply by ones(blockSize) to expand it. See the attached demos scripts.
8 comentarios
Image Analyst
el 25 de Sept. de 2013
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.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!