<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Olivier<div><br></div><div>What do you mean by "classical image object" , a buffered Image?</div><div>if this is the case, you can use the thumbnail service to retrieve an array of byte of a given 2D-plane</div><div>and then create a buffered image </div><div>pseudo code:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="3" style="font: 11.0px Monaco">ThumbnailStorePrx service</font></div></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="3" color="#7f0055" style="font: 11.0px Monaco; color: #7f0055">if</font><font face="Monaco" size="3" style="font: 11.0px Monaco"> (!(service.setPixelsId(pixelsID))) {</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="3" style="font: 11.0px Monaco"> service.resetDefaults();</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="3" style="font: 11.0px Monaco"> service.setPixelsId(pixelsID);</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="3" style="font: 11.0px Monaco">}</font></div></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="3" style="font: 11.0px Monaco">byte[] values = service.getThumbnail(omero.rtypes.rint(sizeX), omero.rtypes.rint(sizeY));</font></div></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="3" style="font: 11.0px Monaco">ByteArrayInputStream stream = </font><font face="Monaco" size="3" color="#7f0055" style="font: 11.0px Monaco; color: #7f0055">new</font><font face="Monaco" size="3" style="font: 11.0px Monaco"> ByteArrayInputStream(values);</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="3" color="#7f0055" style="font: 11.0px Monaco; color: #7f0055">return</font><font face="Monaco" size="3" style="font: 11.0px Monaco"> ImageIO.read(stream);</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">Or you can use the rendering engine if you want uncompressed (or compressed) images.</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">We also have a "first version" of an omero ImageJ plugin to view images stored in an OMERO server in imageJ (<span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><a href="http://www.openmicroscopy.org/site/support/omero4/downloads">http://www.openmicroscopy.org/site/support/omero4/downloads</a>) <span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">. This version</span></span></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">uses the Image5D plugin, a newer version of the plugin planned later in the year will have most of the options offered by the loci-plugin.</span></font></div></div><div><br></div><div><br></div><div>If you need to analyze your image, you can retrieve the raw data using the <span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">RawPixelsStore service.</span></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">Hope it helps</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">Jmarie</span></font></div></body></html>