<div dir="ltr">Hi Brian,<div><br></div><div><div><div>> Can you give me a code example of how this would work? It’s not</div><div>> obvious from the javadocs how to use a Projector and Converter to</div><div>> generate a BufferedImage.</div>

</div></div><div><br></div><div>I whipped one up for you.</div><div><a href="https://github.com/imglib/imglib-tutorials/commit/929de9b7482c312ff9c51ab52aa632779ef058f3">https://github.com/imglib/imglib-tutorials/commit/929de9b7482c312ff9c51ab52aa632779ef058f3</a><br>

</div><div><br></div><div>Regards,</div><div>Curtis</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 20, 2014 at 1:13 PM, Brian Schlining <span dir="ltr"><<a href="mailto:bschlining@gmail.com" target="_blank">bschlining@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><p></p></div><div>

</div><div><p></p>

<p>Hi Curtis,</p>

<blockquote><div>
<blockquote>
<p>One thing I need to do is transform Img (actually ArrayImg) objects to BufferedImages.</p>
</blockquote>

</div><p>Note that if what you want is to transform N-dimensional Imgs to <em>rendered</em> BufferedImages (e.g., at specific planes, perhaps composited, and so forth), you can use the Projector and Converter API:</p>
</blockquote>

<p>Yes, for the most part, I want to transform the Img to BufferedImages so that I can draw info onto them. (See attached example). A full round-trip <em>might</em> not be needed, but it would be a <em>nice to have</em>.</p>




<blockquote>
<p><a href="https://github.com/imglib/imglib/tree/imglib2%E2%80%932.0.0-beta%E2%80%9326/core/src/main/java/net/imglib2/display/projector" target="_blank">https://github.com/imglib/imglib/tree/imglib2–2.0.0-beta–26/core/src/main/java/net/imglib2/display/projector</a>
<a href="https://github.com/imglib/imglib/tree/imglib2%E2%80%932.0.0-beta%E2%80%9326/core/src/main/java/net/imglib2/converter" target="_blank">https://github.com/imglib/imglib/tree/imglib2–2.0.0-beta–26/core/src/main/java/net/imglib2/converter</a></p>


<div>

<p>This is how ImageJ2 actually paints Img objects on screen, using CompositeXYProjector and RealLUTConverter.</p>
</div></blockquote>

<p>Can you give me a code example of how this would work? It’s not obvious from the javadocs how to use a <code>Projector</code> and <code>Converter</code> to generate a BufferedImage.</p><span><font color="#888888">

<p>–
Brian Schlining</p></font></span></div></div></blockquote></div><br></div></div>