摘要 |
A method of storing a digital image in a computer memory includes providing a N-dimensional digital image, defining an offset for each image element (x1, . . . , xN) by the formula <maths id="MATH-US-00001" num="00001"> <math overflow="scroll"> <mrow> <mrow> <mrow> <mi>offset</mi> <mo></mo> <mrow> <mo>(</mo> <mrow> <msub> <mi>x</mi> <mn>1</mn> </msub> <mo>,</mo> <mi>...</mi> <mo></mo> <mstyle> <mspace width="0.6em" height="0.6ex"/> </mstyle> <mo>,</mo> <msub> <mi>x</mi> <mi>N</mi> </msub> </mrow> <mo>)</mo> </mrow> </mrow> <mo>=</mo> <mrow> <munder> <mo>∑</mo> <mi>i</mi> </munder> <mo></mo> <mrow> <munderover> <mo>∑</mo> <mrow> <mi>n</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>N</mi> </munderover> <mo></mo> <mrow> <mrow> <msub> <mi>K</mi> <msub> <mi>x</mi> <mi>n</mi> </msub> </msub> <mo></mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>)</mo> </mrow> </mrow> <mo></mo> <msub> <mi>x</mi> <mi>ni</mi> </msub> </mrow> </mrow> </mrow> </mrow> <mo>,</mo> </mrow> </math> </maths> where i is summed over all bits and n is summed over all dimensions. The coefficient K for the ith bit of the nth dimension is defined as <maths id="MATH-US-00002" num="00002"> <math overflow="scroll"> <mrow> <mrow> <mrow> <msub> <mi>K</mi> <msub> <mi>x</mi> <mi>n</mi> </msub> </msub> <mo></mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>)</mo> </mrow> </mrow> <mo>=</mo> <mrow> <mrow> <mo>(</mo> <mrow> <munderover> <mo>∏</mo> <mrow> <mi>j</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mi>n</mi> <mo>-</mo> <mn>1</mn> </mrow> </munderover> <mo></mo> <mrow> <mi>f</mi> <mo></mo> <mrow> <mo>(</mo> <mrow> <msub> <mi>x</mi> <mi>j</mi> </msub> <mo>,</mo> <msup> <mn>2</mn> <mrow> <mi>i</mi> <mo>+</mo> <mn>1</mn> </mrow> </msup> <mo>,</mo> <msub> <mi>sx</mi> <mi>j</mi> </msub> </mrow> <mo>)</mo> </mrow> </mrow> </mrow> <mo>)</mo> </mrow> <mo></mo> <msup> <mn>2</mn> <mi>i</mi> </msup> <mo></mo> <mrow> <mo>(</mo> <mrow> <munderover> <mo>∏</mo> <mrow> <mi>j</mi> <mo>=</mo> <mrow> <mi>n</mi> <mo>+</mo> <mn>1</mn> </mrow> </mrow> <mi>N</mi> </munderover> <mo></mo> <mrow> <mi>f</mi> <mo></mo> <mrow> <mo>(</mo> <mrow> <msub> <mi>x</mi> <mi>j</mi> </msub> <mo>,</mo> <msup> <mn>2</mn> <mi>i</mi> </msup> <mo>,</mo> <msub> <mi>sx</mi> <mi>j</mi> </msub> </mrow> <mo>)</mo> </mrow> </mrow> </mrow> <mo>)</mo> </mrow> </mrow> </mrow> <mo>,</mo> </mrow> </math> </maths> where xj is the jth dimension, f(x,G,sxj)=min(G,sxj-└x┘G) G is a power of 2, sxj represents the size associated with a given dimension, and └x┘G=x-x mod G. Image elements are stored in the computer memory in an order defined by the offset of each image element.
|