AU689633B2 - Data representation and access method - Google Patents

Data representation and access method

Info

Publication number
AU689633B2
AU689633B2 AU33346/95A AU3334695A AU689633B2 AU 689633 B2 AU689633 B2 AU 689633B2 AU 33346/95 A AU33346/95 A AU 33346/95A AU 3334695 A AU3334695 A AU 3334695A AU 689633 B2 AU689633 B2 AU 689633B2
Authority
AU
Australia
Prior art keywords
data
array
tile
sub
series
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
AU33346/95A
Other versions
AU3334695A (en
Inventor
David Charles Michie
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wright Technologies Nv
Original Assignee
WRIGHT TECHNOLOGIES Pty Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from AUPM7687A external-priority patent/AUPM768794A0/en
Application filed by WRIGHT TECHNOLOGIES Pty Ltd filed Critical WRIGHT TECHNOLOGIES Pty Ltd
Priority to AU33346/95A priority Critical patent/AU689633B2/en
Publication of AU3334695A publication Critical patent/AU3334695A/en
Application granted granted Critical
Publication of AU689633B2 publication Critical patent/AU689633B2/en
Assigned to Wright Technologies NV reassignment Wright Technologies NV Alteration of Name(s) in Register under S187 Assignors: WRIGHT TECHNOLOGIES PTY LTD
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Description

DATA REPRESENTATION AND ACCESS METHOD
Field of the Invention
The present invention relates to the representation and access of data and, in particular, to the representation and access of graphical image data.
Background Art
Conventional techniques of storing image data, and other data which can be perceived as having an array format, fall into two basic categories known as sequential format and tiled format.
Data, such as images, which is stored in a sequential format is normally divided into horizontal "scan lines". Each scan line can contain a row of data, which in the case of images will consist of pixels that are traditionally stored from left to right. It will be apparent to a person skilled in the art that the scan lines could also consist of columns of data, generally from top to bottom of the image. Other forms of scan line storage are possible, such as grouping a number of rows or scan lines of data together into "strips". As an example, photographic scanning devices traditionally scan an image in a sequential format. Fig. 1 illustrates this conventional format where an image that has 4,096 x 4,096 pixels, for example, is stored in a sequential format from pixel number 0 to pixel number 16,777,215.
Referring now to Fig. 2, a second conventional storage format for an image is the "tiled" format. In this format, the image or data 2, which is made up of a large array of pixels, is "tiled" by a series of equally sized rectangles or square tiles 3. Each tile 3 is considered to be a "sub-image", with the pixels of each tile stored in a sequential manner as shown in Fig. 1. Often the size of a tile is chosen to be a power of 2 (for example, 128 x 128 pixels or 256 x 256 pixels). This generally allows calculations, such as division calculations which are required to split up the image or data into its corresponding tiles, to be computed more efficiently. If the image size is not an exact multiple of the tile size, some of the tiles allocated, for example tile 4, will then store only part of an image, with that portion of the tile lying outside the bounds of the image being wasted storage.
A tiled image format is particularly advantageous when it is desired to only access a small portion of the image or data. If the image 2 is stored on secondary storage media and has to be loaded into a computer system, to access a small portion of the image (e.g. , portion 5), only the tile 6 need be loaded from secondary storage.
Modern virtual memory operating systems, for example UNIX, Windows NT, Windows 95 (Registered Trade Marks), divide up their various storage media, such as hard disks, into blocks called "pages". Such operating systems are known as paged memory architectures. For a thorough discussion of such architectures, reference is made to a standard text such as Computer Architecture: A Quantitative Approach, written by Hennessy and Patterson, and published in 1990 by Morgan Kaufmann Publishers Inc. and, in particular, to chapters 8 and 9 thereof.
In a paged memory architecture, when an application program attempts to access a portion of memory that is stored on a hard disk or external storage device, the operating system will determine on which "page" the byte resides and load the whole page from disk into memory. Typically, the size of pages is a variable operating system parameter, with a common size being 4 kilobytes (4,096 bytes). Hard-disk devices typically take of the order of a few tens of milliseconds to access any part of their stored data. This is to be compared with a memory cycle time of modern computers which is typically in the low tens of nanoseconds. Therefore, there is a large disparity between the time taken in accessing data from hard disk in comparison with accessing data from memory. This disparity is approximately three orders of magnitude.
Although it may take tens of milliseconds for a disk drive to access its first byte of requested data, subsequent bytes, which are stored sequentially after a first byte, can often be accessed substantially more rapidly. Therefore, operating systems conventionally load a whole "block" or page of data from the hard disk at a time in the hope that, on the principle of locality, bytes surrounding a predetermined byte will also be required by an application program. This principle is normally quite effective in practice. However, the use of the paged memory model in image or data processing programs that use sequential or tiled data can cause significant problems.
In a first example of one of these problems, it will be assumed that each image or data element or pixel requires one byte of storage. This would be a common scenario for example in grey scale images, with each pixel being able to take one of 256 levels. Turning now to Fig. 3, if it is desired, by an application program, to load a small rectangular portion of 100 pixels by 100 pixels, for example, of a very large image which has been stored in the sequential format, the application program can do this by reading 100 pixels from each of the 100 relevant scan lines required. Hence, the total number of bytes read by the application program will be 100 x 100 = 10,000 bytes. However, because the operating system only reads data from a disk storage device by means of page-sized portions, comprising 4,096 bytes, for example, the operating system begins by reading a first page 8 having 4,096 bytes and from the first page it extracts those 100 bytes 9 which form part of the first scan line that is required. Subsequently, the second page 11 is read in and 100 bytes from the second line is extracted. This process is continued for each of the 100 lines.
From Fig. 3, it can be seen that to read and extract the 10,000 bytes comprising 100 pixels from 100 relevant scan lines, the operating system is required to read in a total of 409,600 bytes which is over 40 times more data than is actually required. This makes the above operation very time consuming.
In a second example of the problems associated with the paged memory model, it is desired by an application program to reduce the size of a very large tiled image to one sixteenth of its original size. This is a common operation utilised by image processing programs that work by means of proxy images which are displayed and manipulated on screen. The image processing program reduces the image size by means of sub sampling. For example, in the present case, sub sampling can be achieved by reading every fourth pixel in a horizontal and vertical direction and displaying the pixels forming the new images on a display. The new image will be a quarter of the size in both the horizontal and vertical directions or one sixteenth the total area of the original very large image.
Referring now to Fig. 4, there is shown a tile 13 containing 256 x 256 pixels numbered 0 to 65,535, with the pixels being stored in scan line, row or numerical order. In desiring to form a sub-sampled image, every fourth pixel (e.g., 15 to 18) in the vertical and horizontal directions is sampled to form the new image. As each sampled pixel in the vertical direction is 4 x 256 = 1,024 bytes apart, no pages within a tile can be skipped and, in order to form the sub-sampled image, the operating system must load every page in the tile, for each tile of the image. Hence, the operating system will load sixteen times more data than is required which again is a time consuming operation.
Brief Description of the Drawings
Embodiments of the invention will now be described with reference to the following drawings, in which:
Fig. 1 illustrates a conventional "scan line" form of representation of data;
Fig. 2 illustrates the conventional process of "tiling" an image;
Fig. 3 illustrates a conventional arrangement of pixels when a tile form of arrangement is stored;
Fig. 4 illustrates the layout of a tile as used with the prior art;
Fig. 5 is a diagram illustrating a method of providing a tile layout according to a preferred embodiment of the invention;
Fig. 6 is a flow diagram of the method according to the preferred embodiment;
Fig. 7 is a flow diagram illustrating step 602 of Fig. 6 in greater detail; and
Fig. 8 is a flow diagram illustrating step 604 of Fig. 6 in greater detail.
Summary of the Invention
It is an object of the present invention to provide an alternative data format which is more efficient for at least one class of data retrieval operations. In accordance with a first aspect of the present invention there is provided a method of representing an array of data, said method comprising the steps of:
determining a series of sub samples of said array, said sub samples being of increasingly fine granularity, the collection of said series of sub samples substantially covering the whole of said array, and
storing said series of sub samples in order of granularity from the coarsest granularity to the finest granularity such that, in reading out said stored data, only the corresponding sub samples need be read out.
Preferably, each element of said array of data is present in only one of said series of sub samples.
Preferably, the array of data forms a tile which is an element of a larger array of tiles.
Detailed Description
The preferred embodiment of the present invention will now be described with reference to accompanying Figs. 5 to 8 which illustrate the process of providing a tile layout according to the preferred embodiment which seeks to overcome disadvantages of the prior art.
In the preferred embodiment, the image or data is again stored in a tiled format which has the advantage of allowing access to small portions of an image without requiring the loading of the whole image data.
Referring now to Fig. 5, in the preferred embodiment, the pixels or data within a single tile 20 are arranged in a non-monotonic manner. Each tile has, for example, 256 x 256 = 65,536 pixels and each pixel can be denoted by the position
(xpos, ypos), with xpos and ypos having ranges from 0 to 255. The pixels of each tile are stored sequentially in the following manner:
1. The first four entries 21 are those pixels having address indices xpos, ypos which are both multiples of 128. This corresponds to pixels: (0,0), (128,0), (0, 128) and (128, 128).
2. The next twelve entries 22 are those pixels having address indices which are both multiples of 64, but are not both multiples of 128. This corresponds to pixels: (64,0), (192, 0), (0,64), (64,64), (128,64), (192,64), (64, 128), (192, 128), (0, 192), (64, 192), (128, 192), (192, 192).
3. The next 48 entries 23 are those pixels having address indices which are both multiples of 32, but are not both multiples of 64.
4. The next 192 entries 24 are those pixels having address indices which are both multiples of 16, but are not both multiples of 32.
5. The next 768 entries 25 are those pixels having address indices which are both multiples of 8, but are not both multiples of 16. 6. The next 3,072 entries 26 are those pixels having address indices which are both multiples of 4, but are not both multiples of 8.
7. The next 12,288 entries 27 are those pixels having address indices which are both multiples of 2, but are not both multiples of 4.
8. The final 49, 152 entries 28 are those pixels having address indices which are both multiples of 1 , but are not both multiples of 2.
Although the pixels are shown in Fig. 5 in a two dimensional format, the pixels are actually stored in a one dimensional format in row order. Additionally, it should be noted that the pixels which have address indices which are both common multiples of 64 and 128, for example, appear only once in the area of the greater common divisor (in this case, the greater common divisor is 128).
If the size of a single page is considered to be 4 kilobytes (4,096 bytes), each page will store 16 rows of the tile 20. Therefore, by reading in the first page 30, all those pixels 21 to 26 spaced four pixels apart in the horizontal and vertical directions will be read from disk storage. This can lead to substantial increases in efficiency of utilisation of a standard computer system. Similarly, the first four pages, will include pixels 21 to 27, which contain all those pixels having locations that are multiples of 2 in the horizontal and vertical directions.
The present application also includes two appendices. The first appendix A contains a print out of one form of the reordering of the pixel positions of Fig. 4 for the tile of Fig. 5. Appendix B contains a C+ + code listing utilised in generating the print out of Appendix A. Appendices A and B are provided to assist an operating systems programmer in implementing the access method of the preferred embodiment.
For example, the principles outlined in the preferred embodiment can be readily extended to other forms of data representation, wherein the data is represented in a form of an array format and it is desired to obtain a sub sampled portion of that array. For example, in full coloured, 32 bit, 4 channel, CMYK colour data, which is often used in the art of computer graphics, the present invention could be readily applied by treating each separate colour channel as a separate image. Alternatively, each colour channel can be 4-way interleaved, further reducing the number of pages which must be read in when it is desired to display a sub-sampled portion of each tile.
Additionally, those skilled in the art would readily recognise that the present invention has application beyond merely byte-oriented data and can extend to other forms of array data such as array record structures.
Additionally, those skilled in the art would readily recognise that the present invention is not restricted to a paged memory architecture and can readily be used in operating systems which access a form of secondary storage media which is slower than the primary storage media utilised by the operating system and is particularly applicable when the secondary storage media is traditionally accessed via block access techniques.
Fig. 6 is a flow diagram illustrating the process of storing an array of data (e.g. , image) in tiled format according to the preferred embodiment. A data array is provided which consists of the input data to be processed. In step 602, a series of subsamples of the array are determined in which the sub-samples have increasingly fine granularity. The collection of the series of sub-samples substantially covers the whole of the data array. In step 604, the series of sub-samples are stored in order of granularity from the coarsest granularity to the finest granularity such that, in reading out the stored data, only the corresponding sub-samples need be read out.
Each element of the data array is present in only one of the series of subsamples. The array of data forms a tile which is an element of a larger array of tiles.
Preferably, step 604 further comprises storing the series of sub-samples on a secondary storage device. The secondary storage device can be a disc storage device which is accessed by means of block transfers.
Preferably, the array of data is stored on a virtual memory computer system. Still further, the array of data can be stored on a paged memory computer system.
Fig. 7 is a flow diagram illustrating step 602 of Fig. 6 in greater detail. In step 702, a first series of sub-samples is determined in which each sub-sample has both indices of an index pair being multiples of 2M -1 , where M is a positive integer. Each array of data preferably consists of a number of tiles in which each tile consists of 2M X 2M data values. This is the series of sub-samples having the coarsest granularity. In step 704, the variable N is set equal to 1.
In decision block 706, a check is made to determine if N is less than M. When decision block 706 returns false (NO), processing terminates. Otherwise, when decision block 706 returns true (YES), the processing continues at step 708. In step 708, a further series of sub-samples is determined in which each sub-sample has both indices of an index pair being multiples of 2M-N- 1 but not both being multiples of 2M-N In step 710, the value of N is incremented. Processing continues at decision block 706. In this manner, a collection of series of subsamples are obtained of increasingly finer granularity until all data values of the array of data have been processed.
Fig. 8 is a flow diagram illustrating step 604 of Fig. 6 in greater detail. In step 802, die collection of series of sub-samples are provided sequentially as a plurality of rows. In decision block 804, a check is made to determine if all rows have been stored. When decision block 804 returns true (YES), processing terminates.
Otherwise, if decision block 804 returns false (NO), processing continues at step 806. In step 806, up to P rows are stored in a page, where P is dependent on the size of each page.
The foregoing describes only one embodiment of the present invention, modifications, obvious to those skilled in the art can be made thereto without departing from the scope of the invention.

Claims (8)

1. A method of representing an array of data, said method comprising the steps of:
determining a series of sub samples of said array, said sub samples being of increasingly fine granularity, the collection of said series of sub samples substantially covering the whole of said array, and
storing said series of sub samples in order of granularity from the coarsest granularity to the finest granularity such that, in reading out said stored data, only the corresponding sub samples need be read out.
2. The method according to claim 1 wherein each element of said array of data is present in only one of said series of sub samples.
3. The method according to claims 1 or 2 wherein said array of data forms a tile which is an element of a larger array of tiles.
4. The method as claimed in any one of the claims wherein said storing step comprises storing said series of sub samples on a secondary storage device.
5. The method according to claim 4 wherein said secondary storage device is a disk storage device which is accessed by means of block transfers.
6. The method according to any one of the preceding claims wherein said array of data is stored on a virtual memory computer system.
7. The method according to any one of the preceding claims wherein said array of data is stored on a paged memory computer system.
8. A method of recording an array of data in a paged memory system, said array of data arranged as a plurality of tiles, each tile of said plurality of tiles consisting of 2M x 2M data values, M being a positive integer, and each data value therein represented by an index pair, said method comprising the steps of:
for each tile of said plurality of tiles, sub-sampling said data values of said each tile in increasing granularity comprising the further steps of:
determining a first set of data values having index pairs wherein both indices of an index pair of each data value are multiples of 2M-1;
determining a plurality of sets of data values wherein each set is determined so that the respective set consists of data values having index pairs wherein both indices are multiples of 2M-N-1 bin are not both multiples of 2M-N, N being a positive integer, wherein said plurality of sets are arranged to have increasing granularity according to N equal to 1 to M-1, respectively; and
storing said each tile of said plurality of tiles as one or more pages wherein each page consists of a number of sequential rows of said each tile.
AU33346/95A 1994-08-25 1995-08-25 Data representation and access method Ceased AU689633B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU33346/95A AU689633B2 (en) 1994-08-25 1995-08-25 Data representation and access method

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
AUPM7687 1994-08-25
AUPM7687A AUPM768794A0 (en) 1994-08-25 1994-08-25 Data representation and access method
PCT/AU1995/000537 WO1996006395A1 (en) 1994-08-25 1995-08-25 Data representation and access method
AU33346/95A AU689633B2 (en) 1994-08-25 1995-08-25 Data representation and access method

Publications (2)

Publication Number Publication Date
AU3334695A AU3334695A (en) 1996-03-14
AU689633B2 true AU689633B2 (en) 1998-04-02

Family

ID=25622456

Family Applications (1)

Application Number Title Priority Date Filing Date
AU33346/95A Ceased AU689633B2 (en) 1994-08-25 1995-08-25 Data representation and access method

Country Status (1)

Country Link
AU (1) AU689633B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0370654A2 (en) * 1988-11-25 1990-05-30 Picker International, Inc. Video imaging methods and apparatus
WO1994010633A1 (en) * 1992-11-02 1994-05-11 Etec Systems, Inc. Rasterizer for a pattern generation apparatus
WO1994024633A1 (en) * 1993-04-16 1994-10-27 Data Translaton, Inc. Displaying a subsampled video image on a computer display

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0370654A2 (en) * 1988-11-25 1990-05-30 Picker International, Inc. Video imaging methods and apparatus
WO1994010633A1 (en) * 1992-11-02 1994-05-11 Etec Systems, Inc. Rasterizer for a pattern generation apparatus
WO1994024633A1 (en) * 1993-04-16 1994-10-27 Data Translaton, Inc. Displaying a subsampled video image on a computer display

Also Published As

Publication number Publication date
AU3334695A (en) 1996-03-14

Similar Documents

Publication Publication Date Title
CA1292075C (en) Information registering and retrieval system
US4554638A (en) Display device including apparatus for rotating the image to be displayed
US4468755A (en) Document size conversion circuit for a document filing system
US5291582A (en) Apparatus for performing direct memory access with stride
US4933880A (en) Method for dynamically processing non-text components in compound documents
US4124871A (en) Image data resolution change apparatus and process utilizing boundary compression coding of objects
US6396507B1 (en) Data storage/access network system for zooming image and method of the storage/access
EP0149119A2 (en) Method for rotating a binary image
US8704840B2 (en) Memory system having multiple address allocation formats and method for use thereof
US5585863A (en) Memory organizing and addressing method for digital video images
EP0260883A2 (en) Method for rotating an image
US7006111B1 (en) Digital image stitching
EP0403122A2 (en) Processor controlled image overlay
EP0817118A2 (en) Memory management of texture maps
EP0300502B1 (en) High speed page turning control system
US6215507B1 (en) Display system with interleaved pixel address
EP0605347A2 (en) Method and system for manipulating a full motion video presentation in a data processing system
EP0725952B1 (en) Data representation and access method
AU689633B2 (en) Data representation and access method
US5052046A (en) Image processing method and apparatus therefor
CN105427235A (en) Image browsing method and system
GB2180729A (en) Direct memory access window display
EP0095931A2 (en) Picture data storage system
EP0404397B1 (en) Image processing system
JPH0331030B2 (en)

Legal Events

Date Code Title Description
PC Assignment registered

Owner name: WRIGHT TECHNOLOGIES NV

Free format text: FORMER OWNER WAS: WRIGHT TECHNOLOGIES PTY. LTD.

MK14 Patent ceased section 143(a) (annual fees not paid) or expired