Individual processing each block blockproc

2 views (last 30 days)
Ihiertje
Ihiertje on 22 Aug 2017
Answered: Elizabeth Reese on 24 Aug 2017
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!

Answers (1)

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

Tags

Community Treasure Hunt

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

Start Hunting!