<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Makes perfect sense, especially if you've updated all implementers
of the interfaces.<br>
<br>
--Lee<br>
On 5/20/2011 8:09 AM, Stephan Preibisch wrote:
<blockquote cite="mid:001c01cc16e6$b9276e40$2b764ac0$@de"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi guys,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am just implementing
algorithms and I
noticed that it saves quite some temporary arrays if
Interval and RealInterval
can set Positionables to their min and max location.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The interface would look
like (red just
added):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;"> </span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);">/**</span><span style="font-size: 10pt;
font-family: Consolas;"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"> *
</span><span style="font-size: 10pt; font-family: Consolas;"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"> *
</span><b><span style="font-size: 10pt; font-family: Consolas;
color: rgb(127, 159, 191);">@param</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);"> d dimension</span><span
style="font-size: 10pt; font-family: Consolas;"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"> *
</span><b><span style="font-size: 10pt; font-family: Consolas;
color: rgb(127, 159, 191);">@return</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);"> minimum</span><span style="font-size:
10pt; font-family: Consolas;"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"> */</span><span
style="font-size: 10pt; font-family: Consolas;"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;"> </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">public</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US"> </span><b><span style="font-size:
10pt; font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">long</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> min( </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">final</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US"> </span><b><span style="font-size:
10pt; font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">int</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> d );</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US">/**</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
Write the minimum of each dimension into long[].</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
</span><span style="font-size: 10pt; font-family: Consolas;"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
</span><b><span style="font-size: 10pt; font-family: Consolas;
color: rgb(127, 159, 191);" lang="EN-US">@param</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US"> min</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> */</span><span style="font-size: 10pt;
font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">public</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US"> </span><b><span style="font-size:
10pt; font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">void</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> min( </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">long</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US">[] min );</span><span style="font-size:
10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US">
/**<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US"> *
Sets a {@link Positionable} to the minimum of this {@link
Interval}<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US"> *
<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US"> *
@param min<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US">
*/<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US">
public
void min( Positionable min );<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);">/**</span><span style="font-size: 10pt;
font-family: Consolas;"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"> *
</span><span style="font-size: 10pt; font-family: Consolas;"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"> </span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US"> * </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 159, 191);" lang="EN-US">@param</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US"> d
dimension</span><span style="font-size: 10pt; font-family:
Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
</span><b><span style="font-size: 10pt; font-family: Consolas;
color: rgb(127, 159, 191);" lang="EN-US">@return</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US"> maximum</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> */</span><span style="font-size: 10pt;
font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">public</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US"> </span><b><span style="font-size:
10pt; font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">long</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> max( </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">final</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US"> </span><b><span style="font-size:
10pt; font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">int</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> d );</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US">/**</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
Write the minimum of each dimension into long[].</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
</span><span style="font-size: 10pt; font-family: Consolas;"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
</span><b><span style="font-size: 10pt; font-family: Consolas;
color: rgb(127, 159, 191);" lang="EN-US">@param</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US"> max</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> */</span><span style="font-size: 10pt;
font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">public</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US"> </span><b><span style="font-size:
10pt; font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">void</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> max( </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">long</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US">[] max );</span><span style="font-size:
10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas;" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US">
/**<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US"> *
Sets a {@link Positionable} to the maximum of this {@link
Interval}<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US"> *
<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US"> *
@param max<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US">
*/<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;
font-family: Consolas; color: red;" lang="EN-US">
public
void max( Positionable max );<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US">/**</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
Write the number of pixels in each dimension into long[].</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
</span><span style="font-size: 10pt; font-family: Consolas;"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
</span><b><span style="font-size: 10pt; font-family: Consolas;
color: rgb(127, 159, 191);" lang="EN-US">@param</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US"> dimensions</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> */</span><span style="font-size: 10pt;
font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">public</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US"> </span><b><span style="font-size:
10pt; font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">void</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US">
dimensions( </span><b><span style="font-size: 10pt;
font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">long</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US">[]
dimensions );</span><span style="font-size: 10pt;
font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US">/**</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
Get the number of pixels in a given dimension </span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 127, 159);" lang="EN-US"><em></span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US">d</span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 127, 159);" lang="EN-US"></em></span><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US">.</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
</span><span style="font-size: 10pt; font-family: Consolas;"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> *
</span><b><span style="font-size: 10pt; font-family: Consolas;
color: rgb(127, 159, 191);" lang="EN-US">@param</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(63, 95, 191);" lang="EN-US"> d</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: rgb(63, 95, 191);"
lang="EN-US"> */</span><span style="font-size: 10pt;
font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> </span><b><span
style="font-size: 10pt; font-family: Consolas; color:
rgb(127, 0, 85);" lang="EN-US">public</span></b><span
style="font-size: 10pt; font-family: Consolas; color:
black;" lang="EN-US"> </span><b><span style="font-size:
10pt; font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">long</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US">
dimension( </span><b><span style="font-size: 10pt;
font-family: Consolas; color: rgb(127, 0, 85);"
lang="EN-US">int</span></b><span style="font-size: 10pt;
font-family: Consolas; color: black;" lang="EN-US"> d );</span><span
style="font-size: 10pt; font-family: Consolas;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Same applies to the
RealInterval….<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Now you could write:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">interval.min(
randomAccess );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">instead of:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">long[] tmp = new long[
numDimensions ];<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">interval.min( tmp );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">randomAccess.setPosition(
tmp );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">or<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">for ( int d = 0; d <
numDimensions; ++d
)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
randomAccess.setPosition(
interval.min( d ), d );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">which might be
inefficient for the case
that the input is a paged/compressed cell container.
Potentially, it would have
to load a lot of unnecessary cells on its way through the
dimensions…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What do you think?
Everything is already
implemented and updated, I simply have to push it….<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Steffi<o:p></o:p></span></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ImageJ-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ImageJ-devel@imagejdev.org">ImageJ-devel@imagejdev.org</a>
<a class="moz-txt-link-freetext" href="http://imagejdev.org/mailman/listinfo/imagej-devel">http://imagejdev.org/mailman/listinfo/imagej-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>