<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=""><br></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 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>