Could some one tell reasons to use the MATLAB imreconstruct
function when processing images? I already have studied the topic and what the function actually does to the image. However, I cannot figure what we would use it for. What output should we expect from calling doing this function?
-
$\begingroup$ It seems the user is not active any more. $\endgroup$– MarkCommented Feb 20, 2021 at 6:53
-
$\begingroup$ Could you please review my answer? $\endgroup$– RoyiCommented Jun 1, 2022 at 9:02
2 Answers
It could be useful in the field of OCR as a pre processing step.
Think about badly scanned data.
You'd like to convert it into binary image.
So the first step would be applying some kind of thresholding.
Since no thresholding is perfect, There will be some "Holes" / "Gaps" within the text.
Closing those "Holes" / "Gaps" can be done using morphological operations.
See example here: StackOverlfow - Adaptive Thresholding - Implementation of the Minimum Error Thresholding Method.
Look at MathWorks - Technical Articles and Newsletters - Morphological Reconstruction and MATLAB Digest | Academic Edition - Morphological Reconstruction.
Some applications are scanned text document (OCR as mentioned previously), fluorescently stained cell nuclei, or galaxies in a far-infrared telescope image. It can be used for extract marked objects, find bright regions surrounded by dark pixels, detect or remove objects touching the image border, detect or fill in object holes, filter out spurious high or low points, and perform many other operations.