Code covered by the BSD License  

Highlights from
Inscribed_Rectangle

5.0
5.0 | 2 ratings Rate this file 23 Downloads (last 30 days) File Size: 520 KB File ID: #28155 Version: 1.1
image thumbnail

Inscribed_Rectangle

by

 

08 Jul 2010 (Updated )

Computer vision functions to locate largest square or rectangle inscribed inside arbitrary shape

| Watch this File

File Information
Description

Inscribed_Rectangle package provides 2 low level computer vision / image analysis functions able to locate largest square or rectangle inscribed inside arbitrary shape defined by a binary mask (black and white image). Only rectangles with vertical/horizontal edges are considered. The functions proved can be used as tools for larger image segmentation problems

Acknowledgements

This file inspired Recalculate Rectification Indices For Rectangle Image.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
15 Oct 2014 Zoé

Zoé (view profile)

The code produces an incorrect result if the input is an entirely white image. Changing line 25 of FindLargestRectangles.m into "if max(I(:)) == 1" appears to solve this problem.

Comment only
08 Jul 2014 Peter Seibold  
22 Feb 2013 Alize

Alize (view profile)

 
17 Jan 2012 Jaroslaw Tuszynski

No, in the the problems I was working on the rectangles are always parallel to the edges.

Comment only
17 Jan 2012 Image Analyst

Image Analyst (view profile)

Can it find tilted rectangles, not aligned with the image edges?

Comment only
Updates
06 Jan 2012 1.1

Small corrections

Contact us