The invention discloses a method for detecting the maximum inscribed rectangle of an irregular connected domain. The method comprises the following steps: preparing an image,
processing the image, setting connected domain images, searching and detecting the maximum inscribed rectangle region in each connected domain image, and extracting and / or marking the part of the final maximum inscribed rectangle region in each connected domain image. The method has the advantages that during specific implementation, the
histogram method is adopted, the limitation of a traditional method in the background technology in the process of
processing inclined rectangles is optimized, and the accuracy and robustness of the
algorithm in the process of recognizing rectangles of various shapes and sizes can be remarkably enhanced; the monotone stack technology is applied in the process, so that the calculation complexity can be effectively reduced, and the execution efficiency of the
algorithm can be effectively improved; therefore, by combining the
histogram method with the monotone stack
algorithm, the maximum inscribed rectangle region in the connected domain image can be quickly and accurately detected, and the method has high
processing efficiency and good applicability, and the innovation method not only has important significance on technical progress in the field of
image processing and analysis, but also has good application prospects. Meanwhile, a new effective means is provided for processing complex images, and the application scene of detection of the maximum inscribed rectangular area of the connected domain image is greatly expanded.