<div dir="ltr">Hi Jan,<div><br></div><div><div>Apologies for the delay in reply.</div><div><br></div></div><div><div>> I run into conflict between net.imglib2.meta.ImgPlus<T> and</div><div>> net.imagej.ImgPlus<T> now.</div></div><div><br></div><div>That suggests a clash of dependencies. The "net.imglib2.meta.ImgPlus" is gone, in favor of (for the time being [1]) net.imagej.ImgPlus.</div><div><br></div><div>Everything should work if you update your POM to extend the newest pom-imagej (5.10.0 at the time of this writing), and purge all "import net.imglib2.meta" lines from your imports in favor of the new "import net.imagej" class instead.  The HyperSliceImgPlus, though deprecated, was updated to use net.imagej.ImgPlus, so hopefully this will work for you.</div><div><br></div><div><div>> what should I use for the subsampling operations to do it properly?</div></div><div><br></div><div>The API for doing this is still under development. The Views.interpolate method [2] is probably a good starting point, though it is rather low level. If what you want is to resample an image, we should create an op for that in the ImageJ OPS project (I don't think one exists yet).</div><div><br></div><div>Regards,</div><div>Curtis</div><div><br></div><div>[1] In case you are curious: the ImgPlus class really needs a better interface-driven type hierarchy, which has been a long time in coming. It is planned to rework the ImageJ2 data model a bit along these lines later this year.</div><div><br></div><div>[2] <a href="http://javadoc.imagej.net/ImgLib2/net/imglib2/view/Views.html#interpolate(F,%20net.imglib2.interpolation.InterpolatorFactory)">http://javadoc.imagej.net/ImgLib2/net/imglib2/view/Views.html#interpolate(F,%20net.imglib2.interpolation.InterpolatorFactory)</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 6:45 AM, Jan Schier <span dir="ltr"><<a href="mailto:schier@utia.cas.cz" target="_blank">schier@utia.cas.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Excuse me perhaps naive questions for this list. I have, say, reasonable experience with Java coding for ImageJ1, and now I have tried to touch ImageJ2 and ImgLib2<br>
<br>
I have written some code using Haar wavelets on 3D images last year, using HyperSliceImgPlus.<u></u>fixChannelAxis() to select the channel and then SubsampleIntervalView etc. to get the sampling for wavelet computation.<br>
<br>
Essentially, I have used something like<br>
<br>
final ImgPlus<T> input = (ImgPlus<T>)dataset.<u></u>getImgPlus();      <br>
final Img<T> viewChan = HyperSliceImgPlus.<u></u>fixChannelAxis(input, 1L);<br>
<br>
and then I was using Img<T> for subsampling and further processing.<br>
With this code, I run into conflict between net.imglib2.meta.ImgPlus<T> and net.imagej.ImgPlus<T> now.<br>
<br>
I wanted to extend it now, but things have changed a lot with ops. I assume that my approach of working on Img<T> is incorrect now.<br>
<br>
- how should I replace the above construct for channel selection now?<br>
<br>
- what should I use for the subsampling operations to do it properly? I assume I should stay at the Dataset or ImgPlus level?<br>
<br>
Many thanks for any hint,<br>
<br>
Jan<br>
<br>
______________________________<u></u>_________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagej.net" target="_blank">ImageJ-devel@imagej.net</a><br>
<a href="http://imagej.net/mailman/listinfo/imagej-devel" target="_blank">http://imagej.net/mailman/<u></u>listinfo/imagej-devel</a><br>
</blockquote></div><br></div>