I want to divided image to non-overlapping blocks, then I will appliy DWT on each block
can any one help me with this please

 Respuesta aceptada

Image Analyst
Image Analyst el 9 de Mzo. de 2019

0 votos

This is a FAQ, so See the FAQ
I recommend blockproc as the best for what you want to do. I'm attaching demos for non-overlapping blocks.

4 comentarios

Mohammed  Kassem
Mohammed Kassem el 21 de Mzo. de 2019
how to perform DWT on each block of image using (blockproc)
i dont need the standard deviation can you help me please
thanks.
Image Analyst
Image Analyst el 21 de Mzo. de 2019
Use the demo where I write my own custom function to process each block. You can do whatever you want in that function, including DWT or anything else.
Mohammed  Kassem
Mohammed Kassem el 23 de Mzo. de 2019
Thanks for your efforts i have changed the function as
I = imread('pears.png');
fun = @(block_struct)...
dwt2(block_struct.data,'dmey');
C = blockproc(I,[64 64],fun);
but i got no out put and no errors
so how i can access the [cA,cH,cV,cD] of dwt2 if the above code is true
Image Analyst
Image Analyst el 24 de Mzo. de 2019
I can't help you with the wavelet part since I don't have the wavelet toolbox.

Iniciar sesión para comentar.

Más respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 9 de Mzo. de 2019
Editada: madhan ravi el 9 de Mzo. de 2019

1 voto

You can use blockproc (Distinct block processing for image) on image
result=blockproc(image,[m n],fun)
Which processes the image by applying the function fun to each distinct block of size [m n] and concatenating the results into the output result matrix. You have to create the function
See the documentation for detail
Also you can look for sliding window (one by one pixel), check
kernel=create window
result=conv2(image, kernel, 'same');
If it still unclear, let me know?

Etiquetas

Preguntada:

el 8 de Mzo. de 2019

Comentada:

el 24 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by