Individual processing each block blockproc
Afficher commentaires plus anciens
Hi,
I have a blurred image and I want to correct this image by dividing it in blocks and correcting these blocks with a specific, block dependent point spread function. I found the blockproc function which can divide the image into blocks. However, I cannot find out if you can only do general processing on the blocks or that you can do different processing, a specific psf in this case, for each block.
I tried mat2cell as well, but I need to define some overlapping as well for which blockproc would be better to use.
Thanks!
Réponses (1)
Elizabeth Reese
le 24 Août 2017
0 votes
You may consider writing a function that takes the " block_struct", analyzes its " location" information or " data" and then returns " Y" based on that analysis. This will allow you to write a single function to pass into " blockproc" but have the output be block-dependent. You can find more information about what " block_struct" includes at the following link.
Also, feel free to take a look at some built-in deblurring routines at the following link.
Catégories
En savoir plus sur Neighborhood and Block Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!