Image Processing problems involve the recognition of certain features from the image provided by the user. This project involves the recognition of the rectangular layout from the image and detection of the horizontal and vertical edges from the layout. The Image Processing algorithms are implemented using the MATLAB Software and its image processing tools.
For the Recatangular layout shown above:

We get these Vertical and Horizontal lines:
The objective is to obtain the encoded matrix from the rectangular layout, depicting the indexing of the rectangles and their adjacency relations using the grids formed by the vertical and horizontal lines and then obtain the dimensions of all the rectangles. The dimensions of the rectangles will be used to find their aspect ratio which can be used in many different problems.
1 9 9 9 9 9 9
1 2 5 5 5 7 10
1 2 3 4 6 7 10
1 2 8 8 8 8 10
1 2 11 11 11 11 11
1 12 12 12 12 12 12
The encoded matrix gives the adjacency relations between the rectangular blocks in the layout.
To get a better perspective of the Project, go through the Image_Processing_Rectangular_Layouts Doc file in this repository.

