NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Back to Results
Partitioning a Gridded Rectangle into Smaller RectanglesA relatively simple algorithm, devised for use in an image-data-compression application, partitions a rectangular pixelated image (or any other rectangle on which a regular rectangular grid has already been superimposed) into a specified number of smaller rectangles, hereafter denoted segments. The algorithm has the following properties: No floating-point operations are needed. The segments tend to be nearly square (in the sense that their widths and heights in pixel units tend to be nearly equal). The segments tend to have nearly equal areas. The algorithm yields valid results (no zero-width or zero-height segments) as long as the specified number of segments, s, does not exceed the number of pixels (equivalently, the number of grid cells). The inputs to the algorithm are the positive integer s plus the positive integers h and w, denoting the height and width, respectively, of the rectangle in pixel units. The limit on s for a valid result is given by s less than or equal to wh.
Document ID
20110016825
Acquisition Source
Jet Propulsion Laboratory
Document Type
Other - NASA Tech Brief
Authors
Klimesh, Matthew
(California Inst. of Tech. Pasadena, CA, United States)
Kiely, Aaron
(California Inst. of Tech. Pasadena, CA, United States)
Date Acquired
August 25, 2013
Publication Date
July 1, 2004
Publication Information
Publication: NASA Tech Briefs, July 2004
Subject Category
Man/System Technology And Life Support
Report/Patent Number
NPO-30479
Distribution Limits
Public
Copyright
Public Use Permitted.
No Preview Available