How to divide an image into blocks?

2 visualizaciones (últimos 30 días)
Rachel
Rachel el 18 de En. de 2014
Comentada: Image Analyst el 9 de Feb. de 2017
I am new to MATLAB.
I am trying to write code which will divide the image in nonoverlaping blocks of size 5*5. I am supposed to do operations on specific blocks like getting the value of the center pixel of block and count the number of black and white pixels in each block.
Thanks in advance!

Respuestas (2)

Image Analyst
Image Analyst el 18 de En. de 2014

hamed abdulaziz
hamed abdulaziz el 18 de En. de 2014
There is already an excellent answer from excellent Mathworks answers, may be useful:
  2 comentarios
ROSE MARY KATIKALA
ROSE MARY KATIKALA el 9 de Feb. de 2017
1. Read the image. 2. Image is divided in to sub-blocks of size M x N 3. For each sub block, standard deviation is calculated to increase intensity of image object. 4. Global threshold is applied for each sub block which has standard deviation as greater than one. 5. The above process is repeated for each and every sub block of entire image.
i need this ..can u please help me out..
Image Analyst
Image Analyst el 9 de Feb. de 2017
See my attached demos that can do that, with very small modifications.

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by