MATLAB: Opening by reconstruction results

image processingImage Processing Toolboximreconstruct

I know the algorithm how it works. For illustration process i want to visualise output of opening by reconstruction in each iteration. in matlab the function just gives the final result obtained after stability is reached.
looking at the fucntion itself with edit imreconstruct, it calls a mex function for processing and there is no way to get individual output from imreconstruct.

Best Answer

No. You'd have to write that code yourself.