MATLAB: How to use blockproc (inbuilt function in image processing) function in parallel environment directly

image processing

How can I use blockproc inbuilt function in image processing, in parallel environment directly? Suppose image has 4 blocks then I want each block of image must be executed parallelly in 4 cores of my computer.

Best Answer

At the end of the blockproc() call, add
'UseParallel', true
to the argument list.