<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Brian,<br>
<br>
you are absolutely right, this is a bug. I fixed the bug and added
your test-case to our CroppedIterableIntervalTest class (I hope
that's OK?!).<br>
<br>
Thank you for reporting the bug!<br>
<br>
Christian<br>
<br>
PS: I don't really like the name "CroppedIterableInterval", as we
don't really crop something. Any suggestions?<br>
<br>
<br>
On 12.06.2014 21:45, Brian Northan wrote:<br>
</div>
<blockquote
cite="mid:CAMWa8i3iUWcPatuy3uMEavsANGLz6_DTk4UsK+0fchz3ZKgXMw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>Hi List<br>
<br>
I was trying to figure out how the CroppedIterableInterval
in imagej-ops works. <br>
<br>
</div>
My understanding is that the "axesOfInterest" array defines
the axes of the resulting "cropped hypeslices". So if you
have x as axis 0, y:1, c:2, z:3 and t:4 and you specify 0
(x), 1 (y), and 3 (z) as the "axesOfInterest" it should
loop through c and t and return x,y,z hyperslices? Is that
correct??<br>
<br>
</div>
<div>If I am correct in my assumption of how it works I
noticed one thing that is possibly a bug (if I misunderstood
how it is supposed to work disregard the rest of this
e-mail). <br>
</div>
<br>
Around line 100<br>
</div>
<div>
<div class="" id="LC99"> <span class=""><br>
</span>
<div style="margin-left:40px"><i><span class="">if</span> <span
class="">(</span><span class="">axesOfInterest</span><span
class="">[</span><span class="">j</span><span class="">]</span>
<span class="">==</span> <span class="">i</span><span
class="">)</span> <span class="">{</span> <span
class="">dimensionsToIterate</span><span class="">[</span><span
class=""> ** j ** </span><span class="">]</span> <span
class="">=</span> <span class="">1</span><span
class="">;</span></i><br>
</div>
<div style="margin-left:40px"><span class=""></span></div>
</div>
<div class="" id="LC100"><span class=""><br>
</span></div>
<div class="" id="LC100"><span class="">should maybe be <br>
<br>
</span>
<div style="margin-left:40px">
<i><span class="">dimensionsToIterate[ ** i **]=1;</span></i><br>
</div>
<div style="margin-left:40px"><span class=""></span></div>
</div>
<pre><span class="">
</span></pre>
<span class="">I have a test that only works if I change the
above line of code in a local copy of
CroppedIterableInterval.java<br>
<br>
The test is here: <a moz-do-not-send="true"
href="https://github.com/DeconWaRE/deconware-ops/blob/master/src/test/java/com/deconware/ops/SlicerTest.java">https://github.com/DeconWaRE/deconware-ops/blob/master/src/test/java/com/deconware/ops/SlicerTest.java</a>
<br>
</span>
<div>
<div><br>
</div>
<div>Brian<br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ImageJ-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ImageJ-devel@imagej.net">ImageJ-devel@imagej.net</a>
<a class="moz-txt-link-freetext" href="http://imagej.net/mailman/listinfo/imagej-devel">http://imagej.net/mailman/listinfo/imagej-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>