How do we use blockproc to process my image to compute the difference?

2 ビュー (過去 30 日間)
Emmanuel
Emmanuel 2014 年 9 月 22 日
回答済み: Image Analyst 2014 年 9 月 22 日
I want to compare two images and obtain region of interest. How does blockproc work. Does it process all the blocks at the same time? I ended up in an infinite loop while trying to run blockproc.

回答 (2 件)

Alberto
Alberto 2014 年 9 月 22 日
*blockproc* function divide your image in block, you decide the size of the blocks, and applies the function you want to each block. What you get in the end is a single image whith the transformed blocks combined.

Image Analyst
Image Analyst 2014 年 9 月 22 日
Blockproc() scans the image with a window and applies some function to the pixels in the window. It normally scans along in "jumps" of the window size but you can program it to move by different distances. The size of the output image is dependent on what function you apply. I attach two demos of it.

Community Treasure Hunt

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

Start Hunting!

Translated by