Individual processing each block blockproc

2 次查看(过去 30 天)
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!

回答(1 个)

Elizabeth Reese
Elizabeth Reese 2017-8-24
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.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by