Borrar filtros
Borrar filtros

divide an image to blocks

1 visualización (últimos 30 días)
nadia
nadia el 31 de Oct. de 2014
Respondida: Image Analyst el 1 de Nov. de 2014
hi i have an 256*256 image and i want to divide it to 8*8 blocks without overlapping and then calculate DCT for each blocks. how to do it?please help me
  1 comentario
Geoff Hayes
Geoff Hayes el 31 de Oct. de 2014
Nadia - if you have the Image Processing Toolbox, you should check the example from here DCT with blockproc.

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 1 de Nov. de 2014
There are code samples in the FAQ using two different methods, mat2cell() and regular indexing. That just gives you the subimages. You can call a function on them if you want to process each subimage. If you want to use blockproc(), see my attached demos.

Community Treasure Hunt

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

Start Hunting!

Translated by